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

NAME

6       gnutls_x509_crq_get_subject_alt_othername_oid - Get SAN otherName OID
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int     gnutls_x509_crq_get_subject_alt_othername_oid(gnutls_x509_crq_t
12       cert, unsigned int seq, void * ret, size_t * ret_size);
13

ARGUMENTS

15       gnutls_x509_crq_t cert
16                   should contain a gnutls_x509_crq_t structure
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       This  function is only useful if gnutls_x509_crq_get_subject_alt_name()
33       returned GNUTLS_SAN_OTHERNAME.
34

RETURNS

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

SINCE

47       2.8.0
48

REPORTING BUGS

50       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
51       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
52       http://www.gnu.org/gethelp/
53
55       Copyright © 2008 Free Software Foundation.
56       Copying and distribution of this file, with  or  without  modification,
57       are  permitted  in  any  medium  without royalty provided the copyright
58       notice and this notice are preserved.
59

SEE ALSO

61       The full documentation for gnutls is maintained as  a  Texinfo  manual.
62       If  the  info  and gnutls programs are properly installed at your site,
63       the command
64
65              info gnutls
66
67       should give you access to the complete manual.
68
69
70
71gnutls                        gnutls_2x.580.96_crq_get_subject_alt_othername_oid(3)
Impressum