View | Details | Raw Unified | Return to bug 232805
Collapse All | Expand All

(-)net/openslp/files/patch-common_slp__crypto.c (+22 lines)
Line 0 Link Here
1
--- common/slp_crypto.c.orig	2012-12-08 00:13:28.000000000 +0400
2
+++ common/slp_crypto.c	2018-10-29 14:49:49.343271000 +0300
3
@@ -83,18 +83,7 @@
4
  */
5
 SLPCryptoDSAKey * SLPCryptoDSAKeyDup(SLPCryptoDSAKey * dsa)
6
 {
7
-   SLPCryptoDSAKey * result;
8
-
9
-   result =  DSA_new();
10
-   if (result)
11
-   {
12
-      result->p = BN_dup(dsa->p);
13
-      result->q = BN_dup(dsa->q);
14
-      result->g = BN_dup(dsa->g);
15
-      result->priv_key = BN_dup(dsa->priv_key);
16
-      result->pub_key = BN_dup(dsa->pub_key);
17
-   }
18
-   return result;
19
+   return DSAparams_dup(dsa);
20
 }
21
 
22
 /** Destroy a key that was created by SLPCryptoDSAKeyCreate.

Return to bug 232805