SSL_GET1_BUILTIN_SIGALGS(3ossl)

πŸ’– SSL_GET1_BUILTIN_SIGALGS πŸ’–

okay bestie so this is a page from the OpenSSL manual, section 3ossl, and it's all about one lil function that hands you the list of signature algorithms your TLS stack has built in and ready to go. it's giving "let me show you my roster" energy ✨


🌸 NAME 🌸

SSL_get1_builtin_sigalgs β€” get the list of built-in signature algorithms


πŸŽ€ SYNOPSIS πŸŽ€

#include <openssl/tls1.h>

char *SSL_get1_builtin_sigalgs(OSSL_LIB_CTX *libctx);

✨ DESCRIPTION ✨

So basically, this function returns the colon-separated list of built-in and available TLS signature algorithms. like, everything that's actually ready to rumble. πŸ”₯

and here's the part where you have to be a responsible main character: the string it returns is yours to free. you, the user, must free it using OPENSSL_free(3). no ghosting it, no leaking it, no "I'll do it later" β€” free it. πŸ’…


πŸ¦‹ NOTES πŸ¦‹

ngl, the string may be empty (strlen==0) if none of the built-in TLS signature algorithms can be activated. when does that happen? e.g., if suitable providers are missing. so if you get nothing back, it's not a you problem, it's a providers problem. πŸ™ˆ


πŸ’œ RETURN VALUES πŸ’œ

NULL may be returned if no memory could be allocated. 😭

Otherwise, a newly allocated string is always returned β€” but plot twist, it may have strlen == 0. so like, you got a string, bestie, but sometimes the string is empty. that's valid. that's allowed. that's the vibe. 🌈


πŸ‘‘ HISTORY πŸ‘‘

This function was added in OpenSSL 3.4. so if you're on something older, she's not there yet, and no amount of manifestation is gonna change that. ⭐


Copyright 2000-2024 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.


and that's the whole page, fr fr 🫢

this was OpenSSL 3.5.9, dated 2026-09-29, and the page is SSL_GET1_BUILTIN_SIGALGS(3ossl) β€” go free your strings, queen πŸ’…βœ¨

πŸ“¦ where this page comes from