summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/DSA_dup_DH.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/DSA_dup_DH.3')
-rw-r--r--src/lib/libcrypto/man/DSA_dup_DH.341
1 files changed, 41 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/DSA_dup_DH.3 b/src/lib/libcrypto/man/DSA_dup_DH.3
new file mode 100644
index 0000000000..c8b7ec60ab
--- /dev/null
+++ b/src/lib/libcrypto/man/DSA_dup_DH.3
@@ -0,0 +1,41 @@
1.Dd $Mdocdate: November 2 2016 $
2.Dt DSA_DUP_DH 3
3.Os
4.Sh NAME
5.Nm DSA_dup_DH
6.Nd create a DH structure out of DSA structure
7.Sh SYNOPSIS
8.In openssl/dsa.h
9.Ft DH *
10.Fo DSA_dup_DH
11.Fa "const DSA *r"
12.Fc
13.Sh DESCRIPTION
14.Fn DSA_dup_DH
15duplicates
16.Vt DSA
17parameters/keys as
18.Vt DH
19parameters/keys.
20.Fa r->q
21is lost during that conversion, but the resulting
22.Vt DH
23parameters contain its length.
24.Sh RETURN VALUE
25.Fn DSA_dup_DH
26returns the new
27.Vt DH
28structure or
29.Dv NULL
30on error.
31The error codes can be obtained by
32.Xr ERR_get_error 3 .
33.Sh SEE ALSO
34.Xr dh 3 ,
35.Xr dsa 3 ,
36.Xr ERR_get_error 3
37.Sh HISTORY
38.Fn DSA_dup_DH
39was added in OpenSSL 0.9.4.
40.Sh CAVEATS
41Be careful to avoid small subgroup attacks when using this.