| 
|  |  |  | XML Security Library Reference Manual |  | 
 
certkeys
Namecertkeys -- MS Crypto certificates helper functions. 
DescriptionMS Crypto certificates helper functions. 
Details
xmlSecMSCryptoKeyDataGetCert ()PCCERT_CONTEXT      xmlSecMSCryptoKeyDataGetCert        (xmlSecKeyDataPtr data); Native MSCrypto certificate retrieval from xmlsec keydata. The 
returned PCCERT_CONTEXT must not be released by the caller. 
| data: | 		the key data to retrieve certificate from. |  
| Returns : |  PCCERT_CONTEXT on success or NULL otherwise. |  
 
xmlSecMSCryptoKeyDataGetKey ()HCRYPTKEY           xmlSecMSCryptoKeyDataGetKey         (xmlSecKeyDataPtr data,
                                                         xmlSecKeyDataType type);Native MSCrypto key retrieval from xmlsec keydata. The 
returned HKEY must not be destroyed by the caller. 
| data: | 		the key data to retrieve certificate from. |  
| type: |               type of key requested (public/private) |  
| Returns : |  HKEY on success or NULL otherwise. |  
 
xmlSecMSCryptoKeyDataGetDecryptKey ()HCRYPTKEY           xmlSecMSCryptoKeyDataGetDecryptKey  (xmlSecKeyDataPtr data); Native MSCrypto decrypt key retrieval from xmlsec keydata. The
returned HKEY must not be destroyed by the caller. 
 
xmlSecMSCryptoCertDup ()PCCERT_CONTEXT      xmlSecMSCryptoCertDup               (PCCERT_CONTEXT pCert); Duplicates the pCert. 
| pCert: |  		the pointer to cert. |  
| Returns : |  pointer to newly created PCCERT_CONTEXT object or 
NULL if an error occurs. |  
 
xmlSecMSCryptoCertAdopt ()xmlSecKeyDataPtr    xmlSecMSCryptoCertAdopt             (PCCERT_CONTEXT pCert,
                                                         xmlSecKeyDataType type);Creates key data value from the cert. 
| pCert: |  		the pointer to cert. |  
| type: | 		the expected key type. |  
| Returns : |  pointer to newly created xmlsec key or NULL if an error occurs. |  |