A simple/toy client in C

I've been trying to put together a very simple C toy client - just enought 
to connect to a Gemini server and get a page (no UI).  My goal is to 
figure out how a client connects, wrap a Common Lisp CFFI and make a 
Common Lisp client (which is why C is a requirement).

I am using BearSSL (for its minimalism). I started with the sample 
provided, modified for the Gemini request.  I keep getting stuck with 
error 62 (probably because I don't understand how to deal with TLS).  I 
attempted to generate the CA boilerplate code, but there are some ominous 
hints that the code is HTTPS-specific.

Could someone point me in the right direction (Ideally, to a repo with a C 
example :) I am not married to BearSSL - it just seemed an OK starting point.

Many thanks.

---

Next in thread (2 of 7): 🗣️ Omar Polo (op (a) omarpolo.com)

View entire thread.