gnutls_credentials_get(3)
β¨ gnutls_credentials_get(3) β¨
okay bestie so this is a page from the gnutls manual, and we're talking about gnutls_credentials_get π
πΈ NAME πΈ
gnutls_credentials_get β literally just an API function, that's it, that's the whole name π
π¦ SYNOPSIS π¦
#include <gnutls/gnutls.h>
int gnutls_credentials_get(gnutls_session_t session,
gnutls_credentials_type_t type, void ** cred);
π ARGUMENTS π
gnutls_session_t sessionβ bestie this is agnutls_session_ttype, that's the vibe πgnutls_credentials_type_t typeβ the type of the credentials you want it to hand back to you β¨void ** credβ this lil guy is where the credentials are gonna land π«Ά
π DESCRIPTION π
It returns the credentials structures you already gave it earlier. Like, you handed them over at some point, and now it's giving them back. no cap π
For GNUTLS_CRD_ANON, cred is gonna be a gnutls_anon_client_credentials_t if you're a client. And if you're a server, it should be gnutls_anon_server_credentials_t π«
For GNUTLS_CRD_SRP, cred is gonna be gnutls_srp_client_credentials_t if you're a client, and gnutls_srp_server_credentials_t if you're a server πΈ
For GNUTLS_CRD_PSK, cred is gonna be gnutls_psk_client_credentials_t if you're a client, and gnutls_psk_server_credentials_t if you're a server π
For GNUTLS_CRD_CERTIFICATE, cred is gonna be gnutls_certificate_credentials_t β
π₯ RETURNS π₯
On success, GNUTLS_E_SUCCESS (0) is returned π otherwise you get a negative error code back and honestly? rude. π
β SINCE β
3.3.3 β she's been around a minute, iconic behavior π
π REPORTING BUGS π
Found a bug? Report it to <bugs@gnutls.org>. π
Home page: https://www.gnutls.org π
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others. π«Ά
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. periodt π
π SEE ALSO π
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit:
https://www.gnutls.org/manual/
okay that's the whole page, tysm for reading, go forth and get those credentials bestie π§π
this was gnutls, version 3.8.13 β mwah, catch you on the next manpage πΈβ¨
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms