1gnutls_x509_crt_get_issuer_alt_ogtnhuetrlngsan_muxet5_l0os9i_dc(r3t)_get_issuer_alt_othername_oid(3)
2
3
4

NAME

6       gnutls_x509_crt_get_issuer_alt_othername_oid - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int      gnutls_x509_crt_get_issuer_alt_othername_oid(gnutls_x509_crt_t
12       cert, unsigned int seq, void * ret, size_t * ret_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 * ret  is the place where the otherName OID will be copied to
23
24       size_t * ret_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       If   oid  is  null then only the size will be filled. The  oid returned
33       will be null terminated, although  oid_size will not  account  for  the
34       trailing null.
35
36       This  function  is only useful if gnutls_x509_crt_get_issuer_alt_name()
37       returned GNUTLS_SAN_OTHERNAME.
38

RETURNS

40       the alternative issuer 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        ret_size is not large enough to hold the value.  In that case
46        ret_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

SINCE

52       2.10.0
53

REPORTING BUGS

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

SEE ALSO

66       The  full  documentation  for gnutls is maintained as a Texinfo manual.
67       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
68       visit
69
70       https://www.gnutls.org/manual/
71
72gnutls                         gnutl3s._6x.51059_crt_get_issuer_alt_othername_oid(3)
Impressum