X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Frsa.c;h=104b9719eb96b761a04150cecdedb71491e216aa;hb=b0b4a2f1eb3bef0141d817cbf3b575a5dd28f241;hp=f8ec6d51360cb3cdaaa8362e349ee72b17a65a8f;hpb=ed070d754d1b5500b0ec3615ae342178cfd42efb;p=tinc diff --git a/src/openssl/rsa.c b/src/openssl/rsa.c index f8ec6d51..104b9719 100644 --- a/src/openssl/rsa.c +++ b/src/openssl/rsa.c @@ -31,18 +31,6 @@ typedef RSA rsa_t; // Set RSA keys -#ifndef HAVE_RSA_SET0_KEY -int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) { - BN_free(r->n); - r->n = n; - BN_free(r->e); - r->e = e; - BN_free(r->d); - r->d = d; - return 1; -} -#endif - rsa_t *rsa_set_hex_public_key(char *n, char *e) { BIGNUM *bn_n = NULL; BIGNUM *bn_e = NULL;