1gnutls_credentials_get(3)           gnutls           gnutls_credentials_get(3)
2
3
4

NAME

6       gnutls_credentials_get - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int   gnutls_credentials_get(gnutls_session_t  session,  gnutls_creden‐
12       tials_type_t type, void ** cred);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t type.
17
18       gnutls_credentials_type_t type
19                   is the type of the credentials to return
20
21       void ** cred
22                   will contain the credentials.
23

DESCRIPTION

25       Returns the previously provided credentials structures.
26
27       For GNUTLS_CRD_ANON,  cred will be gnutls_anon_client_credentials_t  in
28       case   of   a   client.    In   case   of   a   server   it  should  be
29       gnutls_anon_server_credentials_t.
30
31       For GNUTLS_CRD_SRP,  cred will  be  gnutls_srp_client_credentials_t  in
32       case  of  a  client,  and gnutls_srp_server_credentials_t, in case of a
33       server.
34
35       For GNUTLS_CRD_CERTIFICATE,  cred  will  be  gnutls_certificate_creden‐
36       tials_t.
37

RETURNS

39       On  success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
40       ror code is returned.
41

SINCE

43       3.3.3
44

REPORTING BUGS

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

SEE ALSO

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