Skip to content

Commit

Permalink
net: Store flags
Browse files Browse the repository at this point in the history
  • Loading branch information
BastianBlokland committed Feb 2, 2025
1 parent 8245202 commit b3331c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/net/src/tls_schannel.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ void net_tls_teardown(void) {
typedef struct sNetTls {
Allocator* alloc;
String host;
NetTlsFlags flags;
NetResult status;
bool connected;
bool contextCreated;
Expand Down Expand Up @@ -241,6 +242,7 @@ NetTls* net_tls_create(Allocator* alloc, const String host, const NetTlsFlags fl
*tls = (NetTls){
.alloc = alloc,
.host = string_maybe_dup(alloc, host),
.flags = flags,
.readBuffer = dynstring_create(g_allocHeap, usize_kibibyte * 16),
};
if (UNLIKELY(!g_netSChannelReady)) {
Expand Down

0 comments on commit b3331c6

Please sign in to comment.