Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EFS_CERTIFICATE_BLOB

EFS_CERTIFICATE_BLOB structure

Contains a certificate.

Syntax


typedef struct _CERTIFICATE_BLOB {
  DWORD dwCertEncodingType;
  DWORD cbData;
  PBYTE pbData;
} EFS_CERTIFICATE_BLOB, *PEFS_CERTIFICATE_BLOB;

Members

dwCertEncodingType

A certificate encoding type. This member can be one of the following values.

CRYPT_ASN_ENCODING
CRYPT_NDR_ENCODING
X509_ASN_ENCODING
X509_NDR_ENCODING
cbData

The number of bytes in the pbData buffer.

pbData

The binary certificate. The dwCertEncodingType member specifies the format for this certificate.

Examples

The following code example shows you how you can obtain information for the members from the CERT_CONTEXT structure. The implementation of the MyGetCertRoutine function depends on where the certificates are stored.


PCCERT_CONTEXT         pCertContext; 
EFS_CERTIFICATE_BLOB   EfsCertificateBlob;
 
pCertContext = MyGetCertRoutine(); 
 
EfsCertificateBlob.cbData = pCertContext->cbCertEncoded;
EfsCertificateBlob.pbData = pCertContext->pbCertEncoded;
EfsCertificateBlob.dwCertEncodingType = 
                            pCertContext->dwCertEncodingType;


Requirements

Minimum supported client

Windows XP Professional [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Winefs.h (include Windows.h)

See also

ENCRYPTION_CERTIFICATE
File Encryption

 

 

Community Additions

ADD
Show:
© 2015 Microsoft