1 --- lib/pkcs11h-openssl.c 2017-02-11 23:13:00.000000000 +0100
2 +++ lib/pkcs11h-openssl.c 2018-04-27 17:46:48.160261853 +0200
6 #if OPENSSL_VERSION_NUMBER < 0x10100001L
7 +#if !defined(LIBRESSL_VERSION_NUMBER)
9 RSA_meth_dup (const RSA_METHOD *meth)
12 _pkcs11h_mem_free ((void *)&meth);
15 +#endif /* defined(LIBRESSL_VERSION_NUMBER) */
18 RSA_meth_set1_name (RSA_METHOD *meth, const char *name)
23 +#if !defined(LIBRESSL_VERSION_NUMBER)
25 RSA_meth_set_priv_enc (
28 _pkcs11h_mem_free ((void *)&meth);
31 +#endif /* defined(LIBRESSL_VERSION_NUMBER) */
34 DSA_meth_set1_name (DSA_METHOD *meth, const char *name)
36 return rv == CKR_OK ? 1 : 0;
39 +#if !defined(LIBRESSL_VERSION_NUMBER)
41 DSA_meth_set_sign (DSA_METHOD *meth,
42 DSA_SIG *(*sign) (const unsigned char *, int, DSA *))
47 +#endif /* defined(LIBRESSL_VERSION_NUMBER) */