GENERAL_NAME(3ossl)
β¨ 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 π
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
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms