1e1051a39Sopenharmony_ci=pod
2e1051a39Sopenharmony_ci
3e1051a39Sopenharmony_ci=head1 NAME
4e1051a39Sopenharmony_ci
5e1051a39Sopenharmony_ciDSA_dup_DH - create a DH structure out of DSA structure
6e1051a39Sopenharmony_ci
7e1051a39Sopenharmony_ci=head1 SYNOPSIS
8e1051a39Sopenharmony_ci
9e1051a39Sopenharmony_ci #include <openssl/dsa.h>
10e1051a39Sopenharmony_ci
11e1051a39Sopenharmony_ciThe following functions have been deprecated since OpenSSL 3.0, and can be
12e1051a39Sopenharmony_cihidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
13e1051a39Sopenharmony_cisee L<openssl_user_macros(7)>:
14e1051a39Sopenharmony_ci
15e1051a39Sopenharmony_ci DH *DSA_dup_DH(const DSA *r);
16e1051a39Sopenharmony_ci
17e1051a39Sopenharmony_ci=head1 DESCRIPTION
18e1051a39Sopenharmony_ci
19e1051a39Sopenharmony_ciThe function described on this page is deprecated. There is no direct
20e1051a39Sopenharmony_cireplacement, applications should use the EVP_PKEY APIs for Diffie-Hellman
21e1051a39Sopenharmony_cioperations.
22e1051a39Sopenharmony_ci
23e1051a39Sopenharmony_ciDSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. q
24e1051a39Sopenharmony_ciis lost during that conversion, but the resulting DH parameters
25e1051a39Sopenharmony_cicontain its length.
26e1051a39Sopenharmony_ci
27e1051a39Sopenharmony_ci=head1 RETURN VALUES
28e1051a39Sopenharmony_ci
29e1051a39Sopenharmony_ciDSA_dup_DH() returns the new B<DH> structure, and NULL on error. The
30e1051a39Sopenharmony_cierror codes can be obtained by L<ERR_get_error(3)>.
31e1051a39Sopenharmony_ci
32e1051a39Sopenharmony_ci=head1 NOTE
33e1051a39Sopenharmony_ci
34e1051a39Sopenharmony_ciBe careful to avoid small subgroup attacks when using this.
35e1051a39Sopenharmony_ci
36e1051a39Sopenharmony_ci=head1 SEE ALSO
37e1051a39Sopenharmony_ci
38e1051a39Sopenharmony_ciL<DH_new(3)>, L<DSA_new(3)>, L<ERR_get_error(3)>
39e1051a39Sopenharmony_ci
40e1051a39Sopenharmony_ci=head1 HISTORY
41e1051a39Sopenharmony_ci
42e1051a39Sopenharmony_ciThis function was deprecated in OpenSSL 3.0.
43e1051a39Sopenharmony_ci
44e1051a39Sopenharmony_ci=head1 COPYRIGHT
45e1051a39Sopenharmony_ci
46e1051a39Sopenharmony_ciCopyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
47e1051a39Sopenharmony_ci
48e1051a39Sopenharmony_ciLicensed under the Apache License 2.0 (the "License").  You may not use
49e1051a39Sopenharmony_cithis file except in compliance with the License.  You can obtain a copy
50e1051a39Sopenharmony_ciin the file LICENSE in the source distribution or at
51e1051a39Sopenharmony_ciL<https://www.openssl.org/source/license.html>.
52e1051a39Sopenharmony_ci
53e1051a39Sopenharmony_ci=cut
54