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 structure.
17
18       gnutls_credentials_type_t type
19                   is the type of the credentials to return
20
21       void ** cred
22                   will contain the pointer to the credentials structure.
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
40       error code is returned.
41

REPORTING BUGS

43       Report bugs to <bugs@gnutls.org>.
44       Home page: http://www.gnutls.org
45
46
48       Copyright © 2001-2014 Free Software Foundation, Inc..
49       Copying and distribution of this file, with  or  without  modification,
50       are  permitted  in  any  medium  without royalty provided the copyright
51       notice and this notice are preserved.
52

SEE ALSO

54       The full documentation for gnutls is maintained as  a  Texinfo  manual.
55       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
56       visit
57
58       http://www.gnutls.org/manual/
59
60gnutls                              3.3.29           gnutls_credentials_get(3)
Impressum