GENERAL_NAME(3ossl)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

✨ GENERAL_NAME πŸ’…

okay so this is the GENERAL_NAME page from the OpenSSL 3ossl manual set β€” yes bestie, we're in the deep magic now 🌈

✨ NAME ✨

GENERAL_NAME, GENERAL_NAME_set1_X509_NAME β€” the GENERAL_NAME method routines, aka the little functions that handle this type for you 🫢


🌸 SYNOPSIS 🌸

like, here's the whole vibe, copy it exactly please:

#include <openssl/x509v3.h>

typedef struct GENERAL_NAME_st GENERAL_NAME;

int GENERAL_NAME_set1_X509_NAME(GENERAL_NAME **tgt, const X509_NAME *src);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so GENERAL_NAME_set1_X509_NAME() β€” iconic name, i know β€” makes a brand new GENERAL_NAME of type GEN_DIRNAME ✨ and fills it in based on the X509_NAME you hand it as src.

and here's the fun part: src can be NULL, no cap. but tgt? tgt must not be NULL. literally non-negotiable πŸ™ˆ

if everything goes off without a hitch, *tgt gets pointed at the freshly created GENERAL_NAME β€” like, congrats, that's your new baby πŸŽ€


πŸ’– RETURN VALUES πŸ’–

GENERAL_NAME_set1_X509_NAME() returns 1 on success and 0 on error. that's it, that's the whole story πŸ’€


πŸŽ€ HISTORY πŸŽ€

GENERAL_NAME_set1_X509_NAME() was added in OpenSSL 3.4 β€” so she's relatively new to the group chat, be nice to her 🧚


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


and that's a wrap bestie πŸ“ this was the GENERAL_NAME(3ossl) page, straight out of OpenSSL 3.5.6, dated 2026-04-07 β€” mwah, slay, go read some more manpages πŸ’œ

πŸ“¦ where this page comes from