💾 Archived View for rawtext.club › ~sloum › geminilist › 007166.gmi captured on 2023-09-08 at 16:41:55. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

<-- back to the mailing list

A simple/toy client in C

stack at tilde.club stack at tilde.club

Tue Sep 21 16:24:34 BST 2021

- - - - - - - - - - - - - - - - - - - 

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.