FreeRDP
schannel_openssl.h
1 
20 #ifndef WINPR_SSPI_SCHANNEL_OPENSSL_H
21 #define WINPR_SSPI_SCHANNEL_OPENSSL_H
22 
23 #include <winpr/sspi.h>
24 
25 #include "../sspi.h"
26 
27 /* OpenSSL includes windows.h */
28 #include <winpr/windows.h>
29 
30 typedef struct S_SCHANNEL_OPENSSL SCHANNEL_OPENSSL;
31 
32 int schannel_openssl_client_init(SCHANNEL_OPENSSL* context);
33 int schannel_openssl_server_init(SCHANNEL_OPENSSL* context);
34 
35 SECURITY_STATUS schannel_openssl_client_process_tokens(SCHANNEL_OPENSSL* context,
36  PSecBufferDesc pInput,
37  PSecBufferDesc pOutput);
38 SECURITY_STATUS schannel_openssl_server_process_tokens(SCHANNEL_OPENSSL* context,
39  PSecBufferDesc pInput,
40  PSecBufferDesc pOutput);
41 
42 SECURITY_STATUS schannel_openssl_encrypt_message(SCHANNEL_OPENSSL* context,
43  PSecBufferDesc pMessage);
44 SECURITY_STATUS schannel_openssl_decrypt_message(SCHANNEL_OPENSSL* context,
45  PSecBufferDesc pMessage);
46 
47 void schannel_openssl_free(SCHANNEL_OPENSSL* context);
48 
49 WINPR_ATTR_MALLOC(schannel_openssl_free, 1)
50 SCHANNEL_OPENSSL* schannel_openssl_new(void);
51 
52 #endif /* WINPR_SSPI_SCHANNEL_OPENSSL_H */