dso_conf.h.in 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. {- join("\n",map { "/* $_ */" } @autowarntext) -}
  2. /*
  3. * Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
  4. *
  5. * Licensed under the OpenSSL license (the "License"). You may not use
  6. * this file except in compliance with the License. You can obtain a copy
  7. * in the file LICENSE in the source distribution or at
  8. * https://www.openssl.org/source/license.html
  9. */
  10. #ifndef OSSL_CRYPTO_DSO_CONF_H
  11. # define OSSL_CRYPTO_DSO_CONF_H
  12. {- # The DSO code currently always implements all functions so that no
  13. # applications will have to worry about that from a compilation point
  14. # of view. However, the "method"s may return zero unless that platform
  15. # has support compiled in for them. Currently each method is enabled
  16. # by a define "DSO_<name>" ... we translate the "dso_scheme" config
  17. # string entry into using the following logic;
  18. my $scheme = $disabled{dso} ? undef : uc $target{dso_scheme};
  19. if (!$scheme) {
  20. $scheme = "NONE";
  21. }
  22. my @macros = ( "DSO_$scheme" );
  23. if ($scheme eq 'DLFCN') {
  24. @macros = ( "DSO_DLFCN", "HAVE_DLFCN_H" );
  25. } elsif ($scheme eq "DLFCN_NO_H") {
  26. @macros = ( "DSO_DLFCN" );
  27. }
  28. join("\n", map { "# define $_" } @macros); -}
  29. # define DSO_EXTENSION "{- $target{dso_extension} -}"
  30. #endif