--- libp11-0.4.9/src/p11_rsa.c 2018-08-31 23:42:00.000000000 -0400 +++ libp11-0.4.9/src/p11_rsa.c 2019-03-05 01:12:57.842972459 -0500 @@ -402,7 +402,7 @@ #endif } -#if OPENSSL_VERSION_NUMBER < 0x10100005L || defined(LIBRESSL_VERSION_NUMBER) +#if OPENSSL_VERSION_NUMBER < 0x10100005L || LIBRESSL_VERSION_NUMBER < 0x2080000L static RSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth) { @@ -428,12 +428,6 @@ return 1; } -static int RSA_meth_set_flags(RSA_METHOD *meth, int flags) -{ - meth->flags = flags; - return 1; -} - static int RSA_meth_set_priv_enc(RSA_METHOD *meth, int (*priv_enc) (int flen, const unsigned char *from, unsigned char *to, RSA *rsa, int padding)) @@ -456,6 +450,16 @@ return 1; } +#endif + +#if OPENSSL_VERSION_NUMBER < 0x10100005L || defined(LIBRESSL_VERSION_NUMBER) + +static int RSA_meth_set_flags(RSA_METHOD *meth, int flags) +{ + meth->flags = flags; + return 1; +} + #endif /*