Relative Content

Tag Archive for csslopenssllibssl

How to handle SSL_ERROR_SSL on SSL_accept

Im using openssl (the development library, <openssl/ssl.h>) to program a small, simple server in C. Since Im only testing it locally, I use a self signed certificate. When first connecting, since my browser doesnt trust the certificate, SSL_accept() returns SSL_ERROR_SSL, which is fine, thats what should happen.
Im wondering how I should handle the error SSL_ERROR_SSL, since the docs on SSL_get_error() say: