]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/d2i_DHparams.pod
Add d2i_KeyParams/i2d_KeyParams API's.
[thirdparty/openssl.git] / doc / man3 / d2i_DHparams.pod
CommitLineData
4486d0cd
UM
1=pod
2
3=head1 NAME
4
bb9ad09e 5d2i_DHparams, i2d_DHparams - PKCS#3 DH parameter functions
4486d0cd
UM
6
7=head1 SYNOPSIS
8
bb075f88 9 #include <openssl/dh.h>
4486d0cd
UM
10
11 DH *d2i_DHparams(DH **a, unsigned char **pp, long length);
12 int i2d_DHparams(DH *a, unsigned char **pp);
13
14=head1 DESCRIPTION
15
292fcd5c
DSH
16These functions decode and encode PKCS#3 DH parameters using the
17DHparameter structure described in PKCS#3.
4486d0cd 18
186bb907 19Otherwise these behave in a similar way to d2i_X509() and i2d_X509()
9b86974e 20described in the L<d2i_X509(3)> manual page.
4486d0cd 21
1f13ad31
PY
22=head1 RETURN VALUES
23
24d2i_DHparams() returns a valid B<DH> structure or NULL if an error occurred.
25
26i2d_DHparams() returns the length of encoded data on success or a value which
27is less than or equal to 0 on error.
28
4486d0cd
UM
29=head1 SEE ALSO
30
9b86974e 31L<d2i_X509(3)>
4486d0cd 32
e2f92610
RS
33=head1 COPYRIGHT
34
61f805c1 35Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
e2f92610 36
4746f25a 37Licensed under the Apache License 2.0 (the "License"). You may not use
e2f92610
RS
38this file except in compliance with the License. You can obtain a copy
39in the file LICENSE in the source distribution or at
40L<https://www.openssl.org/source/license.html>.
41
42=cut