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 a gnutls_session_t type, 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 © 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