Tizen 2.0 Release
[external/libgnutls26.git] / doc / manpages / gnutls_x509_crt_get_issuer_alt_othername_oid.3
1 .\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
2 .TH "gnutls_x509_crt_get_issuer_alt_othername_oid" 3 "2.12.6.1" "gnutls" "gnutls"
3 .SH NAME
4 gnutls_x509_crt_get_issuer_alt_othername_oid \- API function
5 .SH SYNOPSIS
6 .B #include <gnutls/x509.h>
7 .sp
8 .BI "int gnutls_x509_crt_get_issuer_alt_othername_oid(gnutls_x509_crt_t " cert ", unsigned int " seq ", void * " ret ", size_t * " ret_size ");"
9 .SH ARGUMENTS
10 .IP "gnutls_x509_crt_t cert" 12
11 should contain a \fBgnutls_x509_crt_t\fP structure
12 .IP "unsigned int seq" 12
13 specifies the sequence number of the alt name (0 for the first one, 1 for the second etc.)
14 .IP "void * ret" 12
15 is the place where the otherName OID will be copied to
16 .IP "size_t * ret_size" 12
17 holds the size of ret.
18 .SH "DESCRIPTION"
19 This function will extract the type OID of an otherName Subject
20 Alternative Name, contained in the given certificate, and return
21 the type as an enumerated element.
22
23 This function is only useful if
24 \fBgnutls_x509_crt_get_issuer_alt_name()\fP returned
25 \fBGNUTLS_SAN_OTHERNAME\fP.
26 .SH "RETURNS"
27 the alternative issuer name type on success, one of the
28 enumerated gnutls_x509_subject_alt_name_t.  For supported OIDs, it
29 will return one of the virtual (GNUTLS_SAN_OTHERNAME_*) types,
30 e.g. \fBGNUTLS_SAN_OTHERNAME_XMPP\fP, and \fBGNUTLS_SAN_OTHERNAME\fP for
31 unknown OIDs.  It will return \fBGNUTLS_E_SHORT_MEMORY_BUFFER\fP if
32 \fIret_size\fP is not large enough to hold the value.  In that case
33 \fIret_size\fP will be updated with the required size.  If the
34 certificate does not have an Alternative name with the specified
35 sequence number and with the otherName type then
36 \fBGNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE\fP is returned.
37 .SH "SINCE"
38 2.10.0
39 .SH "REPORTING BUGS"
40 Report bugs to <bug-gnutls@gnu.org>.
41 GnuTLS home page: http://www.gnu.org/software/gnutls/
42 General help using GNU software: http://www.gnu.org/gethelp/
43 .SH COPYRIGHT
44 Copyright \(co 2008 Free Software Foundation.
45 .br
46 Copying and distribution of this file, with or without modification,
47 are permitted in any medium without royalty provided the copyright
48 notice and this notice are preserved.
49 .SH "SEE ALSO"
50 The full documentation for
51 .B gnutls
52 is maintained as a Texinfo manual.  If the
53 .B info
54 and
55 .B gnutls
56 programs are properly installed at your site, the command
57 .IP
58 .B info gnutls
59 .PP
60 should give you access to the complete manual.