5 DSA_new, DSA_free - allocate and free DSA objects
9 #include <openssl/dsa.h>
11 The following functions have been deprecated since OpenSSL 3.0, and can be
12 hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
13 see L<openssl_user_macros(7)>:
17 void DSA_free(DSA *dsa);
21 All of the functions described on this page are deprecated.
22 Applications should instead use L<EVP_PKEY_new(3)> and L<EVP_PKEY_free(3)>.
24 DSA_new() allocates and initializes a B<DSA> structure. It is equivalent to
25 calling DSA_new_method(NULL).
27 DSA_free() frees the B<DSA> structure and its components. The values are
28 erased before the memory is returned to the system.
29 If B<dsa> is NULL nothing is done.
33 If the allocation fails, DSA_new() returns B<NULL> and sets an error
34 code that can be obtained by
35 L<ERR_get_error(3)>. Otherwise it returns a pointer
36 to the newly allocated structure.
38 DSA_free() returns no value.
42 L<EVP_PKEY_new(3)>, L<EVP_PKEY_free(3)>,
43 L<DSA_new(3)>, L<ERR_get_error(3)>,
44 L<DSA_generate_parameters(3)>,
45 L<DSA_generate_key(3)>
49 All of these functions were deprecated in OpenSSL 3.0.
53 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
55 Licensed under the Apache License 2.0 (the "License"). You may not use
56 this file except in compliance with the License. You can obtain a copy
57 in the file LICENSE in the source distribution or at
58 L<https://www.openssl.org/source/license.html>.