2000-01-22 20:05:23 +00:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
2016-06-06 04:43:05 +00:00
|
|
|
d2i_DHparams, i2d_DHparams - PKCS#3 DH parameter functions
|
2000-01-22 20:05:23 +00:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2000-01-27 01:25:31 +00:00
|
|
|
#include <openssl/dh.h>
|
2000-01-22 20:05:23 +00:00
|
|
|
|
|
|
|
DH *d2i_DHparams(DH **a, unsigned char **pp, long length);
|
|
|
|
int i2d_DHparams(DH *a, unsigned char **pp);
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2002-10-06 12:24:09 +00:00
|
|
|
These functions decode and encode PKCS#3 DH parameters using the
|
|
|
|
DHparameter structure described in PKCS#3.
|
2000-01-22 20:05:23 +00:00
|
|
|
|
2015-04-13 18:05:13 +00:00
|
|
|
Otherwise these behave in a similar way to d2i_X509() and i2d_X509()
|
2015-08-17 19:21:33 +00:00
|
|
|
described in the L<d2i_X509(3)> manual page.
|
2000-01-22 20:05:23 +00:00
|
|
|
|
2017-12-25 09:50:39 +00: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-22 20:05:23 +00:00
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2015-08-17 19:21:33 +00:00
|
|
|
L<d2i_X509(3)>
|
2000-01-22 20:05:23 +00:00
|
|
|
|
2016-05-18 15:44:05 +00:00
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2018-01-15 17:01:46 +00:00
|
|
|
Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
|
2016-05-18 15:44:05 +00:00
|
|
|
|
|
|
|
Licensed under the OpenSSL license (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
|
|
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
|
|
|
|
=cut
|