Add EVP_MAC_provider()
[openssl.git] / include / openssl / opensslconf.h.in
1 /*
2  * {- join("\n * ", @autowarntext) -}
3  *
4  * Copyright 2016-2018 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 #include <openssl/opensslv.h>
13
14 #ifndef HEADER_OPENSSLCONF_H
15 # define HEADER_OPENSSLCONF_H
16
17 # ifdef  __cplusplus
18 extern "C" {
19 # endif
20
21 # ifdef OPENSSL_ALGORITHM_DEFINES
22 #  error OPENSSL_ALGORITHM_DEFINES no longer supported
23 # endif
24
25 /*
26  * OpenSSL was configured with the following options:
27  */
28
29 {- if (@{$config{openssl_sys_defines}}) {
30       foreach (@{$config{openssl_sys_defines}}) {
31         $OUT .= "# ifndef $_\n";
32         $OUT .= "#  define $_ 1\n";
33         $OUT .= "# endif\n";
34       }
35     }
36     foreach (@{$config{openssl_api_defines}}) {
37         (my $macro, my $value) = $_ =~ /^(.*?)=(.*?)$/;
38         $OUT .= "# define $macro $value\n";
39     }
40     if (@{$config{openssl_feature_defines}}) {
41       foreach (@{$config{openssl_feature_defines}}) {
42         $OUT .= "# ifndef $_\n";
43         $OUT .= "#  define $_\n";
44         $OUT .= "# endif\n";
45       }
46     }
47     "";
48 -}
49
50 /* Generate 80386 code? */
51 {- $config{processor} eq "386" ? "# define" : "# undef" -} I386_ONLY
52
53 /*
54  * The following are cipher-specific, but are part of the public API.
55  */
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
64 # define RC4_INT {- $config{rc4_int} -}
65
66 #include <openssl/macros.h>
67
68 # ifdef  __cplusplus
69 }
70 # endif
71 #endif                          /* HEADER_OPENSSLCONF_H */