...
4 #include "keymanagement.h"
13 // encrypt_message() - encrypt message in memory
16 // session (in) session handle
17 // src (in) message to encrypt
18 // extra (in) extra keys for encryption
19 // dst (out) pointer to new encrypted message or NULL on failure
20 // enc_format (in) encrypted format
23 // PEP_STATUS_OK on success
24 // PEP_KEY_NOT_FOUND at least one of the receipient keys
26 // PEP_KEY_HAS_AMBIG_NAME at least one of the receipient keys has
28 // PEP_GET_KEY_FAILED cannot retrieve key
31 // the ownership of the new message goes to the caller
32 // if src is unencrypted this function returns PEP_UNENCRYPTED and sets
35 DYNAMIC_API PEP_STATUS encrypt_message(
40 PEP_enc_format enc_format
44 // decrypt_message() - decrypt message in memory
47 // session (in) session handle
48 // src (in) message to decrypt
49 // mime (in) MIME encoding wanted
50 // dst (out) pointer to new decrypted message or NULL on failure
53 // error status or PEP_STATUS_OK on success
56 // the ownership of the new message goes to the caller
58 DYNAMIC_API PEP_STATUS decrypt_message(