1gnutls_x509_crt_set_subject_alt_othgenrgunntaulmtsel_(sx35)09_crt_set_subject_alt_othername(3)
2
3
4

NAME

6       gnutls_x509_crt_set_subject_alt_othername - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int   gnutls_x509_crt_set_subject_alt_othername(gnutls_x509_crt_t  crt,
12       const char * oid, const void * data, unsigned int  data_size,  unsigned
13       int flags);
14

ARGUMENTS

16       gnutls_x509_crt_t crt
17                   a certificate of type gnutls_x509_crt_t
18
19       const char * oid
20                   The other name OID
21
22       const void * data
23                   The data to be set
24
25       unsigned int data_size
26                   The size of data to be set
27
28       unsigned int flags
29                   GNUTLS_FSAN_SET  to  clear previous data or GNUTLS_FSAN_AP‐
30                   PEND to append.
31

DESCRIPTION

33       This function will set an "othername" to the subject  alternative  name
34       certificate extension.
35
36       The  values  set  are set as binary values and are expected to have the
37       proper  DER  encoding.   For  convenience  the  flags   GNUTLS_FSAN_EN‐
38       CODE_OCTET_STRING and GNUTLS_FSAN_ENCODE_UTF8_STRING can be used to en‐
39       code the provided data.
40

RETURNS

42       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative  er‐
43       ror value.
44

SINCE

46       3.5.0
47

REPORTING BUGS

49       Report bugs to <bugs@gnutls.org>.
50       Home page: https://www.gnutls.org
51
52
54       Copyright © 2001- Free Software Foundation, Inc., and others.
55       Copying  and  distribution  of this file, with or without modification,
56       are permitted in any medium without royalty provided the copyright  no‐
57       tice and this notice are preserved.
58

SEE ALSO

60       The  full  documentation  for gnutls is maintained as a Texinfo manual.
61       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
62       visit
63
64       https://www.gnutls.org/manual/
65
66gnutls                            gnu3t.l7s._2x509_crt_set_subject_alt_othername(3)
Impressum