1 /**
2  * WinPR: Windows Portable Runtime
3  * OpenSSL Library Initialization
4  *
5  * Copyright 2014 Thincast Technologies GmbH
6  * Copyright 2014 Norbert Federa <norbert.federa@thincast.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *     http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef WINPR_SSL_H
22 #define WINPR_SSL_H
23 
24 #include <winpr/wtypes.h>
25 
26 #define WINPR_SSL_INIT_DEFAULT 0x00
27 #define WINPR_SSL_INIT_ALREADY_INITIALIZED 0x01
28 #define WINPR_SSL_INIT_ENABLE_LOCKING 0x2
29 #define WINPR_SSL_INIT_ENABLE_FIPS 0x4
30 
31 #define WINPR_SSL_CLEANUP_GLOBAL 0x01
32 #define WINPR_SSL_CLEANUP_THREAD 0x02
33 
34 #ifdef __cplusplus
35 extern "C"
36 {
37 #endif
38 
39 	WINPR_API BOOL winpr_InitializeSSL(DWORD flags);
40 	WINPR_API BOOL winpr_CleanupSSL(DWORD flags);
41 
42 	WINPR_API BOOL winpr_FIPSMode(void);
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* WINPR_SSL_H */
49