Simpler interface for own_message_private_key_details import_own_key
authorEdouard Tisserant
Tue, 14 Jun 2016 19:23:20 +0200
branchimport_own_key
changeset 736496905895282
parent 734 bd9a3eb1d707
child 737 b70708554378
Simpler interface for own_message_private_key_details
src/message_api.c
src/message_api.h
     1.1 --- a/src/message_api.c	Sun Jun 12 20:20:45 2016 +0200
     1.2 +++ b/src/message_api.c	Tue Jun 14 19:23:20 2016 +0200
     1.3 @@ -1510,17 +1510,15 @@
     1.4  DYNAMIC_API PEP_STATUS own_message_private_key_details(
     1.5          PEP_SESSION session,
     1.6          message *msg,
     1.7 -        char **details,
     1.8          pEp_identity **ident 
     1.9      )
    1.10  {
    1.11      PEP_STATUS status = PEP_STATUS_OK;
    1.12      assert(session);
    1.13      assert(msg);
    1.14 -    assert(details);
    1.15      assert(ident);
    1.16  
    1.17 -    if (!(session && msg && details && ident))
    1.18 +    if (!(session && msg && ident))
    1.19          return PEP_ILLEGAL_VALUE;
    1.20  
    1.21      message *dst; 
    1.22 @@ -1547,8 +1545,6 @@
    1.23          free_identity_list(private_il);
    1.24      }
    1.25  
    1.26 -    // TODO : compose details string
    1.27 -
    1.28      return status;
    1.29  }
    1.30  
     2.1 --- a/src/message_api.h	Sun Jun 12 20:20:45 2016 +0200
     2.2 +++ b/src/message_api.h	Tue Jun 14 19:23:20 2016 +0200
     2.3 @@ -108,7 +108,6 @@
     2.4  //  parameters:
     2.5  //      session (in)        session handle
     2.6  //      msg (in)            message to decrypt
     2.7 -//      details (out)       text describing details
     2.8  //      ident (out)         identity containing uid, address and fpr of key
     2.9  //
    2.10  //  note:
    2.11 @@ -122,14 +121,12 @@
    2.12  //
    2.13  //	caveat:
    2.14  //	    the ownership of msg remains with the caller
    2.15 -//	    the ownership of details goes to the caller
    2.16  //	    the ownership of ident goes to the caller
    2.17  //	    msg MUST be encrypted so that this function can check own signature
    2.18  
    2.19  DYNAMIC_API PEP_STATUS own_message_private_key_details(
    2.20          PEP_SESSION session,
    2.21          message *msg,
    2.22 -        char **details,
    2.23          pEp_identity **ident 
    2.24  );
    2.25