summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/DSA_new.3
diff options
context:
space:
mode:
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.