---
name: "GENERAL_NAME"
section: "3ssl"
platform: "linux"
package: "openssl"
version: "3.6.5-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/GENERAL_NAME"
---

# GENERAL\_NAME(3ssl)

GENERAL\_NAME method routines

## NAME

GENERAL\_NAME, GENERAL\_NAME\_set1\_X509\_NAME - GENERAL\_NAME method routines

## 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);
```

## DESCRIPTION

**GENERAL\_NAME\_set1\_X509\_NAME()** creates a new GENERAL\_NAME of type GEN\_DIRNAME and populates it based on provided X509\_NAME *src* which can be NULL. *tgt* must not be NULL. If successful, *\*tgt* will be set to point to the newly created GENERAL\_NAME.

## RETURN VALUES

**GENERAL\_NAME\_set1\_X509\_NAME()** return 1 on success, 0 on error.

## HISTORY

**GENERAL\_NAME\_set1\_X509\_NAME()** was added in OpenSSL 3.4.

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