1gnutls_dh_params_export_pkcs3(3)    gnutls    gnutls_dh_params_export_pkcs3(3)
2
3
4

NAME

6       gnutls_dh_params_export_pkcs3  - This function will export DH params to
7       a pkcs3 structure
8

SYNOPSIS

10       #include <gnutls/gnutls.h>
11
12       int      gnutls_dh_params_export_pkcs3(gnutls_dh_params_t       params,
13       gnutls_x509_crt_fmt_t  format,  unsigned  char  * params_data, size_t *
14       params_data_size);
15

ARGUMENTS

17       gnutls_dh_params_t params
18                   Holds the DH parameters
19
20       gnutls_x509_crt_fmt_t format
21                   the format of output params. One of PEM or DER.
22
23       unsigned char * params_data
24                   will contain a PKCS3 DHParams structure PEM or DER encoded
25
26       size_t * params_data_size
27                   holds the size of params_data (and will be replaced by  the
28                   actual size of parameters)
29

DESCRIPTION

31       This  function  will export the given dh parameters to a PKCS3 DHParams
32       structure. This is the format generated by "openssl dhparam" tool.   If
33       the  buffer  provided  is  not  long  enough  to  hold the output, then
34       GNUTLS_E_SHORT_MEMORY_BUFFER will be returned.
35
36       If the structure is PEM encoded, it will have a  header  of  "BEGIN  DH
37       PARAMETERS".
38
39       In case of failure a negative value will be returned, and 0 on success.
40

REPORTING BUGS

42       Report bugs to <bug-gnutls@gnu.org>.
43
45       Copyright © 2006 Free Software Foundation.
46       Permission  is  granted  to make and distribute verbatim copies of this
47       manual provided the copyright notice and  this  permission  notice  are
48       preserved on all copies.
49

SEE ALSO

51       The  full  documentation  for gnutls is maintained as a Texinfo manual.
52       If the info and gnutls programs are properly installed  at  your  site,
53       the command
54
55              info gnutls
56
57       should give you access to the complete manual.
58
59
60
61gnutls                               1.6.3    gnutls_dh_params_export_pkcs3(3)
Impressum