Other Key Functions
[Keys and Keyrings]


Functions

const ops_public_key_tops_get_public_key_from_data (const ops_keydata_t *keydata)
 Returns the public key in the given keydata.
ops_boolean_t ops_is_key_secret (const ops_keydata_t *data)
 Check whether this is a secret key or not.
const ops_secret_key_tops_get_secret_key_from_data (const ops_keydata_t *data)
 Returns the secret key in the given keydata.
ops_secret_key_tops_get_writable_secret_key_from_data (ops_keydata_t *data)
 Returns the secret key in the given keydata.

Function Documentation

const ops_public_key_t* ops_get_public_key_from_data const ops_keydata_t keydata  ) 
 

Returns the public key in the given keydata.

Parameters:
keydata 
Returns:
Pointer to public key
Note:
This is not a copy, do not free it after use.

const ops_secret_key_t* ops_get_secret_key_from_data const ops_keydata_t data  ) 
 

Returns the secret key in the given keydata.

Note:
This is not a copy, do not free it after use.

This returns a const. If you need to be able to write to this pointer, use ops_get_writable_secret_key_from_data

ops_secret_key_t* ops_get_writable_secret_key_from_data ops_keydata_t data  ) 
 

Returns the secret key in the given keydata.

Note:
This is not a copy, do not free it after use.

If you do not need to be able to modify this key, there is an equivalent read-only function ops_get_secret_key_from_data.


Generated on Fri May 24 00:00:03 2013 for OpenPGP:SDK by  doxygen 1.4.6