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

NAME

6       gnutls_dh_params_export_pkcs3 - export DH params to a pkcs3 structure
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

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

RETURNS

39       On success, GNUTLS_E_SUCCESS (zero) is  returned,  otherwise  an  error
40       code is returned.
41

REPORTING BUGS

43       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
44       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
45       http://www.gnu.org/gethelp/
46
48       Copyright © 2008 Free Software Foundation.
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

SEE ALSO

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