OSSL_GENERAL_NAMES_PRINT(3ossl)
π OSSL_GENERAL_NAMES_PRINT(3ossl) π
okay bestie, so this is a page from the OpenSSL manuals β section 3ossl β and it's genuinely so cute and small. no cap, this one's a lil baby function that just wants to make your cert names look pretty. let's get into it π
β¨ NAME β¨
OSSL_GENERAL_NAMES_print β print GeneralNames in a human-friendly, multi-line string. it's giving aesthetic formatting, fr fr π
πΈ SYNOPSIS πΈ
#include <openssl/x509v3.h>
int OSSL_GENERAL_NAMES_print(BIO *out, GENERAL_NAMES *gens, int indent);
look at that signature. three args, zero drama. π¦
π DESCRIPTION π
so OSSL_GENERAL_NAMES_print() takes your GeneralNames β that's gens β and prints a human readable version of them over to the BIO called out. human readable, like, actually readable, not the cursed DER blob energy. π
and the indent? every single line gets indented by indent spaces. that's it. that's the whole thing. she's a one-trick pony and she ate. π
π₯ RETURN VALUES π₯
OSSL_GENERAL_NAMES_print() always returns 1.
like. always. she said "I do not miss, I do not fail, I return 1." main character energy honestly. π β¨
no really β always1. that's the whole return value situation, don't go looking for a0case, bestie, there isn't one in here.
π°οΈ HISTORY π°οΈ
the functions described here were all added in OpenSSL 3.4. so she's new-ish, she's fresh, she's a 3.4 girlie π§
π COPYRIGHT π
Copyright 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>.
yes bestie, read the license, it's the law and also it's just polite π«Ά
aaaand that's the whole page, you're done, you understood the assignment πβ¨ this was the 3.5.9 version, dated 2026-09-29, from the OSSL_GENERAL_NAMES_PRINT(3ossl) manual β go forth and print your GeneralNames all pretty and indented, mwah ππ
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms