GENERAL_NAME(3ossl)
π GENERAL_NAME(3ossl) β the OpenSSL girlies' guide π
okay so bestie, this is a page from the OpenSSL manual β it lives under the name GENERAL_NAME(3ossl) β and it's all about the GENERAL_NAME method routines. it's short, it's sweet, it's giving "one function that does one thing and does it well" β¨
πΈ NAME πΈ
GENERAL_NAME, GENERAL_NAME_set1_X509_NAME β the GENERAL_NAME method routines, aka the lil' helpers that handle your GENERAL_NAME business π
π SYNOPSIS π
like, here's literally everything you need to include and call:
#include <openssl/x509v3.h>
typedef struct GENERAL_NAME_st GENERAL_NAME;
int GENERAL_NAME_set1_X509_NAME(GENERAL_NAME **tgt, const X509_NAME *src);
copy that exactly, don't freestyle the signature, i'm watching π
π¦ DESCRIPTION π¦
so GENERAL_NAME_set1_X509_NAME() does the thing where it creates a brand new GENERAL_NAME of type GEN_DIRNAME and populates it based on the X509_NAME you hand it as src β and yes, src can be NULL, that's allowed, no judgment.
one thing though, and this is important: tgt must not be NULL. like, hard no. don't do that.
and if it all goes well? if successful, *tgt will be set to point to the newly created GENERAL_NAME. so cute. so tidy. main character energy fr fr π«Ά
β¨ RETURN VALUES β¨
1β slay, success, we ate π0β error, it's giving π
π HISTORY π
GENERAL_NAME_set1_X509_NAME() was added in OpenSSL 3.4. so if you're on something older, that's a you problem, bestie π
π 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>.
not me reminding you to actually read the license. iykyk. π
and that's the whole vibe check, bestie π β this page is from OpenSSL 3.5.9, dated 2026-09-29. go forth and set your GENERAL_NAMEs. 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