check_chain_extensions(): Add check that Basic Constraints of CA cert are marked...
[openssl.git] / include / openssl / core_object.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
10 #ifndef OPENSSL_CORE_OBJECT_H
11 # define OPENSSL_CORE_OBJECT_H
12
13 # ifdef __cplusplus
14 extern "C" {
15 # endif
16
17 /*-
18  * Known object types
19  *
20  * These numbers are used as values for the OSSL_PARAM parameter
21  * OSSL_OBJECT_PARAM_TYPE.
22  *
23  * For most of these types, there's a corresponding libcrypto object type.
24  * The corresponding type is indicated with a comment after the number.
25  */
26 # define OSSL_OBJECT_UNKNOWN            0
27 # define OSSL_OBJECT_NAME               1 /* char * */
28 # define OSSL_OBJECT_PKEY               2 /* EVP_PKEY * */
29 # define OSSL_OBJECT_CERT               3 /* X509 * */
30 # define OSSL_OBJECT_CRL                4 /* X509_CRL * */
31
32 /*
33  * The rest of the associated OSSL_PARAM elements is described in core_names.h
34  */
35
36 # ifdef __cplusplus
37 }
38 # endif
39
40 #endif