2 * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
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
10 #ifndef OPENSSL_CORE_OBJECT_H
11 # define OPENSSL_CORE_OBJECT_H
20 * These numbers are used as values for the OSSL_PARAM parameter
21 * OSSL_OBJECT_PARAM_TYPE.
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.
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 * */
33 * The rest of the associated OSSL_PARAM elements is described in core_names.h