1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19 
20 /*
21  * XSEC
22  *
23  * Configuration file for Windows platform
24  *
25  * Needs to be modified by hand
26  *
27  * Author(s): Berin Lautenbach
28  *
29  * $Id: XSECW32Config.hpp 1830714 2018-05-02 01:10:44Z scantor $
30  *
31  */
32 
33 
34 /*
35  * The following defines whether Xalan integration is required.
36  *
37  * Xalan is used for XSLT and complex XPath processing.
38  * Activate this #define if Xalan is not required (or desired)
39  */
40 
41 // #define XSEC_HAVE_XALAN 1
42 
43 
44 /*
45  * Define presence of cryptographic providers.
46  *
47  * WARNING: Neither WinCAPI nor NSS are officially supported by the sole remanining
48  * maintainer of this library. Use at your own risk, or contact the project if you're
49  * interested in assisting with maintenance and support of that code.
50  */
51 
52 // #define XSEC_HAVE_OPENSSL 1
53 // #define XSEC_HAVE_WINCAPI 1
54 // #define XSEC_HAVE_NSS 1
55 
56 /*
57  * Define if XKMS support is enabled.
58  */
59 // #define XSEC_XKMS_ENABLED 1
60 
61 /*
62  * Some settings for OpenSSL if we have it
63  *
64  */
65 
66 #if defined (XSEC_HAVE_OPENSSL)
67 
68 #	include <openssl/opensslv.h>
69 #	if (OPENSSL_VERSION_NUMBER >= 0x00907000)
70 #		define XSEC_OPENSSL_CONST_BUFFERS
71 #		define XSEC_OPENSSL_HAVE_AES
72 #       define XSEC_OPENSSL_HAVE_EC
73 #		define XSEC_OPENSSL_CANSET_PADDING
74 #		define XSEC_OPENSSL_HAVE_CRYPTO_CLEANUP_ALL_EX_DATA
75 #	endif
76 #	if (OPENSSL_VERSION_NUMBER >= 0x00908000)
77 #		define XSEC_OPENSSL_D2IX509_CONST_BUFFER
78 #       define XSEC_OPENSSL_HAVE_SHA2
79 #       define XSEC_OPENSSL_HAVE_MGF1
80 #       define XSEC_OPENSSL_HAVE_EVP_PKEY_ID
81 #	endif
82 #	if (OPENSSL_VERSION_NUMBER >= 0x10001000)
83 #		define XSEC_OPENSSL_HAVE_GCM
84 #	endif
85 
86 #endif
87 
88 /*
89  * Macros used to determine what header files exist on this
90  * system
91  */
92 
93 /* Posix unistd.h */
94 /* #define HAVE_UNISTD_H */
95 
96 /* Windows direct.h */
97 #define HAVE_DIRECT_H 1
98 
99 /* Define to 1 if getcwd(NULL, 0) works. */
100 #define XSEC_HAVE_GETCWD_DYN 1
101 
102 #include <xsec/framework/XSECVersion.hpp>
103