1gnutls_dh_params_import_pkcs3(3) gnutls gnutls_dh_params_import_pkcs3(3)
2
3
4
6 gnutls_dh_params_import_pkcs3 - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_dh_params_import_pkcs3(gnutls_dh_params_t params, const
12 gnutls_datum_t * pkcs3_params, gnutls_x509_crt_fmt_t format);
13
15 gnutls_dh_params_t params
16 The parameters
17
18 const gnutls_datum_t * pkcs3_params
19 should contain a PKCS3 DHParams structure PEM or DER
20 encoded
21
22 gnutls_x509_crt_fmt_t format
23 the format of params. PEM or DER.
24
26 This function will extract the DHParams found in a PKCS3 formatted
27 structure. This is the format generated by "openssl dhparam" tool.
28
29 If the structure is PEM encoded, it should have a header of "BEGIN DH
30 PARAMETERS".
31
33 On success, GNUTLS_E_SUCCESS [22m(0) is returned, otherwise a negative
34 error code is returned.
35
37 Report bugs to <bugs@gnutls.org>.
38 Home page: https://www.gnutls.org
39
40
42 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
43 Copying and distribution of this file, with or without modification,
44 are permitted in any medium without royalty provided the copyright
45 notice and this notice are preserved.
46
48 The full documentation for gnutls is maintained as a Texinfo manual.
49 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
50 visit
51
52 https://www.gnutls.org/manual/
53
54gnutls 3.6.8 gnutls_dh_params_import_pkcs3(3)