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 /* clang-format off */
21 
27 #define MONGOCRYPT_VERSION "1.5.1"
28 
29 /*
30  * MONGOCRYPT_ENABLE_CRYPTO_CNG is set from configure to determine if we are
31  * compiled with Native Crypto support on Windows
32  */
33 #define MONGOCRYPT_ENABLE_CRYPTO_CNG 0
34 
35 #if MONGOCRYPT_ENABLE_CRYPTO_CNG != 1
36 # undef MONGOCRYPT_ENABLE_CRYPTO_CNG
37 #endif
38 
39 
40 /*
41  * MONGOCRYPT_ENABLE_CRYPTO_COMMON_CRYPTO is set from configure to determine if we are
42  * compiled with Native Crypto support on Darwin
43  */
44 #define MONGOCRYPT_ENABLE_CRYPTO_COMMON_CRYPTO 0
45 
46 #if MONGOCRYPT_ENABLE_CRYPTO_COMMON_CRYPTO != 1
47 # undef MONGOCRYPT_ENABLE_CRYPTO_COMMON_CRYPTO
48 #endif
49 
50 
51 /*
52  * MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO is set from configure to determine if we are
53  * compiled with OpenSSL/LibreSSL (which both use libcrypto) support.
54  */
55 #define MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO 1
56 #define MONGOCRYPT_ENABLE_CRYPTO_OPENSSL 1
57 
58 #if MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO != 1
59 # undef MONGOCRYPT_ENABLE_CRYPTO_LIBCRYPTO
60 # undef MONGOCRYPT_ENABLE_CRYPTO_OPENSSL
61 #endif
62 
63 
64 /*
65  * MONGOCRYPT_ENABLE_CRYPTO is set from configure to determine if we are
66  * compiled with any crypto support.
67  */
68 #define MONGOCRYPT_ENABLE_CRYPTO 1
69 
70 #if MONGOCRYPT_ENABLE_CRYPTO != 1
71 # undef MONGOCRYPT_ENABLE_CRYPTO
72 #endif
73 
74 
75 /*
76  * MONGOCRYPT_ENABLE_TRACE is set from configure to determine if we are
77  * compiled with tracing support.
78  */
79 #define MONGOCRYPT_ENABLE_TRACE 0
80 
81 #if MONGOCRYPT_ENABLE_TRACE != 1
82 # undef MONGOCRYPT_ENABLE_TRACE
83 #endif
84 
85 /* clang-format on */
86 
87 #endif /* MONGOCRYPT_CONFIG_H */