1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Fix the build with OpenSSL 1.1.1.

PR:		232805
Submitted by:	osidorkin@gmail.com
This commit is contained in:
Joe Marcus Clarke 2018-11-02 09:06:24 +00:00
parent 3eab10f6f6
commit 0d2716d692
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=483791

View File

@ -0,0 +1,22 @@
--- common/slp_crypto.c.orig 2012-12-08 00:13:28.000000000 +0400
+++ common/slp_crypto.c 2018-10-29 14:49:49.343271000 +0300
@@ -83,18 +83,7 @@
*/
SLPCryptoDSAKey * SLPCryptoDSAKeyDup(SLPCryptoDSAKey * dsa)
{
- SLPCryptoDSAKey * result;
-
- result = DSA_new();
- if (result)
- {
- result->p = BN_dup(dsa->p);
- result->q = BN_dup(dsa->q);
- result->g = BN_dup(dsa->g);
- result->priv_key = BN_dup(dsa->priv_key);
- result->pub_key = BN_dup(dsa->pub_key);
- }
- return result;
+ return DSAparams_dup(dsa);
}
/** Destroy a key that was created by SLPCryptoDSAKeyCreate.