]>
Commit | Line | Data |
---|---|---|
cde052f5 RS |
1 | /* |
2 | * {- join("\n * ", @autowarntext) -} | |
e0a65194 | 3 | * |
2ad2281a | 4 | * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. |
e0a65194 | 5 | * |
48f4ad77 | 6 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
e0a65194 RS |
7 | * this file except in compliance with the License. You can obtain a copy |
8 | * in the file LICENSE in the source distribution or at | |
9 | * https://www.openssl.org/source/license.html | |
cde052f5 | 10 | */ |
dc193c9c | 11 | |
ae4186b0 DMSP |
12 | #ifndef OPENSSL_OPENSSLCONF_H |
13 | # define OPENSSL_OPENSSLCONF_H | |
95b7926b MC |
14 | |
15 | # ifdef __cplusplus | |
dc193c9c | 16 | extern "C" { |
95b7926b | 17 | # endif |
cde052f5 | 18 | |
95b7926b MC |
19 | # ifdef OPENSSL_ALGORITHM_DEFINES |
20 | # error OPENSSL_ALGORITHM_DEFINES no longer supported | |
21 | # endif | |
cde052f5 RS |
22 | |
23 | /* | |
24 | * OpenSSL was configured with the following options: | |
25 | */ | |
26 | ||
27 | {- if (@{$config{openssl_sys_defines}}) { | |
dc193c9c | 28 | foreach (@{$config{openssl_sys_defines}}) { |
95b7926b MC |
29 | $OUT .= "# ifndef $_\n"; |
30 | $OUT .= "# define $_ 1\n"; | |
31 | $OUT .= "# endif\n"; | |
dc193c9c RS |
32 | } |
33 | } | |
dc193c9c RS |
34 | foreach (@{$config{openssl_api_defines}}) { |
35 | (my $macro, my $value) = $_ =~ /^(.*?)=(.*?)$/; | |
95b7926b | 36 | $OUT .= "# define $macro $value\n"; |
dc193c9c | 37 | } |
e0bf7c01 RL |
38 | if (@{$config{openssl_feature_defines}}) { |
39 | foreach (@{$config{openssl_feature_defines}}) { | |
95b7926b MC |
40 | $OUT .= "# ifndef $_\n"; |
41 | $OUT .= "# define $_\n"; | |
42 | $OUT .= "# endif\n"; | |
dc193c9c RS |
43 | } |
44 | } | |
45 | ""; | |
46 | -} | |
47 | ||
dc193c9c | 48 | /* Generate 80386 code? */ |
95b7926b | 49 | {- $config{processor} eq "386" ? "# define" : "# undef" -} I386_ONLY |
dc193c9c | 50 | |
dc193c9c RS |
51 | /* |
52 | * The following are cipher-specific, but are part of the public API. | |
53 | */ | |
95b7926b MC |
54 | # if !defined(OPENSSL_SYS_UEFI) |
55 | {- $config{bn_ll} ? "# define" : "# undef" -} BN_LLONG | |
dc193c9c | 56 | /* Only one for the following should be defined */ |
95b7926b MC |
57 | {- $config{b64l} ? "# define" : "# undef" -} SIXTY_FOUR_BIT_LONG |
58 | {- $config{b64} ? "# define" : "# undef" -} SIXTY_FOUR_BIT | |
59 | {- $config{b32} ? "# define" : "# undef" -} THIRTY_TWO_BIT | |
60 | # endif | |
dc193c9c | 61 | |
95b7926b | 62 | # define RC4_INT {- $config{rc4_int} -} |
dc193c9c | 63 | |
95b7926b | 64 | # ifdef __cplusplus |
dc193c9c | 65 | } |
95b7926b | 66 | # endif |
ea8e1fe5 DMSP |
67 | |
68 | # include <openssl/macros.h> | |
69 | # if !OPENSSL_API_3 | |
70 | # define HEADER_FILE_H /* deprecated in version 3.0 */ | |
71 | # endif | |
72 | ||
ae4186b0 | 73 | #endif /* OPENSSL_OPENSSLCONF_H */ |