provider_predefined.c 856 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright 2019 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. #include <openssl/core.h>
  10. #include "provider_local.h"
  11. OSSL_provider_init_fn ossl_default_provider_init;
  12. OSSL_provider_init_fn fips_intern_provider_init;
  13. #ifdef STATIC_LEGACY
  14. OSSL_provider_init_fn ossl_legacy_provider_init;
  15. #endif
  16. const struct predefined_providers_st predefined_providers[] = {
  17. #ifdef FIPS_MODE
  18. { "fips", fips_intern_provider_init, 1 },
  19. #else
  20. { "default", ossl_default_provider_init, 1 },
  21. # ifdef STATIC_LEGACY
  22. { "legacy", ossl_legacy_provider_init, 0 },
  23. # endif
  24. #endif
  25. { NULL, NULL, 0 }
  26. };