libmongocrypt
mongocrypt-config.h
1 /*
2  * Copyright 2019-present MongoDB Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MONGOCRYPT_CONFIG_H
18 #define MONGOCRYPT_CONFIG_H
19 
20 /*
21  * MONGOCRYPT_ENABLE_CRYPTO_CNG is set from configure to determine if we are
22  * compiled with Native Crypto support on Windows
23  */
24 #define MONGOCRYPT_ENABLE_CRYPTO_CNG 0
25 
26 #if MONGOCRYPT_ENABLE_CRYPTO_CNG != 1
27 # undef MONGOCRYPT_ENABLE_CRYPTO_CNG
28 #endif
29 
30 
31 /*
32  * MONGOCRYPT_ENABLE_CRYPTO_COMMON_CRYPTO is set from configure to determine if we are
33  * compiled with Native Crypto support on Darwin
34  */
35 #define MONGOCRYPT_ENABLE_CRYPTO_COMMON_CRYPTO 0
36 
37 #if MONGOCRYPT_ENABLE_CRYPTO_COMMON_CRYPTO != 1
38 # undef MONGOCRYPT_ENABLE_CRYPTO_COMMON_CRYPTO
39 #endif
40 
41 
42 /*
43  * MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO is set from configure to determine if we are
44  * compiled with OpenSSL/LibreSSL (which both use libcrypto) support.
45  */
46 #define MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO 1
47 #define MONGOCRYPT_ENABLE_CRYPTO_OPENSSL 1
48 
49 #if MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO != 1
50 # undef MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO
51 # undef MONGOCRYPT_ENABLE_CRYPTO_OPENSSL
52 #endif
53 
54 
55 /*
56  * MONGOCRYPT_ENABLE_CRYPTO is set from configure to determine if we are
57  * compiled with any crypto support.
58  */
59 #define MONGOCRYPT_ENABLE_CRYPTO 1
60 
61 #if MONGOCRYPT_ENABLE_CRYPTO != 1
62 # undef MONGOCRYPT_ENABLE_CRYPTO
63 #endif
64 
65 
66 /*
67  * MONGOCRYPT_ENABLE_TRACE is set from configure to determine if we are
68  * compiled with tracing support.
69  */
70 #define MONGOCRYPT_ENABLE_TRACE 0
71 
72 #if MONGOCRYPT_ENABLE_TRACE != 1
73 # undef MONGOCRYPT_ENABLE_TRACE
74 #endif
75 
76 #endif /* MONGOCRYPT_CONFIG_H */