mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-26 18:46:42 -05:00
- added key copy methods to OpenPGP-SDK
- added encrypted key storage and retrieval to own keyring after generation - improved test program git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5070 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
648555711c
commit
1888b21998
14 changed files with 406 additions and 85 deletions
|
|
@ -48,6 +48,7 @@ const ops_keydata_t *
|
|||
ops_keyring_find_key_by_userid(const ops_keyring_t *keyring,
|
||||
const char* userid);
|
||||
void ops_keydata_free(ops_keydata_t *key);
|
||||
void ops_keydata_copy(ops_keydata_t *dst,const ops_keydata_t *src);
|
||||
void ops_keyring_free(ops_keyring_t *keyring);
|
||||
void ops_dump_keyring(const ops_keyring_t *keyring);
|
||||
const ops_public_key_t *
|
||||
|
|
|
|||
|
|
@ -912,6 +912,7 @@ void ops_keyid(unsigned char keyid[OPS_KEY_ID_SIZE],
|
|||
const ops_public_key_t *key);
|
||||
void ops_fingerprint(ops_fingerprint_t *fp,const ops_public_key_t *key);
|
||||
void ops_public_key_free(ops_public_key_t *key);
|
||||
void ops_public_key_copy(ops_public_key_t *dst,const ops_public_key_t *src);
|
||||
void ops_user_id_free(ops_user_id_t *id);
|
||||
void ops_user_attribute_free(ops_user_attribute_t *att);
|
||||
void ops_signature_free(ops_signature_t *sig);
|
||||
|
|
@ -935,6 +936,7 @@ void ops_ss_embedded_signature_free(ops_ss_embedded_signature_t *ss_embedded_sig
|
|||
void ops_packet_free(ops_packet_t *packet);
|
||||
void ops_parser_content_free(ops_parser_content_t *c);
|
||||
void ops_secret_key_free(ops_secret_key_t *key);
|
||||
void ops_secret_key_copy(ops_secret_key_t *dst,const ops_secret_key_t *src);
|
||||
void ops_pk_session_key_free(ops_pk_session_key_t *sk);
|
||||
|
||||
/* vim:set textwidth=120: */
|
||||
|
|
|
|||
|
|
@ -55,6 +55,10 @@ typedef unsigned ops_boolean_t;
|
|||
* \see RFC4880 5.2.3.1
|
||||
*/
|
||||
|
||||
#ifndef __cplusplus
|
||||
typedef enum ops_content_tag_t ops_content_tag_t ;
|
||||
#endif
|
||||
|
||||
enum ops_content_tag_t
|
||||
{
|
||||
OPS_PTAG_CT_RESERVED = 0, /*!< Reserved - a packet tag must not have this value */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue