XML Security Library

LibXML2
LibXSLT
OpenSSL

certkeys

Name

certkeys -- 

Synopsis


PCCERT_CONTEXT xmlSecMSCryptoKeyDataGetCert (xmlSecKeyDataPtr data);
HCRYPTKEY   xmlSecMSCryptoKeyDataGetKey     (xmlSecKeyDataPtr data,
                                             xmlSecKeyDataType type);
PCCERT_CONTEXT xmlSecMSCryptoCertDup        (PCCERT_CONTEXT pCert);
xmlSecKeyDataPtr xmlSecMSCryptoCertAdopt    (PCCERT_CONTEXT pCert,
                                             xmlSecKeyDataType type);

Description

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.


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.



Aleksey Sanin