Browse Source

documenting

test-README.md Release_2.1.0-RC26
Volker Birk 2 years ago
parent
commit
296b3db2cb
2 changed files with 10 additions and 4 deletions
  1. +1
    -4
      src/message_api.c
  2. +9
    -0
      src/message_api.h

+ 1
- 4
src/message_api.c View File

@ -1785,12 +1785,9 @@ static void update_encryption_format(identity_list* id_list, PEP_enc_format* enc
DYNAMIC_API PEP_STATUS probe_encrypt(PEP_SESSION session, const char *fpr)
{
assert(session);
if (!session)
if (!session || EMPTYSTR(fpr))
return PEP_ILLEGAL_VALUE;
if (EMPTYSTR(fpr))
return PEP_KEY_NOT_FOUND;
stringlist_t *keylist = new_stringlist(fpr);
if (!keylist)
return PEP_OUT_OF_MEMORY;


+ 9
- 0
src/message_api.h View File

@ -563,6 +563,15 @@ PEP_STATUS try_encrypt_message(
PEP_encrypt_flags_t flags
);
// probe_encrypt() - test if passphrase for a key is working in current session
//
// parameters:
// session (in) session handle
// fpr (in) fingerprint of key to test
//
// returns:
// PEP_STATUS_OK in case passphrase works or any error if not
DYNAMIC_API PEP_STATUS probe_encrypt(PEP_SESSION session, const char *fpr);
#ifdef __cplusplus


Loading…
Cancel
Save