GENERAL_NAME(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’… 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 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