Added pgp_encrypt_only stubs for NetPGP
authorKrista Bennett <krista@pep-project.org>
Wed, 15 Mar 2017 18:02:46 +0100
changeset 16745639f969866a
parent 1670 8e2509f0ddad
child 1676 4184ee019f65
child 1678 0f63e86eda03
Added pgp_encrypt_only stubs for NetPGP
src/pgp_netpgp.c
src/pgp_netpgp.h
     1.1 --- a/src/pgp_netpgp.c	Wed Mar 15 16:42:58 2017 +0100
     1.2 +++ b/src/pgp_netpgp.c	Wed Mar 15 18:02:46 2017 +0100
     1.3 @@ -687,6 +687,15 @@
     1.4      return result;
     1.5  }
     1.6  
     1.7 +PEP_STATUS pgp_encrypt_only(
     1.8 +        PEP_SESSION session, const stringlist_t *keylist, const char *ptext,
     1.9 +        size_t psize, char **ctext, size_t *csize
    1.10 +    )
    1.11 +{
    1.12 +    return PEP_UNKNOWN_ERROR; // FIXME: Unimplemented!
    1.13 +}
    1.14 +
    1.15 +
    1.16  PEP_STATUS pgp_generate_keypair(
    1.17      PEP_SESSION session, pEp_identity *identity
    1.18      )
     2.1 --- a/src/pgp_netpgp.h	Wed Mar 15 16:42:58 2017 +0100
     2.2 +++ b/src/pgp_netpgp.h	Wed Mar 15 18:02:46 2017 +0100
     2.3 @@ -19,6 +19,13 @@
     2.4          size_t psize, char **ctext, size_t *csize
     2.5      );
     2.6  
     2.7 +
     2.8 +PEP_STATUS pgp_encrypt_only(
     2.9 +        PEP_SESSION session, const stringlist_t *keylist, const char *ptext,
    2.10 +        size_t psize, char **ctext, size_t *csize
    2.11 +    );
    2.12 +
    2.13 +
    2.14  PEP_STATUS pgp_verify_text(
    2.15          PEP_SESSION session, const char *text, size_t size,
    2.16          const char *signature, size_t sig_size, stringlist_t **keylist