2000-01-28 03:31:26 +08:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
2000-02-24 19:55:57 +08:00
|
|
|
DSA_dup_DH - create a DH structure out of DSA structure
|
2000-01-28 03:31:26 +08:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
#include <openssl/dsa.h>
|
|
|
|
|
2021-12-02 19:33:49 +08:00
|
|
|
The following functions have been deprecated since OpenSSL 3.0, and can be
|
|
|
|
hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
|
|
|
|
see L<openssl_user_macros(7)>:
|
2020-02-03 17:05:31 +08:00
|
|
|
|
2017-01-21 02:58:49 +08:00
|
|
|
DH *DSA_dup_DH(const DSA *r);
|
2000-01-28 03:31:26 +08:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2020-02-03 17:05:31 +08:00
|
|
|
The function described on this page is deprecated. There is no direct
|
|
|
|
replacement, applications should use the EVP_PKEY APIs for Diffie-Hellman
|
|
|
|
operations.
|
|
|
|
|
2000-01-28 03:31:26 +08:00
|
|
|
DSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. q
|
|
|
|
is lost during that conversion, but the resulting DH parameters
|
|
|
|
contain its length.
|
|
|
|
|
2017-12-25 17:50:39 +08:00
|
|
|
=head1 RETURN VALUES
|
2000-01-28 03:31:26 +08:00
|
|
|
|
|
|
|
DSA_dup_DH() returns the new B<DH> structure, and NULL on error. The
|
2015-08-18 03:21:33 +08:00
|
|
|
error codes can be obtained by L<ERR_get_error(3)>.
|
2000-01-28 03:31:26 +08:00
|
|
|
|
2000-01-31 06:16:47 +08:00
|
|
|
=head1 NOTE
|
|
|
|
|
|
|
|
Be careful to avoid small subgroup attacks when using this.
|
|
|
|
|
2000-01-28 03:31:26 +08:00
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2016-11-11 16:33:09 +08:00
|
|
|
L<DH_new(3)>, L<DSA_new(3)>, L<ERR_get_error(3)>
|
2000-01-28 03:31:26 +08:00
|
|
|
|
2020-02-03 17:05:31 +08:00
|
|
|
=head1 HISTORY
|
|
|
|
|
|
|
|
This function was deprecated in OpenSSL 3.0.
|
|
|
|
|
2016-05-18 23:44:05 +08:00
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2020-04-23 20:55:52 +08:00
|
|
|
Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
|
2016-05-18 23:44:05 +08:00
|
|
|
|
2018-12-06 21:04:44 +08:00
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 23:44:05 +08:00
|
|
|
this file except in compliance with the License. You can obtain a copy
|
|
|
|
in the file LICENSE in the source distribution or at
|
|
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
|
|
|
|
=cut
|