core_object.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright 2020-2021 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 OPENSSL_CORE_OBJECT_H
  10. # define OPENSSL_CORE_OBJECT_H
  11. # pragma once
  12. # ifdef __cplusplus
  13. extern "C" {
  14. # endif
  15. /*-
  16. * Known object types
  17. *
  18. * These numbers are used as values for the OSSL_PARAM parameter
  19. * OSSL_OBJECT_PARAM_TYPE.
  20. *
  21. * For most of these types, there's a corresponding libcrypto object type.
  22. * The corresponding type is indicated with a comment after the number.
  23. */
  24. # define OSSL_OBJECT_UNKNOWN 0
  25. # define OSSL_OBJECT_NAME 1 /* char * */
  26. # define OSSL_OBJECT_PKEY 2 /* EVP_PKEY * */
  27. # define OSSL_OBJECT_CERT 3 /* X509 * */
  28. # define OSSL_OBJECT_CRL 4 /* X509_CRL * */
  29. /*
  30. * The rest of the associated OSSL_PARAM elements is described in core_names.h
  31. */
  32. # ifdef __cplusplus
  33. }
  34. # endif
  35. #endif