Skip to content

Instantly share code, notes, and snippets.

@mmozeiko
mmozeiko / tls_client.c
Last active December 31, 2025 12:14
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>
#include <schannel.h>
#include <shlwapi.h>
#include <assert.h>
#include <stdio.h>