blob: 50670f5098ed14edbde886317ff84b8f37fdd89c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
.\" $OpenBSD: DSA_new.3,v 1.2 2016/11/06 15:52:50 jmc Exp $
.\"
.Dd $Mdocdate: November 6 2016 $
.Dt DSA_NEW 3
.Os
.Sh NAME
.Nm DSA_new ,
.Nm DSA_free
.Nd allocate and free DSA objects
.Sh SYNOPSIS
.In openssl/dsa.h
.Ft DSA*
.Fn DSA_new void
.Ft void
.Fo DSA_free
.Fa "DSA *dsa"
.Fc
.Sh DESCRIPTION
.Fn DSA_new
allocates and initializes a
.Vt DSA
structure.
It is equivalent to calling
.Fn DSA_new_method NULL .
.Pp
.Fn DSA_free
frees the
.Vt DSA
structure and its components.
The values are erased before the memory is returned to the system.
.Sh RETURN VALUES
If the allocation fails,
.Fn DSA_new
returns
.Dv NULL
and sets an error code that can be obtained by
.Xr ERR_get_error 3 .
Otherwise it returns a pointer to the newly allocated structure.
.Sh SEE ALSO
.Xr dsa 3 ,
.Xr DSA_generate_key 3 ,
.Xr DSA_generate_parameters 3 ,
.Xr ERR_get_error 3
.Sh HISTORY
.Fn DSA_new
and
.Fn DSA_free
are available in all versions of SSLeay and OpenSSL.
|