python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / pkcs11-helper / patches / libressl-2.7.patch
blobad474bc5ed4971594547e6a9c16db26cab0df629
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
3 @@ -96,6 +96,7 @@
4 };
6 #if OPENSSL_VERSION_NUMBER < 0x10100001L
7 +#if !defined(LIBRESSL_VERSION_NUMBER)
8 static RSA_METHOD *
9 RSA_meth_dup (const RSA_METHOD *meth)
11 @@ -123,6 +124,7 @@
12 _pkcs11h_mem_free ((void *)&meth);
15 +#endif /* defined(LIBRESSL_VERSION_NUMBER) */
17 static int
18 RSA_meth_set1_name (RSA_METHOD *meth, const char *name)
19 @@ -139,6 +141,7 @@
20 return 1;
23 +#if !defined(LIBRESSL_VERSION_NUMBER)
24 static int
25 RSA_meth_set_priv_enc (
26 RSA_METHOD *meth,
27 @@ -198,6 +201,7 @@
28 _pkcs11h_mem_free ((void *)&meth);
31 +#endif /* defined(LIBRESSL_VERSION_NUMBER) */
33 static int
34 DSA_meth_set1_name (DSA_METHOD *meth, const char *name)
35 @@ -207,6 +211,7 @@
36 return rv == CKR_OK ? 1 : 0;
39 +#if !defined(LIBRESSL_VERSION_NUMBER)
40 static int
41 DSA_meth_set_sign (DSA_METHOD *meth,
42 DSA_SIG *(*sign) (const unsigned char *, int, DSA *))
43 @@ -224,6 +229,7 @@
44 sig->s = s;
45 return 1;
47 +#endif /* defined(LIBRESSL_VERSION_NUMBER) */
48 #endif
50 static struct {