I think I’ve found the most complicated library ever. That library is really over-engineered. I spent a whole day trying to understand _ssl.c, wrapping ssl.h and the other headers I need with ctypes codegenerator (doing it manually is insane), writing 400+ lines of initialization code, dealing with the OpenSSL man pages and so on and I encountered one problem more:
Some functions like SSL_CTX_set_options are not exported by the shared library so I can’t use them with ctypes. But since the initialization protocol is not complete the SSL_connect fails miserably. And if I can’t initialize the SSL protocol I can’t write the module. Crystal.
I think I’m cursed
















