Functions
xmlSecMSCngKeyDataX509GetKlass ()
xmlSecKeyDataId
xmlSecMSCngKeyDataX509GetKlass (void);
The MSCng X509 key data klass.
Returns
the X509 data klass.
xmlSecMSCngKeyDataRawX509CertGetKlass ()
xmlSecKeyDataId
xmlSecMSCngKeyDataRawX509CertGetKlass (void);
The raw X509 certificates key data klass.
Returns
raw X509 certificates key data klass.
xmlSecMSCngX509StoreGetKlass ()
xmlSecKeyDataStoreId
xmlSecMSCngX509StoreGetKlass (void);
The MSCng X509 certificates key data store klass.
Returns
pointer to MSCng X509 certificates key data store klass.
xmlSecMSCngKeyDataX509GetKeyCert ()
PCCERT_CONTEXT
xmlSecMSCngKeyDataX509GetKeyCert (xmlSecKeyDataPtr data);
Gets the certificate from which the key was extracted.
Returns
the key's certificate or NULL if key data was not used for key
extraction or an error occurs.
xmlSecMSCngKeyDataX509AdoptKeyCert ()
int
xmlSecMSCngKeyDataX509AdoptKeyCert (xmlSecKeyDataPtr data,
PCCERT_CONTEXT cert);
Adds certificate to the X509 key data and sets the it as the key's
certificate in data
. On success, the data
owns the cert.
Returns
0 on success or a negative value otherwise.
xmlSecMSCngKeyDataX509AdoptCert ()
int
xmlSecMSCngKeyDataX509AdoptCert (xmlSecKeyDataPtr data,
PCCERT_CONTEXT cert);
Adds cert
to data
as a certificate. On success, data
owns the cert
.
Returns
0 on success or a negative value otherwise.
xmlSecMSCngKeyDataX509AdoptCrl ()
int
xmlSecMSCngKeyDataX509AdoptCrl (xmlSecKeyDataPtr data,
PCCRL_CONTEXT crl);
Adds CRL to the X509 key data.
Returns
0 on success or a negative value if an error occurs.
xmlSecMSCngX509StoreAdoptCert ()
int
xmlSecMSCngX509StoreAdoptCert (xmlSecKeyDataStorePtr store,
PCCERT_CONTEXT cert,
xmlSecKeyDataType type);
Adds trusted (root) or untrusted certificate to the store.
Returns
0 on success or a negative value if an error occurs.
xmlSecMSCngX509StoreAdoptCrl ()
int
xmlSecMSCngX509StoreAdoptCrl (xmlSecKeyDataStorePtr store,
PCCRL_CONTEXT crl);
Adds CRL to the store for revocation checking.
Returns
0 on success or a negative value if an error occurs.
xmlSecMSCngX509StoreVerifyCrl ()
int
xmlSecMSCngX509StoreVerifyCrl (xmlSecKeyDataStorePtr store,
PCCRL_CONTEXT crl,
xmlSecKeyInfoCtx *keyInfoCtx);
Verifies crl
by checking:
Returns
1 if verified, 0 if not verified, or a negative value if an error occurs.
xmlSecMSCngX509StoreAdoptKeyStore ()
int
xmlSecMSCngX509StoreAdoptKeyStore (xmlSecKeyDataStorePtr store,
HCERTSTORE keyStore);
Adds keyStore
to the list of key stores.
Returns
0 on success or a negative value if an error occurs.
xmlSecMSCngX509StoreAdoptTrustedStore ()
int
xmlSecMSCngX509StoreAdoptTrustedStore (xmlSecKeyDataStorePtr store,
HCERTSTORE trustedStore);
Adds trustedStore
to the list of trusted certs stores.
Returns
0 on success or a negative value if an error occurs.
xmlSecMSCngX509StoreAdoptUntrustedStore ()
int
xmlSecMSCngX509StoreAdoptUntrustedStore
(xmlSecKeyDataStorePtr store,
HCERTSTORE untrustedStore);
Adds trustedStore
to the list of untrusted certs stores.
Returns
0 on success or a negative value if an error occurs.
xmlSecMSCngX509StoreVerify ()
PCCERT_CONTEXT
xmlSecMSCngX509StoreVerify (xmlSecKeyDataStorePtr store,
HCERTSTORE certs,
xmlSecKeyInfoCtx *keyInfoCtx);
Verifies certs
list.
Returns
pointer to the first verified certificate from certs
.
Types and Values
xmlSecMSCngKeyDataX509Id
#define xmlSecMSCngKeyDataX509Id
The MSCng X509 data klass.
xmlSecMSCngKeyDataRawX509CertId
#define xmlSecMSCngKeyDataRawX509CertId
The MSCng raw X509 certificate klass.
xmlSecMSCngX509StoreId
#define xmlSecMSCngX509StoreId
The MSCng X509 store klass.