TLS transport: OpenSSL-based encrypted TCP #13

Merged
TapTap merged 8 commits from tls-transport into main 2026-07-18 17:54:26 +02:00
2 changed files with 4 additions and 0 deletions
Showing only changes of commit 8b6550f8c6 - Show all commits
+2
View File
@@ -5,6 +5,8 @@
#include <stdbool.h>
#include <stddef.h>
typedef struct ssl_st SSL;
typedef int Status;
enum NET_STATUS { STATUS_OK, STATUS_ERROR, STATUS_FINISHED, STATUS_NEXT, STATUS_CHUNK, STATUS_MANIFEST, STATUS_CHECK };
+2
View File
@@ -1,5 +1,6 @@
#include "transport_tcp.h"
#include "log.h"
#include "protocol.h"
#include <arpa/inet.h>
#include <openssl/ssl.h>
#include <signal.h>
@@ -152,6 +153,7 @@ void client_disconnect(Client *client) {
SSL_shutdown(client->ssl);
SSL_free(client->ssl);
client->ssl = NULL;
io_set_ssl(NULL);
}
close(client->file_descriptor);
if (client->ssh_child_pid > 0) {