gnutls_compres...selected_method(3)

πŸ’– gnutls_compress_certificate_get_selected_method β€” the vibe check on your cert compression ✨

okay bestie, so this page is part of the gnutls manual, and it's literally about asking a TLS session "hey, which certificate compression method did we end up going with?" πŸŽ€


✨ NAME ✨

gnutls_compress_certificate_get_selected_method β€” an API function, and yes it does exactly what the name says, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

gnutls_compression_method_t
gnutls_compress_certificate_get_selected_method(gnutls_session_t
session);

like… look at that signature. it's giving clean. it takes a session, it hands you back a compression method. periodt 🌸


πŸ“ ARGUMENTS πŸ“

  • gnutls_session_t session β€” bestie this is a gnutls_session_t type. that's the whole thing. that's the argument. iconic of it honestly πŸ’œ

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea β˜•

This function returns the certificate compression method that has been selected to compress the certificate before sending it to the peer. πŸ”₯

and how did we get there? The selection is done based on two things, fr fr:

  1. the local list of supported compression methods, and
  2. the peer's requested compression methods 🫢

so basically it's a little negotiation moment between you and the other side, and this function tells you who won. main character energy 🌈


⭐ RETURNS ⭐

selected certificate compression method. that's it, that's the return value πŸ’–

Since 3.7.4 β€” so if you're on something ancient, bestie, this is not for you 😭

πŸ™ˆ REPORTING BUGS πŸ™ˆ

found something cursed? don't just scream about it in the group chat β€” Report bugs 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. (translation: go off, just keep the receipts 🧾✨)


🌸 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/

like, the docs are right there, bestie, go read them, iykyk πŸ“šπŸ’…


this has been your girl, signing off on the gnutls manual, version 3.8.13 πŸ¦‹ stay compressed, stay cute, and remember: the peer's requested methods are only a suggestion, the local list is the law πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from