1gnutls_x509_crt_get_subject_altg_noutthlesrg_nnxau5mt0el9_s_ocirdt(_3g)et_subject_alt_othername_oid(3)
2
3
4

NAME

6       gnutls_x509_crt_get_subject_alt_othername_oid - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int     gnutls_x509_crt_get_subject_alt_othername_oid(gnutls_x509_crt_t
12       cert, unsigned int seq, void * oid, size_t * oid_size);
13

ARGUMENTS

15       gnutls_x509_crt_t cert
16                   should contain a gnutls_x509_crt_t type
17
18       unsigned int seq
19                   specifies the sequence number of the alt name  (0  for  the
20                   first one, 1 for the second etc.)
21
22       void * oid  is the place where the otherName OID will be copied to
23
24       size_t * oid_size
25                   holds the size of ret.
26

DESCRIPTION

28       This  function will extract the type OID of an otherName Subject Alter‐
29       native Name, contained in the given certificate, and return the type as
30       an enumerated element.
31
32       This  function is only useful if gnutls_x509_crt_get_subject_alt_name()
33       returned GNUTLS_SAN_OTHERNAME.
34
35       If  oid is null then only the size will be filled.  The   oid  returned
36       will  be  null  terminated, although  oid_size will not account for the
37       trailing null.
38

RETURNS

40       the alternative subject name type on success,  one  of  the  enumerated
41       gnutls_x509_subject_alt_name_t.  For supported OIDs, it will return one
42       of the virtual (GNUTLS_SAN_OTHERNAME_*) types,  e.g.  GNUTLS_SAN_OTHER‐
43       NAME_XMPP,  and  GNUTLS_SAN_OTHERNAME for unknown OIDs.  It will return
44       GNUTLS_E_SHORT_MEMORY_BUFFER if
45        ian_size is not large enough to hold the value.  In that case
46        ian_size will be updated with the required size.  If  the  certificate
47       does  not  have  an Alternative name with the specified sequence number
48       and with the otherName type then  GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE
49       is returned.
50

REPORTING BUGS

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

SEE ALSO

63       The  full  documentation  for gnutls is maintained as a Texinfo manual.
64       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
65       visit
66
67       https://www.gnutls.org/manual/
68
69gnutls                        gnutls_3x.560.97_crt_get_subject_alt_othername_oid(3)
Impressum