gnutls_x509_crt_get_subject_alt_name2



gnutls_x509_crt_get_subject_alt_name2

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
RETURNS
REPORTING BUGS
COPYRIGHT
SEE ALSO

NAME

gnutls_x509_crt_get_subject_alt_name2 − API function

SYNOPSIS

#include <gnutls/x509.h>

int gnutls_x509_crt_get_subject_alt_name2(gnutls_x509_crt_t cert, unsigned int seq, void * ret, size_t * ret_size, unsigned int * ret_type, unsigned int * critical);

ARGUMENTS

gnutls_x509_crt_t cert

should contain a gnutls_x509_crt_t structure

unsigned int seq

specifies the sequence number of the alt name (0 for the first one, 1 for the second etc.)

void * ret

is the place where the alternative name will be copied to

size_t * ret_size

holds the size of ret.

unsigned int * ret_type

holds the type of the alternative name (one of gnutls_x509_subject_alt_name_t).

unsigned int * critical

will be non (0) if the extension is marked as critical (may be null)

DESCRIPTION

This function will return the alternative names, contained in the given certificate. It is the same as gnutls_x509_crt_get_subject_alt_name() except for the fact that it will return the type of the alternative name in ret_type even if the function fails for some reason (i.e. the buffer provided is not enough).

RETURNS

the alternative subject name type on success, one of the enumerated gnutls_x509_subject_alt_name_t. It will return GNUTLS_E_SHORT_MEMORY_BUFFER if ret_size is not large enough to hold the value. In that case ret_size will be updated with the required size. If the certificate does not have an Alternative name with the specified sequence number then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned.

REPORTING BUGS

Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page: http://www.gnu.org/software/gnutls/ General help using GNU software: http://www.gnu.org/gethelp/

COPYRIGHT

Copyright © 2008 Free Software Foundation.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

SEE ALSO

The full documentation for gnutls is maintained as a Texinfo manual. If the info and gnutls programs are properly installed at your site, the command

info gnutls

should give you access to the complete manual.



More Linux Commands

manpages/gcov-4.8.1.html
gcov-4.8(1) coverage testing tool - Linux manual page.......
gcov-4.8.1 - gcov is a test coverage program. Use it in concert with GCC to analyze your programs to help create more efficient, faster running code and to disc

manpages/mkfs.ntfs.8.html
mkfs.ntfs(8) - create an NTFS file system - Linux man page
mkntfs is used to create an NTFS file system on a device (usually a disk partition) or file. device is the special file corresponding to the device (e.g /dev/hd

manpages/pamvalidate.1.html
pamvalidate(1) validate Netpbm image format - Linux man page
This program is part of Netpbm(1) pamvalidate copies a Netpbm image from Standard Input to Standard Output, except that if there are certain violations of the i

manpages/Tcl_CreateObjCommand.3.html
Tcl_CreateObjCommand(3) - implement new commands in C.......
Tcl_CreateObjCommand defines a new command in interp and associates it with procedure proc such that whenever name is invoked as a Tcl command (e.g., via a call

manpages/glGetError.3gl.html
glGetError(3gl) - return error information - Linux man page
glGetError returns the value of the error flag. Each detectable error is assigned a numeric code and symbolic name. When an error occurs, the error flag is set

manpages/get_escdelay_sp.3ncurses.html
get_escdelay_sp(3ncurses) - curses screen-pointer extension
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

manpages/rtkitctl.8.html
rtkitctl(8) Realtime Policy and Watchdog daemon control.....
RealtimeKit is a D-Bus system service that changes the scheduling policy of user processes/threads to SCHED_RR (i.e. realtime scheduling mode) on request. It is

manpages/idmap_rfc2307.8.html
idmap_rfc2307(8) Samba's idmap_rfc2307 Backend for Winbind
The idmap_rfc2307 plugin provides a way for winbind to read id mappings from records in an LDAP server as defined in RFC 2307. The LDAP server can be stand-alon

manpages/ptrace.2.html
ptrace(2) - process trace (System calls - Linux man page)...
The ptrace() system call provides a means by which one process (the tracer) may observe and control the execution of another process (the tracee), and examine a

manpages/glTexEnv.3gl.html
glTexEnv(3gl) - set texture environment parameters (ManPage)
A texture environment specifies how texture values are interpreted when a fragment is textured. target must be GL_TEXTURE_ENV. pname can be either GL_TEXTURE_EN

manpages/ntp-keygen.1.html
ntp-keygen(1) - Create a NTP host key - Linux manual page...
This manual page briefly documents the ntp-keygen command. If there is no new host key, look for an existing one. If one is not found, create it. OPTIONS -c sch

manpages/dngettext.3.html
dngettext(3) - translate message and choose plural form.....
The ngettext, dngettext and dcngettext functions attempt to translate a text string into the users native language, by looking up the appropriate plural form of





We can't live, work or learn in freedom unless the software we use is free.