GENERAL_NAME(3ossl)
π GENERAL_NAME (3ossl) π
okay so bestie, welcome to the GENERAL_NAME glow-up page β¨ this is the OpenSSL manpage for GENERAL_NAME, GENERAL_NAME_set1_X509_NAME β aka the GENERAL_NAME method routines π it's short, it's sweet, and it's literally about making one (1) shiny new name out of an X509_NAME. slay.
β¨ SYNOPSIS β¨
like, the whole vibe in code form π«Ά
#include <openssl/x509v3.h>
typedef struct GENERAL_NAME_st GENERAL_NAME;
int GENERAL_NAME_set1_X509_NAME(GENERAL_NAME **tgt, const X509_NAME *src);
so yes, GENERAL_NAME is just a typedef for struct GENERAL_NAME_st β the classic "the real struct is shy" situation π iconic behavior honestly.
πΈ DESCRIPTION πΈ
okay so here's the tea π: GENERAL_NAME_set1_X509_NAME() makes a brand new GENERAL_NAME of type GEN_DIRNAME, and then fills it up based on the X509_NAME you hand it as src π
and yes, src is allowed to be NULL β no cap, that's fine, it's literally listed as valid.
tgt, though? tgt must not be NULL. π¨ that one's non-negotiable, bestie. don't do it.
if everything goes off without a hitch, *tgt gets set to point at the newly created GENERAL_NAME β main character pointer energy πβ¨
π¦ RETURN VALUES π¦
1β success, we ate π π₯0β error, it's giving ππ
that's it. that's the whole vibe check. GENERAL_NAME_set1_X509_NAME() returns 1 on success and 0 on error π
β HISTORY β
GENERAL_NAME_set1_X509_NAME() was added in OpenSSL 3.4 β so it's new-ish, freshly dropped, lowkey a little baby πΌβ¨ if you're on something older, it's simply not gonna be there, iykyk.
π COPYRIGHT π
Copyright 2007-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>.
fr fr read the license before you go wild with it, bestie π«Ά it's right there in LICENSE or at that link, no excuses π
and that's the whole page πΈ mwah π β this was OpenSSL 3.5.0, dated 2026-09-25, signing off from your favorite GENERAL_NAME(3ossl) bestie π§π periodt.
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms