pkcs11-helper: fix build.

This commit is contained in:
maxice8 2018-06-18 15:10:33 -03:00
parent ff7e456648
commit b5173caf89

View file

@ -1,50 +0,0 @@
--- lib/pkcs11h-openssl.c 2017-02-11 23:13:00.000000000 +0100
+++ lib/pkcs11h-openssl.c 2018-04-27 17:46:48.160261853 +0200
@@ -96,6 +96,7 @@
};
#if OPENSSL_VERSION_NUMBER < 0x10100001L
+#if !defined(LIBRESSL_VERSION_NUMBER)
static RSA_METHOD *
RSA_meth_dup (const RSA_METHOD *meth)
{
@@ -123,6 +124,7 @@
_pkcs11h_mem_free ((void *)&meth);
}
}
+#endif /* defined(LIBRESSL_VERSION_NUMBER) */
static int
RSA_meth_set1_name (RSA_METHOD *meth, const char *name)
@@ -139,6 +141,7 @@
return 1;
}
+#if !defined(LIBRESSL_VERSION_NUMBER)
static int
RSA_meth_set_priv_enc (
RSA_METHOD *meth,
@@ -198,6 +201,7 @@
_pkcs11h_mem_free ((void *)&meth);
}
}
+#endif /* defined(LIBRESSL_VERSION_NUMBER) */
static int
DSA_meth_set1_name (DSA_METHOD *meth, const char *name)
@@ -207,6 +211,7 @@
return rv == CKR_OK ? 1 : 0;
}
+#if !defined(LIBRESSL_VERSION_NUMBER)
static int
DSA_meth_set_sign (DSA_METHOD *meth,
DSA_SIG *(*sign) (const unsigned char *, int, DSA *))
@@ -224,6 +229,7 @@
sig->s = s;
return 1;
}
+#endif /* defined(LIBRESSL_VERSION_NUMBER) */
#endif
static struct {