1gnutls_certificate_type_get2(3)     gnutls     gnutls_certificate_type_get2(3)
2
3
4

NAME

6       gnutls_certificate_type_get2 - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       gnutls_certificate_type_t gnutls_certificate_type_get2(gnutls_session_t
12       session, gnutls_ctype_target_t target);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t type.
17
18       gnutls_ctype_target_t target
19                   is a gnutls_ctype_target_t type.
20

DESCRIPTION

22       This function returns the type of the certificate that a side is  nego‐
23       tiated  to  use.   The  certificate type is by default X.509, unless an
24       alternative certificate type is enabled by gnutls_init() and negotiated
25       during the session.
26
27       The   target parameter specifies whether to request the negotiated cer‐
28       tificate type for the client (GNUTLS_CTYPE_CLIENT), or for  the  server
29       (GNUTLS_CTYPE_SERVER).  Additionally,  in  P2P  mode  connection set up
30       where you don't know in advance who will be  client  and  who  will  be
31       server    you    can    use    the    flag    (GNUTLS_CTYPE_OURS)   and
32       (GNUTLS_CTYPE_PEERS) to retrieve the corresponding certificate types.
33
34       Resumed sessions will return the certificate type that  was  negotiated
35       and used in the original session. That is, this function can be used to
36       reliably determine the type of the certificate returned by  gnutls_cer‐
37       tificate_get_peers().
38

RETURNS

40       the  currently  used gnutls_certificate_type_t certificate type for the
41       client or the server.
42

SINCE

44       3.6.4
45

REPORTING BUGS

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

SEE ALSO

58       The full documentation for gnutls is maintained as  a  Texinfo  manual.
59       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
60       visit
61
62       https://www.gnutls.org/manual/
63
64gnutls                              3.6.15     gnutls_certificate_type_get2(3)
Impressum