From ff51d33eee80c68d0813f158ad2b6f1e482f44b5 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Wed, 17 May 2017 18:51:08 +0200 Subject: [PATCH] Create netpgp-extras include. --- libs/netpgp/netpgp-extra.h | 13 +++++++++++++ src/mre2ee_driver_openssl.c | 11 +---------- 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 libs/netpgp/netpgp-extra.h diff --git a/libs/netpgp/netpgp-extra.h b/libs/netpgp/netpgp-extra.h new file mode 100644 index 00000000..d0a34791 --- /dev/null +++ b/libs/netpgp/netpgp-extra.h @@ -0,0 +1,13 @@ +#ifndef __NETPGP_EXTRA_H__ +#define __NETPGP_EXTRA_H__ + +#include +#include "packet-parse.h" +#include "errors.h" +#include "netpgpdefs.h" +#include "crypto.h" +#include "create.h" +unsigned rsa_generate_keypair(pgp_key_t *keydata, const int numbits, const unsigned long e, const char *hashalg, const char *cipher); +unsigned write_seckey_body(const pgp_seckey_t *key, const uint8_t *passphrase, const size_t pplen, pgp_output_t *output); + +#endif // __NETPGP_EXTRA_H__ diff --git a/src/mre2ee_driver_openssl.c b/src/mre2ee_driver_openssl.c index 6bbebbcb..5b333e11 100644 --- a/src/mre2ee_driver_openssl.c +++ b/src/mre2ee_driver_openssl.c @@ -48,21 +48,12 @@ #include #include #include +#include #include "mrmailbox.h" #include "mrkey.h" #include "mre2ee.h" #include "mre2ee_driver.h" -#ifdef KEYGEN_NETPGP -#include -#include "packet-parse.h" -#include "errors.h" -#include "netpgpdefs.h" -#include "crypto.h" -#include "create.h" -unsigned rsa_generate_keypair(pgp_key_t *keydata, const int numbits, const unsigned long e, const char *hashalg, const char *cipher); -unsigned write_seckey_body(const pgp_seckey_t *key, const uint8_t *passphrase, const size_t pplen, pgp_output_t *output); -#endif void mre2ee_driver_init(mrmailbox_t* mailbox) {