|
|
|
XML Security Library Reference Manual |
|
pkikeys
Namepkikeys -- PKI keys data implementation.
Description
PKI keys data implementation.
Functions
xmlSecNssPKIAdoptKey ()
xmlSecKeyDataPtr
xmlSecNssPKIAdoptKey (SECKEYPrivateKey *privkey ,
SECKEYPublicKey *pubkey );
Build a KeyData object from the given Private Key and Public
Key handles.
Returns
pointer to KeyData object or NULL if an error occurs.
xmlSecNssPKIKeyDataGetPubKey ()
SECKEYPublicKey *
xmlSecNssPKIKeyDataGetPubKey (xmlSecKeyDataPtr data );
Gets the Public Key from the key data.
Returns
pointer to SECKEYPublicKey or NULL if an error occurs.
Caller is responsible for freeing the key when done
xmlSecNssPKIKeyDataGetPrivKey ()
SECKEYPrivateKey *
xmlSecNssPKIKeyDataGetPrivKey (xmlSecKeyDataPtr data );
Gets the Private Key from the key data.
Returns
pointer to SECKEYPrivateKey or NULL if an error occurs.
Caller is responsible for freeing the key when done
xmlSecNssPKIKeyDataGetKeyType ()
KeyType
xmlSecNssPKIKeyDataGetKeyType (xmlSecKeyDataPtr data );
Gets the Key Type from the key data.
xmlSecNssPKIKeyDataDuplicate ()
int
xmlSecNssPKIKeyDataDuplicate (xmlSecKeyDataPtr dst ,
xmlSecKeyDataPtr src );
Duplicates the keydata from src to dst
Returns
-1 on error, 0 on success
|