p_minimal.c 765 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright 2019-2023 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. * This is the most minimal provider imaginable. It can be loaded, and does
  11. * absolutely nothing else.
  12. */
  13. #include <openssl/core.h>
  14. OSSL_provider_init_fn OSSL_provider_init; /* Check the function signature */
  15. int OSSL_provider_init(const OSSL_CORE_HANDLE *handle,
  16. const OSSL_DISPATCH *oin,
  17. const OSSL_DISPATCH **out,
  18. void **provctx)
  19. {
  20. return 1;
  21. }