Skip to content

Commit

Permalink
build: support libressl-2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
alonbl committed Jan 5, 2019
1 parent d400f17 commit db305d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gnupg-pkcs11-scd/keyutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#endif
#if defined(ENABLE_OPENSSL)
#include <openssl/x509.h>
#include <openssl/rsa.h>
#endif
#include "encoding.h"
#include "keyutil.h"
Expand All @@ -45,8 +46,8 @@ typedef unsigned char *my_openssl_d2i_t;
typedef const unsigned char *my_openssl_d2i_t;
#endif

#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) {
#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
static void RSA_get0_key(const RSA *r, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d) {
if (n != NULL) {
*n = r->n;
}
Expand Down

0 comments on commit db305d9

Please sign in to comment.