mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-06 12:00:11 +02:00
Create netpgp-extras include.
This commit is contained in:
parent
288734f1b8
commit
ff51d33eee
2 changed files with 14 additions and 10 deletions
13
libs/netpgp/netpgp-extra.h
Normal file
13
libs/netpgp/netpgp-extra.h
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#ifndef __NETPGP_EXTRA_H__
|
||||||
|
#define __NETPGP_EXTRA_H__
|
||||||
|
|
||||||
|
#include <netpgp.h>
|
||||||
|
#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__
|
|
@ -48,21 +48,12 @@
|
||||||
#include <openssl/rand.h>
|
#include <openssl/rand.h>
|
||||||
#include <openssl/rsa.h>
|
#include <openssl/rsa.h>
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
|
#include <netpgp-extra.h>
|
||||||
#include "mrmailbox.h"
|
#include "mrmailbox.h"
|
||||||
#include "mrkey.h"
|
#include "mrkey.h"
|
||||||
#include "mre2ee.h"
|
#include "mre2ee.h"
|
||||||
#include "mre2ee_driver.h"
|
#include "mre2ee_driver.h"
|
||||||
|
|
||||||
#ifdef KEYGEN_NETPGP
|
|
||||||
#include <netpgp.h>
|
|
||||||
#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)
|
void mre2ee_driver_init(mrmailbox_t* mailbox)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue