Constify X509_PUBKEY_get(), X509_PUBKEY_get0(), and X509_PUBKEY_get0_param()
[openssl.git] / include / crypto / x509v3.h
1 /*
2  * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9 #ifndef OSSL_CRYPTO_X509V3_H
10 # define OSSL_CRYPTO_X509V3_H
11
12 #define EXT_UTF8STRING(nid) { nid, 0, ASN1_ITEM_ref(ASN1_UTF8STRING), \
13                         0,0,0,0, \
14                         (X509V3_EXT_I2S)i2s_ASN1_UTF8STRING, \
15                         (X509V3_EXT_S2I)s2i_ASN1_UTF8STRING, \
16                         0,0,0,0, \
17                         NULL}
18
19 char *i2s_ASN1_UTF8STRING(X509V3_EXT_METHOD *method, ASN1_UTF8STRING *utf8);
20 ASN1_UTF8STRING *s2i_ASN1_UTF8STRING(X509V3_EXT_METHOD *method,
21                                    X509V3_CTX *ctx, const char *str);
22
23 #endif