summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/DH_new.3
diff options
context:
space:
mode:
authorschwarze <>2016-11-02 09:11:53 +0000
committerschwarze <>2016-11-02 09:11:53 +0000
commitb50ac7faef96a45291b0c3201b82185f7579e826 (patch)
tree9166b196a2c833fc7a0154973d11551824a6bfb9 /src/lib/libcrypto/man/DH_new.3
parent506350d1237710b9d86fdb3a794c6e6265f71221 (diff)
downloadopenbsd-b50ac7faef96a45291b0c3201b82185f7579e826.tar.gz
openbsd-b50ac7faef96a45291b0c3201b82185f7579e826.tar.bz2
openbsd-b50ac7faef96a45291b0c3201b82185f7579e826.zip
convert DES and DH manuals from pod to mdoc
Diffstat (limited to 'src/lib/libcrypto/man/DH_new.3')
-rw-r--r--src/lib/libcrypto/man/DH_new.344
1 files changed, 44 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/DH_new.3 b/src/lib/libcrypto/man/DH_new.3
new file mode 100644
index 0000000000..46b1570765
--- /dev/null
+++ b/src/lib/libcrypto/man/DH_new.3
@@ -0,0 +1,44 @@
1.Dd $Mdocdate: November 2 2016 $
2.Dt DH_NEW 3
3.Os
4.Sh NAME
5.Nm DH_new ,
6.Nm DH_free
7.Nd allocate and free DH objects
8.Sh SYNOPSIS
9.In openssl/dh.h
10.Ft DH*
11.Fn DH_new void
12.Ft void
13.Fo DH_free
14.Fa "DH *dh"
15.Fc
16.Sh DESCRIPTION
17.Fn DH_new
18allocates and initializes a
19.Vt DH
20structure.
21.Pp
22.Fn DH_free
23frees the
24.Vt DH
25structure and its components.
26The values are erased before the memory is returned to the system.
27.Sh RETURN VALUES
28If the allocation fails,
29.Fn DH_new
30returns
31.Dv NULL
32and sets an error code that can be obtained by
33.Xr ERR_get_error 3 .
34Otherwise it returns a pointer to the newly allocated structure.
35.Sh SEE ALSO
36.Xr dh 3 ,
37.Xr DH_generate_key 3 ,
38.Xr DH_generate_parameters 3 ,
39.Xr ERR_get_error 3
40.Sh HISTORY
41.Fn DH_new
42and
43.Fn DH_free
44are available in all versions of SSLeay and OpenSSL.