]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/DSA_new.pod
Make BIGNUM rand functions available within the FIPS module
[thirdparty/openssl.git] / doc / man3 / DSA_new.pod
CommitLineData
38e33cef
UM
1=pod
2
3=head1 NAME
4
5DSA_new, DSA_free - allocate and free DSA objects
6
7=head1 SYNOPSIS
8
9 #include <openssl/dsa.h>
10
11 DSA* DSA_new(void);
12
13 void DSA_free(DSA *dsa);
14
15=head1 DESCRIPTION
16
5bf73873
GT
17DSA_new() allocates and initializes a B<DSA> structure. It is equivalent to
18calling DSA_new_method(NULL).
38e33cef
UM
19
20DSA_free() frees the B<DSA> structure and its components. The values are
21erased before the memory is returned to the system.
d6407083 22If B<dsa> is NULL nothing is done.
38e33cef
UM
23
24=head1 RETURN VALUES
25
26If the allocation fails, DSA_new() returns B<NULL> and sets an error
27code that can be obtained by
9b86974e 28L<ERR_get_error(3)>. Otherwise it returns a pointer
38e33cef
UM
29to the newly allocated structure.
30
31DSA_free() returns no value.
32
33=head1 SEE ALSO
34
b97fdb57 35L<DSA_new(3)>, L<ERR_get_error(3)>,
9b86974e
RS
36L<DSA_generate_parameters(3)>,
37L<DSA_generate_key(3)>
38e33cef 38
e2f92610
RS
39=head1 COPYRIGHT
40
41Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
42
4746f25a 43Licensed under the Apache License 2.0 (the "License"). You may not use
e2f92610
RS
44this file except in compliance with the License. You can obtain a copy
45in the file LICENSE in the source distribution or at
46L<https://www.openssl.org/source/license.html>.
47
48=cut