JSON-91: add MIME_encrypt_message_for_self() and encrypt_message_for_self()
authorRoker <roker@pep-project.org>
Thu, 05 Apr 2018 18:23:03 +0200
changeset 455c5bd9b999c8e
parent 454 1b83490a9ba2
child 456 84d11d4b6adb
JSON-91: add MIME_encrypt_message_for_self() and encrypt_message_for_self()
server/ev_server.cc
     1.1 --- a/server/ev_server.cc	Tue Apr 03 11:23:34 2018 +0200
     1.2 +++ b/server/ev_server.cc	Thu Apr 05 18:23:03 2018 +0200
     1.3 @@ -57,6 +57,10 @@
     1.4  		FP( "Message API", new Separator ),
     1.5  		FP( "MIME_encrypt_message", new Func<PEP_STATUS, In<PEP_SESSION, false>, In<c_string>, In<size_t>, In<stringlist_t*>,
     1.6  			Out<char*>, In<PEP_enc_format>, In<PEP_encrypt_flags_t>>( &MIME_encrypt_message ) ),
     1.7 +		FP( "MIME_encrypt_message_for_self", new Func<PEP_STATUS, In<PEP_SESSION, false>, 
     1.8 +			In<pEp_identity*>, In<c_string>, In<size_t>, In<stringlist_t*>,
     1.9 +			Out<char*>, In<PEP_enc_format>, In<PEP_encrypt_flags_t>>( &MIME_encrypt_message_for_self ) ),
    1.10 +			
    1.11  		FP( "MIME_decrypt_message", new Func<PEP_STATUS, In<PEP_SESSION, false>, In<c_string>, In<size_t>,
    1.12  			Out<char*>, Out<stringlist_t*>, Out<PEP_rating>, Out<PEP_decrypt_flags_t>>( &MIME_decrypt_message ) ),
    1.13  		
    1.14 @@ -66,6 +70,9 @@
    1.15  		FP( "stopKeyserverLookup",  new Func<void>( &JsonAdapter::stopKeyserverLookup ) ),
    1.16  		
    1.17  		FP( "encrypt_message", new Func<PEP_STATUS, In<PEP_SESSION, false>, In<message*>, In<stringlist_t*>, Out<message*>, In<PEP_enc_format>, In<PEP_encrypt_flags_t>>( &encrypt_message ) ),
    1.18 +		FP( "encrypt_message_for_self", new Func<PEP_STATUS, In<PEP_SESSION, false>,
    1.19 +			In<pEp_identity*>, In<message*>, In<stringlist_t*>, Out<message*>, In<PEP_enc_format>, In<PEP_encrypt_flags_t>>( &encrypt_message_for_self ) ),
    1.20 +		
    1.21  		FP( "decrypt_message", new Func<PEP_STATUS, In<PEP_SESSION, false>, In<message*>, Out<message*>, Out<stringlist_t*>, Out<PEP_rating>, Out<PEP_decrypt_flags_t>>(  &decrypt_message ) ),
    1.22  		FP( "outgoing_message_rating", new Func<PEP_STATUS, In<PEP_SESSION,false>, In<message*>, Out<PEP_rating>>( &outgoing_message_rating ) ),
    1.23  		FP( "identity_rating" , new Func<PEP_STATUS, In<PEP_SESSION,false>, In<pEp_identity*>, Out<PEP_rating>>( &identity_rating) ),