FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
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
30typedef struct S_SCHANNEL_OPENSSL SCHANNEL_OPENSSL;
31
32int schannel_openssl_client_init(SCHANNEL_OPENSSL* context);
33int schannel_openssl_server_init(SCHANNEL_OPENSSL* context);
34
35SECURITY_STATUS schannel_openssl_client_process_tokens(SCHANNEL_OPENSSL* context,
36 PSecBufferDesc pInput,
37 PSecBufferDesc pOutput);
38SECURITY_STATUS schannel_openssl_server_process_tokens(SCHANNEL_OPENSSL* context,
39 PSecBufferDesc pInput,
40 PSecBufferDesc pOutput);
41
42SECURITY_STATUS schannel_openssl_encrypt_message(SCHANNEL_OPENSSL* context,
43 PSecBufferDesc pMessage);
44SECURITY_STATUS schannel_openssl_decrypt_message(SCHANNEL_OPENSSL* context,
45 PSecBufferDesc pMessage);
46
47void schannel_openssl_free(SCHANNEL_OPENSSL* context);
48
49WINPR_ATTR_MALLOC(schannel_openssl_free, 1)
50SCHANNEL_OPENSSL* schannel_openssl_new(void);
51
52#endif /* WINPR_SSPI_SCHANNEL_OPENSSL_H */