1gnutls_dh_params_export_pkcs3(3) gnutls gnutls_dh_params_export_pkcs3(3)
2
3
4
6 gnutls_dh_params_export_pkcs3 - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_dh_params_export_pkcs3(gnutls_dh_params_t params,
12 gnutls_x509_crt_fmt_t format, unsigned char * params_data, size_t *
13 params_data_size);
14
16 gnutls_dh_params_t params
17 Holds the DH parameters
18
19 gnutls_x509_crt_fmt_t format
20 the format of output params. One of PEM or DER.
21
22 unsigned char * params_data
23 will contain a PKCS3 DHParams structure PEM or DER encoded
24
25 size_t * params_data_size
26 holds the size of params_data (and will be replaced by the
27 actual size of parameters)
28
30 This function will export the given dh parameters to a PKCS3 DHParams
31 structure. This is the format generated by "openssl dhparam" tool. If
32 the buffer provided is not long enough to hold the output, then
33 GNUTLS_E_SHORT_MEMORY_BUFFER will be returned.
34
35 If the structure is PEM encoded, it will have a header of "BEGIN DH
36 PARAMETERS".
37
39 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative
40 error code is returned.
41
43 Report bugs to <bugs@gnutls.org>.
44 Home page: http://www.gnutls.org
45
46
48 Copyright © 2001-2018 Free Software Foundation, Inc., and others.
49 Copying and distribution of this file, with or without modification,
50 are permitted in any medium without royalty provided the copyright
51 notice and this notice are preserved.
52
54 The full documentation for gnutls is maintained as a Texinfo manual.
55 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
56 visit
57
58 http://www.gnutls.org/manual/
59
60gnutls 3.6.5 gnutls_dh_params_export_pkcs3(3)