1gnutls_credentials_get(3) gnutls gnutls_credentials_get(3)
2
3
4
6 gnutls_credentials_get - API function
7
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
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
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
39 On success, GNUTLS_E_SUCCESS [22m(0) is returned, otherwise a negative
40 error code is returned.
41
43 3.3.3
44
46 Report bugs to <bugs@gnutls.org>.
47 Home page: http://www.gnutls.org
48
49
51 Copyright © 2001-2018 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
54 notice and this notice are preserved.
55
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 http://www.gnutls.org/manual/
62
63gnutls 3.6.5 gnutls_credentials_get(3)