src/pEpEngine.c
branchfdik_sync
changeset 1673 559931685411
parent 1648 158e65c83311
child 1678 0f63e86eda03
     1.1 --- a/src/pEpEngine.c	Wed Mar 15 14:16:43 2017 +0100
     1.2 +++ b/src/pEpEngine.c	Wed Mar 15 15:00:19 2017 +0100
     1.3 @@ -1498,6 +1498,24 @@
     1.4              keylist, ptext, psize, ctext, csize);
     1.5  }
     1.6  
     1.7 +PEP_STATUS sign_text(
     1.8 +    PEP_SESSION session, const stringlist_t *keylist, const char *ptext,
     1.9 +    size_t psize, char **stext, size_t *ssize
    1.10 +    )
    1.11 +{
    1.12 +    assert(session);
    1.13 +    assert(keylist);
    1.14 +    assert(ptext);
    1.15 +    assert(psize);
    1.16 +    assert(stext);
    1.17 +    assert(ssize);
    1.18 +
    1.19 +    if (!(session && keylist && ptext && psize && stext && ssize))
    1.20 +        return PEP_ILLEGAL_VALUE;
    1.21 +
    1.22 +    return session->cryptotech[PEP_crypt_OpenPGP].sign_text(session,
    1.23 +            keylist, ptext, psize, stext, ssize);
    1.24 +}
    1.25  
    1.26  DYNAMIC_API PEP_STATUS verify_text(
    1.27      PEP_SESSION session, const char *text, size_t size,