]>
Commit | Line | Data |
---|---|---|
e987f9f2 | 1 | {- join("\n",map { "/* $_ */" } @autowarntext) -} |
e0a65194 | 2 | /* |
a28d06f3 | 3 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. |
e987f9f2 | 4 | * |
48f4ad77 | 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
e0a65194 RS |
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 | |
e987f9f2 RL |
9 | */ |
10 | ||
ae4186b0 DMSP |
11 | #ifndef OSSL_CRYPTO_DSO_CONF_H |
12 | # define OSSL_CRYPTO_DSO_CONF_H | |
80ce21fe F |
13 | # pragma once |
14 | ||
c45bf277 RL |
15 | {- # The DSO code currently always implements all functions so that no |
16 | # applications will have to worry about that from a compilation point | |
17 | # of view. However, the "method"s may return zero unless that platform | |
18 | # has support compiled in for them. Currently each method is enabled | |
19 | # by a define "DSO_<name>" ... we translate the "dso_scheme" config | |
20 | # string entry into using the following logic; | |
3b2f8c77 | 21 | my $scheme = $disabled{dso} ? undef : uc $target{dso_scheme}; |
31b6ed76 RL |
22 | if (!$scheme) { |
23 | $scheme = "NONE"; | |
24 | } | |
c45bf277 RL |
25 | my @macros = ( "DSO_$scheme" ); |
26 | if ($scheme eq 'DLFCN') { | |
27 | @macros = ( "DSO_DLFCN", "HAVE_DLFCN_H" ); | |
28 | } elsif ($scheme eq "DLFCN_NO_H") { | |
29 | @macros = ( "DSO_DLFCN" ); | |
30 | } | |
31 | join("\n", map { "# define $_" } @macros); -} | |
9dd4ed28 | 32 | # define DSO_EXTENSION "{- platform->dsoext() -}" |
e987f9f2 | 33 | #endif |