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