SSL_GET1_BUILTIN_SIGALGS(3SSL)

πŸ’– NAME πŸ’–

SSL_get1_builtin_sigalgs β€” bestie, this is literally the function that hands you the list of built-in signature algorithms. Like, the whole roster. ✨


πŸŽ€ SYNOPSIS πŸŽ€

#include <openssl/tls1.h>

char *SSL_get1_builtin_sigalgs(OSSL_LIB_CTX *libctx);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea πŸ«–: this function returns the colon-separated list of built-in and available TLS signature algorithms. That's it, that's the whole vibe. It gives you the sigalgs that are both baked in and actually usable right now.

The string it returns is yours though β€” like, it's a gift, but it comes with chores. You must free it yourself using OPENSSL_free(3). Don't ghost it, bestie, free your string. πŸ’…


🌸 NOTES 🌸

ngl, sometimes the string comes back empty β€” like literally strlen == 0 empty, not a single character, a whole lotta nothing. 😭

When does that happen? When none of the built-in TLS signature algorithms can be activated. Example: if the suitable providers are missing. So if you get an empty string, it's not you, it's the providers. πŸ™ˆ


⭐ RETURN VALUES ⭐

So here's the vibe check on what you get back:

  • NULL β€” you might get this if no memory could be allocated. Sad, but real. πŸ’€
  • Otherwise β€” a newly allocated string is always returned. Always! Periodt. πŸ‘‘

But heads up ⚠️: that freshly allocated string may still have strlen == 0. A brand new string that's just... empty. It's giving minimalist. So "always returns a string" and "the string might be empty" are both true at once, iykyk.


🧚 HISTORY 🧚

This icon was added in OpenSSL 3.4 β€” so if you're on something older and it's not showing up, that's why, no cap. 🌈


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>.


okay bestie that's the whole page 🫢 go forth and free your strings, and remember: <pink>OpenSSL 3.4</pink> and up only, version 4.0.3, dated 2026-09-29, brought to you by SSL_GET1_BUILTIN_SIGALGS(3SSL) β€” slay, mwah πŸ’‹βœ¨πŸ“

πŸ“¦ where this page comes from