VirtualBox

source: vbox/trunk/src/libs/openssl-3.0.7/include/openssl/configuration.h.in@ 97851

最後變更 在這個檔案從97851是 94320,由 vboxsync 提交於 3 年 前

libs/openssl-3.0.1: Export to OSE and fix copyright headers in Makefiles, bugref:10128

檔案大小: 2.5 KB
 
1/*
2 * {- join("\n * ", @autowarntext) -}
3 *
4 * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
5 *
6 * Licensed under the Apache License 2.0 (the "License"). You may not use
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
10 */
11
12#ifndef OPENSSL_CONFIGURATION_H
13# define OPENSSL_CONFIGURATION_H
14# pragma once
15
16# ifdef __cplusplus
17extern "C" {
18# endif
19
20# ifdef OPENSSL_ALGORITHM_DEFINES
21# error OPENSSL_ALGORITHM_DEFINES no longer supported
22# endif
23
24/*
25 * OpenSSL was configured with the following options:
26 */
27
28{- if (@{$config{openssl_sys_defines}}) {
29 foreach (@{$config{openssl_sys_defines}}) {
30 $OUT .= "# ifndef $_\n";
31 $OUT .= "# define $_ 1\n";
32 $OUT .= "# endif\n";
33 }
34 }
35 foreach (@{$config{openssl_api_defines}}) {
36 (my $macro, my $value) = $_ =~ /^(.*?)=(.*?)$/;
37 $OUT .= "# define $macro $value\n";
38 }
39 if (@{$config{openssl_feature_defines}}) {
40 foreach (@{$config{openssl_feature_defines}}) {
41 $OUT .= "# ifndef $_\n";
42 $OUT .= "# define $_\n";
43 $OUT .= "# endif\n";
44 }
45 }
46 "";
47-}
48
49/* Generate 80386 code? */
50{- $config{processor} eq "386" ? "# define" : "# undef" -} I386_ONLY
51
52/*
53 * The following are cipher-specific, but are part of the public API.
54 */
55#ifndef VBOX
56# if !defined(OPENSSL_SYS_UEFI)
57{- $config{bn_ll} ? "# define" : "# undef" -} BN_LLONG
58/* Only one for the following should be defined */
59{- $config{b64l} ? "# define" : "# undef" -} SIXTY_FOUR_BIT_LONG
60{- $config{b64} ? "# define" : "# undef" -} SIXTY_FOUR_BIT
61{- $config{b32} ? "# define" : "# undef" -} THIRTY_TWO_BIT
62# endif
63#else
64/* Only one for the following should be defined */
65#include <iprt/cdefs.h>
66# if defined(RT_ARCH_AMD64) || defined(RT_ARCH_SPARC64) || defined(RT_ARCH_ARM64)
67# ifdef _MSC_VER
68# undef SIXTY_FOUR_BIT_LONG
69# define SIXTY_FOUR_BIT
70# undef THIRTY_TWO_BIT
71# else
72# define SIXTY_FOUR_BIT_LONG
73# undef SIXTY_FOUR_BIT
74# undef THIRTY_TWO_BIT
75# endif
76# elif defined(RT_ARCH_X86) || defined(RT_ARCH_SPARC) || defined(RT_ARCH_ARM32)
77# undef SIXTY_FOUR_BIT_LONG
78# undef SIXTY_FOUR_BIT
79# define THIRTY_TWO_BIT
80# else
81# error "Unknown/missing RT_ARCH_*." * /* vbox: 64-bit (cannot safely use ARCH_BITS without including iprt/cdefs.h) */
82# endif
83#endif /* VBOX */
84
85# define RC4_INT {- $config{rc4_int} -}
86
87# ifdef __cplusplus
88}
89# endif
90
91#endif /* OPENSSL_CONFIGURATION_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette