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

NAME

6       DSA_set_default_method, DSA_get_default_method, DSA_set_method,
7       DSA_new_method, DSA_OpenSSL - select DSA method
8

SYNOPSIS

10        #include <openssl/dsa.h>
11
12       The following functions have been deprecated since OpenSSL 3.0, and can
13       be hidden entirely by defining OPENSSL_API_COMPAT with a suitable
14       version value, see openssl_user_macros(7):
15
16        void DSA_set_default_method(const DSA_METHOD *meth);
17
18        const DSA_METHOD *DSA_get_default_method(void);
19
20        int DSA_set_method(DSA *dsa, const DSA_METHOD *meth);
21
22        DSA *DSA_new_method(ENGINE *engine);
23
24        const DSA_METHOD *DSA_OpenSSL(void);
25

DESCRIPTION

27       All of the functions described on this page are deprecated.
28       Applications should providers instead of method overrides.
29
30       A DSA_METHOD specifies the functions that OpenSSL uses for DSA
31       operations. By modifying the method, alternative implementations such
32       as hardware accelerators may be used. IMPORTANT: See the NOTES section
33       for important information about how these DSA API functions are
34       affected by the use of ENGINE API calls.
35
36       Initially, the default DSA_METHOD is the OpenSSL internal
37       implementation, as returned by DSA_OpenSSL().
38
39       DSA_set_default_method() makes meth the default method for all DSA
40       structures created later.  NB: This is true only whilst no ENGINE has
41       been set as a default for DSA, so this function is no longer
42       recommended.  This function is not thread-safe and should not be called
43       at the same time as other OpenSSL functions.
44
45       DSA_get_default_method() returns a pointer to the current default
46       DSA_METHOD. However, the meaningfulness of this result is dependent on
47       whether the ENGINE API is being used, so this function is no longer
48       recommended.
49
50       DSA_set_method() selects meth to perform all operations using the key
51       rsa. This will replace the DSA_METHOD used by the DSA key and if the
52       previous method was supplied by an ENGINE, the handle to that ENGINE
53       will be released during the change. It is possible to have DSA keys
54       that only work with certain DSA_METHOD implementations (e.g. from an
55       ENGINE module that supports embedded hardware-protected keys), and in
56       such cases attempting to change the DSA_METHOD for the key can have
57       unexpected results. See DSA_meth_new(3) for information on constructing
58       custom DSA_METHOD objects;
59
60       DSA_new_method() allocates and initializes a DSA structure so that
61       engine will be used for the DSA operations. If engine is NULL, the
62       default engine for DSA operations is used, and if no default ENGINE is
63       set, the DSA_METHOD controlled by DSA_set_default_method() is used.
64

RETURN VALUES

66       DSA_OpenSSL() and DSA_get_default_method() return pointers to the
67       respective DSA_METHODs.
68
69       DSA_set_default_method() returns no value.
70
71       DSA_set_method() returns nonzero if the provided meth was successfully
72       set as the method for dsa (including unloading the ENGINE handle if the
73       previous method was supplied by an ENGINE).
74
75       DSA_new_method() returns NULL and sets an error code that can be
76       obtained by ERR_get_error(3) if the allocation fails. Otherwise it
77       returns a pointer to the newly allocated structure.
78

SEE ALSO

80       DSA_new(3), DSA_new(3), DSA_meth_new(3)
81

HISTORY

83       All of these functions were deprecated in OpenSSL 3.0.
84
86       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
87
88       Licensed under the Apache License 2.0 (the "License").  You may not use
89       this file except in compliance with the License.  You can obtain a copy
90       in the file LICENSE in the source distribution or at
91       <https://www.openssl.org/source/license.html>.
92
93
94
953.0.9                             2023-07-27             DSA_SET_METHOD(3ossl)
Impressum