dso_conf.h.in 1.3 KB
Newer Older
1
{- join("\n",map { "/* $_ */" } @autowarntext) -}
R
Rich Salz 已提交
2
/*
R
Richard Levitte 已提交
3
 * Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
4
 *
R
Rich Salz 已提交
5 6 7 8
 * Licensed under the OpenSSL license (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * https://www.openssl.org/source/license.html
9 10
 */

11 12
#ifndef OSSL_CRYPTO_DSO_CONF_H
# define OSSL_CRYPTO_DSO_CONF_H
13 14 15 16 17 18
{-  # The DSO code currently always implements all functions so that no
    # applications will have to worry about that from a compilation point
    # of view. However, the "method"s may return zero unless that platform
    # has support compiled in for them. Currently each method is enabled
    # by a define "DSO_<name>" ... we translate the "dso_scheme" config
    # string entry into using the following logic;
19
    my $scheme = $disabled{dso} ? undef : uc $target{dso_scheme};
20 21 22
    if (!$scheme) {
        $scheme = "NONE";
    }
23 24 25 26 27 28 29
    my @macros = ( "DSO_$scheme" );
    if ($scheme eq 'DLFCN') {
        @macros = ( "DSO_DLFCN", "HAVE_DLFCN_H" );
    } elsif ($scheme eq "DLFCN_NO_H") {
        @macros = ( "DSO_DLFCN" );
    }
    join("\n", map { "# define $_" } @macros); -}
30 31
# define DSO_EXTENSION "{- $target{dso_extension} -}"
#endif