libtls: Add control flags and replace GENERIC_NULLOK purpose with one

This commit is contained in:
Tobias Brunner
2021-02-18 15:10:29 +01:00
parent 602947d48a
commit 11a4687930
13 changed files with 57 additions and 36 deletions
+2 -2
View File
@@ -131,7 +131,7 @@ static int run_client(host_t *host, identification_t *server,
return 1;
}
tls = tls_socket_create(FALSE, server, client, fd, cache, min_version,
max_version, TRUE);
max_version, TLS_FLAG_ENCRYPTION_OPTIONAL);
if (!tls)
{
close(fd);
@@ -190,7 +190,7 @@ static int serve(host_t *host, identification_t *server, identification_t *clien
DBG1(DBG_TLS, "%#H connected", host);
tls = tls_socket_create(TRUE, server, client, cfd, cache, min_version,
max_version, TRUE);
max_version, TLS_FLAG_ENCRYPTION_OPTIONAL);
if (!tls)
{
close(fd);