23b1d6660c
CI / lint (push) Failing after 16s
CI / build-and-test (push) Has been skipped
CI / sanitizers (address) (push) Has been skipped
CI / sanitizers (thread) (push) Has been skipped
CI / lint (pull_request) Failing after 44s
CI / build-and-test (pull_request) Has been skipped
CI / sanitizers (address) (pull_request) Has been skipped
CI / sanitizers (thread) (pull_request) Has been skipped
- Reformat all C/H files to match .clang-format (LLVM style) - Fix 26 cppcheck const-correctness warnings (constParameterPointer, constVariablePointer, constVariable) - Update function declarations in headers to match const parameters
16 lines
495 B
C
16 lines
495 B
C
#ifndef TRANSPORT_TLS_H
|
|
#define TRANSPORT_TLS_H
|
|
|
|
#include "transport_tcp.h"
|
|
#include <stdbool.h>
|
|
|
|
bool tls_global_init(void);
|
|
|
|
bool server_create_tls(Server* server, const char* cert_path, const char* key_path,
|
|
const char* ca_path);
|
|
bool server_listen_tls(Server* server, void (*handler)(int file_descriptor));
|
|
bool client_connect_tls(Client* client, char* host, int port, const char* cert_path,
|
|
const char* key_path, const char* ca_path);
|
|
|
|
#endif
|