2
0

provider_predefined.c 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright 2019-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. #include <openssl/core.h>
  10. #include "provider_local.h"
  11. OSSL_provider_init_fn ossl_default_provider_init;
  12. OSSL_provider_init_fn ossl_base_provider_init;
  13. OSSL_provider_init_fn ossl_null_provider_init;
  14. OSSL_provider_init_fn ossl_fips_intern_provider_init;
  15. #ifdef STATIC_LEGACY
  16. OSSL_provider_init_fn ossl_legacy_provider_init;
  17. #endif
  18. const OSSL_PROVIDER_INFO ossl_predefined_providers[] = {
  19. #ifdef FIPS_MODULE
  20. { "fips", NULL, ossl_fips_intern_provider_init, NULL, 1 },
  21. #else
  22. { "default", NULL, ossl_default_provider_init, NULL, 1 },
  23. # ifdef STATIC_LEGACY
  24. { "legacy", NULL, ossl_legacy_provider_init, NULL, 0 },
  25. # endif
  26. { "base", NULL, ossl_base_provider_init, NULL, 0 },
  27. { "null", NULL, ossl_null_provider_init, NULL, 0 },
  28. #endif
  29. { NULL, NULL, NULL, NULL, 0 }
  30. };