]>
Commit | Line | Data |
---|---|---|
40a200f9 DDO |
1 | =pod |
2 | ||
3 | =head1 NAME | |
4 | ||
5 | GENERAL_NAME, | |
6 | GENERAL_NAME_set1_X509_NAME | |
7 | - GENERAL_NAME method routines | |
8 | ||
9 | =head1 SYNOPSIS | |
10 | ||
11 | #include <openssl/x509v3.h> | |
12 | ||
13 | typedef struct GENERAL_NAME_st GENERAL_NAME; | |
14 | ||
15 | int GENERAL_NAME_set1_X509_NAME(GENERAL_NAME **tgt, const X509_NAME *src); | |
16 | ||
17 | =head1 DESCRIPTION | |
18 | ||
19 | GENERAL_NAME_set1_X509_NAME() creates a new GENERAL_NAME of type GEN_DIRNAME | |
20 | and populates it based on provided X509_NAME I<src> which can be NULL. | |
21 | I<tgt> must not be NULL. If successful, I<*tgt> will be set to point | |
22 | to the newly created GENERAL_NAME. | |
23 | ||
24 | =head1 RETURN VALUES | |
25 | ||
26 | GENERAL_NAME_set1_X509_NAME() return 1 on success, 0 on error. | |
27 | ||
28 | =head1 HISTORY | |
29 | ||
ee28152e | 30 | GENERAL_NAME_set1_X509_NAME() was added in OpenSSL 3.4. |
40a200f9 DDO |
31 | |
32 | =head1 COPYRIGHT | |
33 | ||
34 | Copyright 2007-2024 The OpenSSL Project Authors. All Rights Reserved. | |
35 | ||
36 | Licensed under the Apache License 2.0 (the "License"). You may not use | |
37 | this file except in compliance with the License. You can obtain a copy | |
38 | in the file LICENSE in the source distribution or at | |
39 | L<https://www.openssl.org/source/license.html>. | |
40 | ||
41 | =cut |