blob: be464b9c7e45f18d1f151e9af93f8fdc251266e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- bbftpd_crypt.c.orig 2004-06-30 17:38:50 UTC
+++ bbftpd_crypt.c
@@ -84,8 +84,13 @@ void sendcrypt()
/*
** Now extract the public key in order to send it
*/
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
lenkey = BN_bn2mpi(myrsa->n,pubkey) ;
lenexpo = BN_bn2mpi(myrsa->e,pubexponent) ;
+#else
+ lenkey = BN_bn2mpi(RSA_get0_n(myrsa),pubkey) ;
+ lenexpo = BN_bn2mpi(RSA_get0_e(myrsa),pubexponent) ;
+#endif
mess = (struct message *) buf ;
mess->code = MSG_CRYPT ;
#ifndef WORDS_BIGENDIAN
|