diff options
author | WlodekM <[email protected]> | 2024-06-16 10:35:45 +0300 |
---|---|---|
committer | WlodekM <[email protected]> | 2024-06-16 10:35:45 +0300 |
commit | abef6da56913f1c55528103e60a50451a39628b1 (patch) | |
tree | b3c8092471ecbb73e568cd0d336efa0e7871ee8d /src/SSL.h |
initial commit
Diffstat (limited to 'src/SSL.h')
-rw-r--r-- | src/SSL.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/SSL.h b/src/SSL.h new file mode 100644 index 0000000..6c2983b --- /dev/null +++ b/src/SSL.h @@ -0,0 +1,16 @@ +#ifndef CC_SSL_H +#define CC_SSL_H +#include "Platform.h" +/* +Wraps a socket connection in a TLS/SSL connection +Copyright 2014-2023 ClassiCube | Licensed under BSD-3 +*/ + +void SSLBackend_Init(cc_bool verifyCerts); +cc_bool SSLBackend_DescribeError(cc_result res, cc_string* dst); + +cc_result SSL_Init(cc_socket socket, const cc_string* host, void** ctx); +cc_result SSL_Read(void* ctx, cc_uint8* data, cc_uint32 count, cc_uint32* read); +cc_result SSL_WriteAll(void* ctx, const cc_uint8* data, cc_uint32 count); +cc_result SSL_Free(void* ctx); +#endif |