Debian Codegraph @

debian/rust-vendor/openssl-src/openssl/include/crypto/dso_conf.h.in

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