Debian Codegraph @

doc/functions/gnutls_dh_params_export2_pkcs3

raw
1
2
3
4
5 @deftypefun {int} {gnutls_dh_params_export2_pkcs3} (gnutls_dh_params_t @var{params}, gnutls_x509_crt_fmt_t @var{format}, gnutls_datum_t * @var{out})
6 @var{params}: Holds the DH parameters
7
8 @var{format}: the format of output params. One of PEM or DER.
9
10 @var{out}: will contain a PKCS3 DHParams structure PEM or DER encoded
11
12 This function will export the given dh parameters to a PKCS3
13 DHParams structure. This is the format generated by "openssl dhparam" tool.
14 The data in @code{out} will be allocated using @code{gnutls_malloc()} .
15
16 If the structure is PEM encoded, it will have a header
17 of "BEGIN DH PARAMETERS".
18
19 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned,
20 otherwise a negative error code is returned.
21
22 @strong{Since:} 3.1.3
23 @end deftypefun