2 * {- join("\n * ", @autowarntext) -}
9 #ifdef OPENSSL_ALGORITHM_DEFINES
10 # error OPENSSL_ALGORITHM_DEFINES no longer supported
14 * OpenSSL was configured with the following options:
17 {- if (@{$config{openssl_sys_defines}}) {
18 foreach (@{$config{openssl_sys_defines}}) {
19 $OUT .= "#ifndef $_\n";
20 $OUT .= "# define $_ 1\n";
24 if (@{$config{openssl_experimental_defines}}) {
25 foreach (@{$config{openssl_experimental_defines}}) {
26 (my $ex = $_) =~ s/_NO_/_EXPERIMENTAL_/;
27 $OUT .= "# ifndef $ex\n";
28 $OUT .= "# ifndef $_\n";
29 $OUT .= "# define $_\n";
34 foreach (@{$config{openssl_api_defines}}) {
35 (my $macro, my $value) = $_ =~ /^(.*?)=(.*?)$/;
36 $OUT .= "# define OPENSSL_MIN_API $value\n";
38 if (@{$config{openssl_algorithm_defines}}) {
39 foreach (@{$config{openssl_algorithm_defines}}) {
40 $OUT .= "# ifndef $_\n";
41 $OUT .= "# define $_\n";
47 #ifndef OPENSSL_DOING_MAKEDEPEND
50 #endif /* OPENSSL_DOING_MAKEDEPEND */
57 if (@{$config{openssl_thread_defines}}) {
58 foreach (@{$config{openssl_thread_defines}}) {
59 $OUT .= "#ifndef $_\n";
60 $OUT .= "# define $_\n";
64 if (@{$config{openssl_other_defines}}) {
65 foreach (@{$config{openssl_other_defines}}) {
66 $OUT .= "#ifndef $_\n";
67 $OUT .= "# define $_\n";
75 * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the
76 * declarations of functions deprecated in or before <version>. Otherwise, they
77 * still won't see them if the library has been built to disable deprecated
80 #if defined(OPENSSL_NO_DEPRECATED)
81 # define DECLARE_DEPRECATED(f)
82 #elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)
83 # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
85 # define DECLARE_DEPRECATED(f) f;
88 #ifndef OPENSSL_MIN_API
89 # define OPENSSL_MIN_API 0
92 #if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API
93 # undef OPENSSL_API_COMPAT
94 # define OPENSSL_API_COMPAT OPENSSL_MIN_API
97 #if OPENSSL_API_COMPAT < 0x10100000L
98 # define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
100 # define DEPRECATEDIN_1_1_0(f)
103 #if OPENSSL_API_COMPAT < 0x10000000L
104 # define DEPRECATEDIN_1_0_0(f) DECLARE_DEPRECATED(f)
106 # define DEPRECATEDIN_1_0_0(f)
109 #if OPENSSL_API_COMPAT < 0x00908000L
110 # define DEPRECATEDIN_0_9_8(f) DECLARE_DEPRECATED(f)
112 # define DEPRECATEDIN_0_9_8(f)
115 {- $target{cpuid_obj} ne "mem_clr.o" ? "#define OPENSSL_CPUID_OBJ" : "" -}
117 /* Generate 80386 code? */
118 {- $config{processor} eq "386" ? "#define" : "#undef" -} I386_ONLY
120 #if !defined(VMS) && !defined(__VMS) /* VMS uses logical names instead */
121 # if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
122 # define ENGINESDIR {- quotify1($config{enginesdir}) -}
123 # define OPENSSLDIR {- quotify1($config{openssldir}) -}
127 #undef OPENSSL_UNISTD
128 #define OPENSSL_UNISTD {- $target{unistd} -}
130 {- $config{export_var_as_fn} ? "#define" : "#undef" -} OPENSSL_EXPORT_VAR_AS_FUNCTION
133 * The following are cipher-specific, but are part of the public API.
135 #if !defined(OPENSSL_SYS_UEFI)
136 {- $config{bn_ll} ? "# define" : "# undef" -} BN_LLONG
137 /* Only one for the following should be defined */
138 {- $config{b64l} ? "# define" : "# undef" -} SIXTY_FOUR_BIT_LONG
139 {- $config{b64} ? "# define" : "# undef" -} SIXTY_FOUR_BIT
140 {- $config{b32} ? "# define" : "# undef" -} THIRTY_TWO_BIT
143 #define RC4_INT {- $config{rc4_int} -}