Skip to content

Instantly share code, notes, and snippets.

@0prrr
0prrr / tls_client.c
Created December 18, 2024 01:14 — forked from mlt/tls_client.c
simple example of TLS socket client using win32 schannel api
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <windows.h>
#define SECURITY_WIN32
#include <security.h>
#define SCHANNEL_USE_BLACKLISTS
#include <subauth.h>
#include <schnlsp.h>
#include <shlwapi.h>
#include <assert.h>