blob: 22474251f2b798210526c92e631f20454d9361d1 [file] [log] [blame]
Ulf Möller38e33ce2000-01-27 19:31:26 +00001=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
Geoff Thorpe5bf73872002-08-05 16:27:01 +000017DSA_new() allocates and initializes a B<DSA> structure. It is equivalent to
18calling DSA_new_method(NULL).
Ulf Möller38e33ce2000-01-27 19:31:26 +000019
20DSA_free() frees the B<DSA> structure and its components. The values are
21erased before the memory is returned to the system.
Rich Salzd6407082015-03-24 10:17:37 -040022If B<dsa> is NULL nothing is done.
Ulf Möller38e33ce2000-01-27 19:31:26 +000023
24=head1 RETURN VALUES
25
26If the allocation fails, DSA_new() returns B<NULL> and sets an error
27code that can be obtained by
Rich Salz9b869742015-08-17 15:21:33 -040028L<ERR_get_error(3)>. Otherwise it returns a pointer
Ulf Möller38e33ce2000-01-27 19:31:26 +000029to the newly allocated structure.
30
31DSA_free() returns no value.
32
33=head1 SEE ALSO
34
Richard Levitteb97fdb52016-11-11 09:33:09 +010035L<DSA_new(3)>, L<ERR_get_error(3)>,
Rich Salz9b869742015-08-17 15:21:33 -040036L<DSA_generate_parameters(3)>,
37L<DSA_generate_key(3)>
Ulf Möller38e33ce2000-01-27 19:31:26 +000038
Rich Salze2f92612016-05-18 11:44:05 -040039=head1 COPYRIGHT
40
41Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
42
43Licensed under the OpenSSL license (the "License"). You may not use
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