function stubs fdik_sync
authorKrista Grothoff <krista@pep-project.org>
Wed, 15 Mar 2017 11:02:01 +0100
branchfdik_sync
changeset 167178b34f2843d1
parent 1668 156a5b29f796
child 1672 d4820ecaf7a2
function stubs
src/message_api.c
src/message_api.h
     1.1 --- a/src/message_api.c	Wed Mar 15 09:48:47 2017 +0100
     1.2 +++ b/src/message_api.c	Wed Mar 15 11:02:01 2017 +0100
     1.3 @@ -1081,6 +1081,32 @@
     1.4      }
     1.5  }
     1.6  
     1.7 +PEP_STATUS sign_message(PEP_SESSION session,
     1.8 +                        message *src,
     1.9 +                        message **dst
    1.10 +                    ) 
    1.11 +{   
    1.12 +    if (!dst)
    1.13 +        return PEP_ILLEGAL_VALUE;
    1.14 +        
    1.15 +    PEP_STATUS status = PEP_KEY_NOT_FOUND;                         
    1.16 +    return status;
    1.17 +}
    1.18 +
    1.19 +PEP_STATUS check_signed_message(PEP_SESSION session,
    1.20 +                                message *src,
    1.21 +                                char** signing_key_ptr
    1.22 +                            )
    1.23 +{                          
    1.24 +    if (!signing_key_ptr)
    1.25 +        return PEP_ILLEGAL_VALUE;
    1.26 + 
    1.27 +    PEP_STATUS status = PEP_VERIFY_NO_KEY;
    1.28 +    signing_key_ptr = NULL:
    1.29 +    return status;                              
    1.30 +}
    1.31 +
    1.32 +
    1.33  DYNAMIC_API PEP_STATUS encrypt_message(
    1.34          PEP_SESSION session,
    1.35          message *src,
     2.1 --- a/src/message_api.h	Wed Mar 15 09:48:47 2017 +0100
     2.2 +++ b/src/message_api.h	Wed Mar 15 11:02:01 2017 +0100
     2.3 @@ -19,6 +19,14 @@
     2.4          identity_list **private_idents
     2.5      );
     2.6  void attach_own_key(PEP_SESSION session, message *msg);
     2.7 +PEP_STATUS sign_message(PEP_SESSION session,
     2.8 +                        message *src,
     2.9 +                        message **dst);
    2.10 +
    2.11 +PEP_STATUS check_signed_message(PEP_SESSION session,
    2.12 +                                message *src,
    2.13 +                                char* signing_key);
    2.14 +
    2.15  PEP_cryptotech determine_encryption_format(message *msg);
    2.16  void add_opt_field(message *msg, const char *name, const char *value);
    2.17