Fix CVE-2017-6891 in minitasn1 code
[platform/upstream/gnutls.git] / doc / functions / gnutls_x509_crq_set_dn
1
2
3
4
5 @deftypefun {int} {gnutls_x509_crq_set_dn} (gnutls_x509_crq_t @var{crq}, const char * @var{dn}, const char ** @var{err})
6 @var{crq}: a certificate of type @code{gnutls_x509_crq_t} 
7
8 @var{dn}: a comma separated DN string (RFC4514)
9
10 @var{err}: indicates the error position (if any)
11
12 This function will set the DN on the provided certificate.
13 The input string should be plain ASCII or UTF-8 encoded.
14
15 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
16 negative error value.
17 @end deftypefun