GENERAL_NAME(3SSL)
π NAME π
okay bestie, gather round β this is GENERAL_NAME and GENERAL_NAME_set1_X509_NAME, the GENERAL_NAME method routines from the OpenSSL fam (that's the 3SSL manual, for the record π). she's small, she's focused, she does one thing and she eats. periodt.
β¨ SYNOPSIS β¨
#include <openssl/x509v3.h>
typedef struct GENERAL_NAME_st GENERAL_NAME;
int GENERAL_NAME_set1_X509_NAME(GENERAL_NAME **tgt, const X509_NAME *src);
like look at her. two lines of actual code and a typedef. lowkey iconic π
πΈ DESCRIPTION πΈ
so GENERAL_NAME_set1_X509_NAME() does the thing where it creates 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 β she's flexible like that π¦
not me βtgtthough?tgtmust not beNULL. no cap, that one is non-negotiable π
and if everything goes right, *tgt gets pointed at that freshly created GENERAL_NAME. new general name just dropped, she's the main character now π
π₯ RETURN VALUES π₯
1β slay, success β¨0β nope, error π
π HISTORY π
GENERAL_NAME_set1_X509_NAME() was added in OpenSSL 3.4. so if you're on something older she simply does not exist yet, sorry 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>.
and that's the whole page, we're done here π«Ά huge shoutout to OpenSSL 4.0.3, dropped 2026-09-29, GENERAL_NAME(3SSL) girlies stay winning πβ¨πΈ
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms