X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Frsagen.c;h=3dd34e23e1710f93db97009fa273e9a72ff0b1cf;hb=1545909dcb3ac618754486f4ccd4d8f237d64bb7;hp=79127f68ed45b0249bee043e975c40f7db205d40;hpb=1c475ecb575367a6b3f9328b0f643ad636155341;p=tinc diff --git a/src/openssl/rsagen.c b/src/openssl/rsagen.c index 79127f68..3dd34e23 100644 --- a/src/openssl/rsagen.c +++ b/src/openssl/rsagen.c @@ -17,8 +17,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "../system.h" - #include #include @@ -27,7 +25,6 @@ typedef RSA rsa_t; #include "../logger.h" #include "../rsagen.h" -#include "../xalloc.h" /* This function prettyprints the key generation process */ @@ -72,16 +69,6 @@ static int indicator(int a, int b, BN_GENCB *cb) { // Generate RSA key -#ifndef HAVE_BN_GENCB_NEW -BN_GENCB *BN_GENCB_new(void) { - return xzalloc(sizeof(BN_GENCB)); -} - -void BN_GENCB_free(BN_GENCB *cb) { - free(cb); -} -#endif - rsa_t *rsa_generate(size_t bits, unsigned long exponent) { BIGNUM *bn_e = BN_new(); rsa_t *rsa = RSA_new();