1DSA_NEW(3ossl)                      OpenSSL                     DSA_NEW(3ossl)
2
3
4

NAME

6       DSA_new, DSA_free - allocate and free DSA objects
7

SYNOPSIS

9        #include <openssl/dsa.h>
10
11       The following functions have been deprecated since OpenSSL 3.0, and can
12       be hidden entirely by defining OPENSSL_API_COMPAT with a suitable
13       version value, see openssl_user_macros(7):
14
15        DSA* DSA_new(void);
16
17        void DSA_free(DSA *dsa);
18

DESCRIPTION

20       All of the functions described on this page are deprecated.
21       Applications should instead use EVP_PKEY_new(3) and EVP_PKEY_free(3).
22
23       DSA_new() allocates and initializes a DSA structure. It is equivalent
24       to calling DSA_new_method(NULL).
25
26       DSA_free() frees the DSA structure and its components. The values are
27       erased before the memory is returned to the system.  If dsa is NULL
28       nothing is done.
29

RETURN VALUES

31       If the allocation fails, DSA_new() returns NULL and sets an error code
32       that can be obtained by ERR_get_error(3). Otherwise it returns a
33       pointer to the newly allocated structure.
34
35       DSA_free() returns no value.
36

SEE ALSO

38       EVP_PKEY_new(3), EVP_PKEY_free(3), DSA_new(3), ERR_get_error(3),
39       DSA_generate_parameters(3), DSA_generate_key(3)
40

HISTORY

42       All of these functions were deprecated in OpenSSL 3.0.
43
45       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
46
47       Licensed under the Apache License 2.0 (the "License").  You may not use
48       this file except in compliance with the License.  You can obtain a copy
49       in the file LICENSE in the source distribution or at
50       <https://www.openssl.org/source/license.html>.
51
52
53
543.0.5                             2022-07-05                    DSA_NEW(3ossl)
Impressum