💾 Archived View for bbs.geminispace.org › u › lufte › 22318 captured on 2024-12-17 at 15:48:40. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Re: "Have anybody experience with Glib sockets? Seems that API..."
I don't, but my experience with rustls is that you need to build a different context or client for every different certificate that you want to use. Maybe it's the same in your case.
Nov 29 · 3 weeks ago
I would glad to use any other library, just trying to make GTK application using Glib ecosystem.
So finally found solution by reading glib-networking source code, it's session-resumption-enabled property. If somebody want entire implementation example, here is my client library, writing for Yoda browser mostly (in development)
— https://github.com/YGGverse/ggemini
Maybe later will implement session cache to skip handshake on every page load - at least now I understand why does Geminispace pages loading take a while.
Have anybody experience with Glib sockets? Seems that API there does not provide any method to update user certificate (session ticket cached) in runtime. So I must restart GTK client to apply new certificate e.g. on path change. Found only one solution - force rehandshake request, that reset previous session cache and prevent resumption, but it's not useful with TLS 1.3 This subject bit harder that expected, also, usually socket clients assign certificate to some net address, not it path,...