Skip to content

Instantly share code, notes, and snippets.

View wendeehsu's full-sized avatar
🇹🇼
Fighting 💨

wendeehsu

🇹🇼
Fighting 💨
View GitHub Profile
@vedantroy
vedantroy / client.cpp
Last active April 8, 2024 22:26
A C++ Client That Sends Data Over TLS Using OpenSSL
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <resolv.h>
#include <netdb.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
//Not sure what headers are needed or not
//This code (theoretically) writes "Hello World, 123" to a socket over a secure TLS connection