DSA_SET_METHOD(3ossl)
π
DSA_SET_METHOD β select DSA method (OpenSSL, 3ossl)
okay so bestie, this is the OpenSSL 3ossl page for the DSA method-selection girlies. Strap in, it's a deprecated-options episode but we're gonna make it cute. π
β¨ NAME β¨
DSA_set_default_method, DSA_get_default_method, DSA_set_method, DSA_new_method, DSA_OpenSSL β literally just picking your DSA method. that's the whole vibe. π
πΈ SYNOPSIS πΈ
#include <openssl/dsa.h>
β οΈ bestie, heads up: all of the functions below have been deprecated since OpenSSL 3.0, and you can hide them entirely by definingOPENSSL_API_COMPATwith a suitable version value β peepopenssl_user_macros(7)for the deets. π«Ά
void DSA_set_default_method(const DSA_METHOD *meth);
const DSA_METHOD *DSA_get_default_method(void);
int DSA_set_method(DSA *dsa, const DSA_METHOD *meth);
DSA *DSA_new_method(ENGINE *engine);
const DSA_METHOD *DSA_OpenSSL(void);
π¦ DESCRIPTION π¦
so, every single function on this page is deprecated. no cap. applications should be using providers instead of method overrides β that's the glow-up, ok?
a DSA_METHOD specifies the functions that OpenSSL uses for DSA operations. by modifying the method, alternative implementations such as hardware accelerators may be used. and like β IMPORTANT: see the NOTES section for important information about how these DSA API functions are affected by the use of ENGINE API calls. π
initially, the default DSA_METHOD is the OpenSSL internal implementation, as returned by DSA_OpenSSL().
DSA_set_default_method()β makes meth the default method for all DSA structures created later. NB: this is true only whilst noENGINEhas been set as a default for DSA, so this function is no longer recommended. also it is not thread-safe and should not be called at the same time as other OpenSSL functions. πDSA_get_default_method()β returns a pointer to the current defaultDSA_METHOD. however, the meaningfulness of this result is dependent on whether theENGINEAPI is being used, so this function is no longer recommended.DSA_set_method()β selects meth to perform all operations using the key rsa. this will replace theDSA_METHODused by the DSA key and if the previous method was supplied by anENGINE, the handle to thatENGINEwill be released during the change. it is possible to have DSA keys that only work with certainDSA_METHODimplementations (e.g. from anENGINEmodule that supports embedded hardware-protected keys), and in such cases attempting to change theDSA_METHODfor the key can have unexpected results. π seeDSA_meth_new(3)for information on constructing customDSA_METHODobjects;DSA_new_method()β allocates and initializes a DSA structure so that engine will be used for the DSA operations. if engine isNULL, the default engine for DSA operations is used, and if no defaultENGINEis set, theDSA_METHODcontrolled byDSA_set_default_method()is used. π§
β RETURN VALUES β
DSA_OpenSSL()andDSA_get_default_method()return pointers to the respectiveDSA_METHODs. π«ΆDSA_set_default_method()returns no value. nothing. nada. it's giving void.DSA_set_method()returns nonzero if the provided meth was successfully set as the method for dsa (including unloading theENGINEhandle if the previous method was supplied by anENGINE). πDSA_new_method()returnsNULLand sets an error code that can be obtained byERR_get_error(3)if the allocation fails. otherwise it returns a pointer to the newly allocated structure. slay.
π SEE ALSO π
DSA_new(3), DSA_new(3), DSA_meth_new(3)
yes bestie, DSA_new(3) is listed twice. no i'm not fixing it. it's iconic. π
π HISTORY π
all of these functions were deprecated in OpenSSL 3.0. that's the whole entry. periodt. π
π COPYRIGHT π
Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
licensed under the Apache License 2.0 (the "License"). you may not use this file except in compliance with the License. you can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>. πΈ
okay that's the page!! version 3.5.0, dated 2026-09-25 β go forth and please use providers instead, ily, bye!! πβ¨π¦
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms