additional testing sync
authorVolker Birk <vb@pep.foundation>
Tue, 30 Oct 2018 14:00:47 +0100
branchsync
changeset 311581a666c4a59f
parent 3114 1c6a65b92334
child 3116 51bd81c53007
child 3117 5614d2aeb84e
additional testing
src/message_api.c
     1.1 --- a/src/message_api.c	Tue Oct 30 13:58:45 2018 +0100
     1.2 +++ b/src/message_api.c	Tue Oct 30 14:00:47 2018 +0100
     1.3 @@ -3713,6 +3713,16 @@
     1.4          PEP_decrypt_flags_t *flags
     1.5      )
     1.6  {
     1.7 +    assert(session);
     1.8 +    assert(src);
     1.9 +    assert(dst);
    1.10 +    assert(keylist);
    1.11 +    assert(rating);
    1.12 +    assert(flags);
    1.13 +
    1.14 +    if (!(session && src && dst && keylist && rating && flags))
    1.15 +        return PEP_ILLEGAL_VALUE;
    1.16 +
    1.17      PEP_STATUS status = _decrypt_message(session, src, dst, keylist, rating, flags, NULL);
    1.18  
    1.19      message *msg = *dst ? *dst : src;