2000-01-23 04:05:23 +08:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
2016-06-06 12:43:05 +08:00
|
|
|
d2i_DHparams, i2d_DHparams - PKCS#3 DH parameter functions
|
2000-01-23 04:05:23 +08:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2000-01-27 09:25:31 +08:00
|
|
|
#include <openssl/dh.h>
|
2000-01-23 04:05:23 +08:00
|
|
|
|
|
|
|
DH *d2i_DHparams(DH **a, unsigned char **pp, long length);
|
|
|
|
int i2d_DHparams(DH *a, unsigned char **pp);
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2002-10-06 20:24:09 +08:00
|
|
|
These functions decode and encode PKCS#3 DH parameters using the
|
|
|
|
DHparameter structure described in PKCS#3.
|
2000-01-23 04:05:23 +08:00
|
|
|
|
2015-04-14 02:05:13 +08:00
|
|
|
Otherwise these behave in a similar way to d2i_X509() and i2d_X509()
|
2015-08-18 03:21:33 +08:00
|
|
|
described in the L<d2i_X509(3)> manual page.
|
2000-01-23 04:05:23 +08:00
|
|
|
|
2017-12-25 17:50:39 +08:00
|
|
|
=head1 RETURN VALUES
|
|
|
|
|
|
|
|
d2i_DHparams() returns a valid B<DH> structure or NULL if an error occurred.
|
|
|
|
|
|
|
|
i2d_DHparams() returns the length of encoded data on success or a value which
|
|
|
|
is less than or equal to 0 on error.
|
|
|
|
|
2000-01-23 04:05:23 +08:00
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2015-08-18 03:21:33 +08:00
|
|
|
L<d2i_X509(3)>
|
2000-01-23 04:05:23 +08:00
|
|
|
|
2016-05-18 23:44:05 +08:00
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2018-01-16 01:01:46 +08:00
|
|
|
Copyright 2000-2018 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
|