xref: /netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/DSA_dup_DH.pod (revision b0d1725196a7921d003d2c66a14f186abda4176b)
113d40330Schristos=pod
213d40330Schristos
313d40330Schristos=head1 NAME
413d40330Schristos
513d40330SchristosDSA_dup_DH - create a DH structure out of DSA structure
613d40330Schristos
713d40330Schristos=head1 SYNOPSIS
813d40330Schristos
913d40330Schristos #include <openssl/dsa.h>
1013d40330Schristos
11*b0d17251SchristosThe following functions have been deprecated since OpenSSL 3.0, and can be
12*b0d17251Schristoshidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
13*b0d17251Schristossee L<openssl_user_macros(7)>:
14*b0d17251Schristos
1513d40330Schristos DH *DSA_dup_DH(const DSA *r);
1613d40330Schristos
1713d40330Schristos=head1 DESCRIPTION
1813d40330Schristos
19*b0d17251SchristosThe function described on this page is deprecated. There is no direct
20*b0d17251Schristosreplacement, applications should use the EVP_PKEY APIs for Diffie-Hellman
21*b0d17251Schristosoperations.
22*b0d17251Schristos
2313d40330SchristosDSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. q
2413d40330Schristosis lost during that conversion, but the resulting DH parameters
2513d40330Schristoscontain its length.
2613d40330Schristos
2713d40330Schristos=head1 RETURN VALUES
2813d40330Schristos
2913d40330SchristosDSA_dup_DH() returns the new B<DH> structure, and NULL on error. The
3013d40330Schristoserror codes can be obtained by L<ERR_get_error(3)>.
3113d40330Schristos
3213d40330Schristos=head1 NOTE
3313d40330Schristos
3413d40330SchristosBe careful to avoid small subgroup attacks when using this.
3513d40330Schristos
3613d40330Schristos=head1 SEE ALSO
3713d40330Schristos
3813d40330SchristosL<DH_new(3)>, L<DSA_new(3)>, L<ERR_get_error(3)>
3913d40330Schristos
40*b0d17251Schristos=head1 HISTORY
41*b0d17251Schristos
42*b0d17251SchristosThis function was deprecated in OpenSSL 3.0.
43*b0d17251Schristos
4413d40330Schristos=head1 COPYRIGHT
4513d40330Schristos
46*b0d17251SchristosCopyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
4713d40330Schristos
48*b0d17251SchristosLicensed under the Apache License 2.0 (the "License").  You may not use
4913d40330Schristosthis file except in compliance with the License.  You can obtain a copy
5013d40330Schristosin the file LICENSE in the source distribution or at
5113d40330SchristosL<https://www.openssl.org/source/license.html>.
5213d40330Schristos
5313d40330Schristos=cut
54