DSA_DUP_DH(3SSL)
π DSA_dup_DH β the OpenSSL manual, bestie edition π
okay so this is DSA_dup_DH(3SSL) from the OpenSSL crew, and before you get excited β this one is deprecated, bestie. she's retired. still, iykyk, let's go through it. π
β¨ NAME β¨
DSA_dup_DH β create a DH structure out of a DSA structure. yes literally that's the whole job. it's giving β¨structure glow-upβ¨.
π¦ SYNOPSIS π¦
#include <openssl/dsa.h>
okay so warning you upfront: the following functions have been deprecated since OpenSSL 3.0, and you can hide them entirely by defining OPENSSL_API_COMPAT with a suitable version value β peep openssl_user_macros(7) for the deets. π
DH *DSA_dup_DH(const DSA *r);
πΈ DESCRIPTION πΈ
the function on this page is deprecated, full stop, no cap. and the plot twist? there is no direct replacement. applications should use the EVP_PKEY APIs for Diffie-Hellman operations instead. that's the move now. π
DSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. and here's the part you cannot miss: q is lost during that conversion β gone, adios, not invited to the afterparty π₯² β but the resulting DH parameters do contain its length. so her memory lives on in spirit, length-wise.
π RETURN VALUES π
DSA_dup_DH() returns the new DH structure, and NULL on error. if you need the error codes, you grab them with ERR_get_error(3). π
π NOTE π
be careful to avoid small subgroup attacks when using this. i'm serious. this is not the vibe to be careless about. π
π₯ SEE ALSO π₯
π HISTORY π
this function was deprecated in OpenSSL 3.0. she served her time. π«Ά
π COPYRIGHT π
Copyright 2000-2020 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>.
and that's the whole page, bestie β OpenSSL 4.0.3, dated 2026-09-29, DSA_DUP_DH(3SSL) β¨ stay safe, avoid those small subgroup attacks, mwah ππ
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms