Hello, I have a simple client operating in blocking mode. When I try to connect to the server, I get the error: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Anybody aware of this error? I had previously written both a blocking and non-blocking client with help of people from this forum (most notably David). Now, the code doesn't run. Here's a snapshot of the code. SSL_library_init(); ERR_load_BIO_strings(); SSL_load_error_strings(); OpenSSL_add_all_algorithms(); ctx = SSL_CTX_new(SSLv23_client_method()); if(!SSL_CTX_load_verify_locations(ctx, "mycert.pem", NULL)) { SSL_CTX_free(ctx); return NULL; } ssl = SSL_new(ctx); sbio = BIO_new_socket(server_socket,BIO_NOCLOSE); SSL_set_bio(handle->ssl,sbio,sbio); SSL_connect(handle->ssl); bytes_sent = SSL_write(handle->ssl, (handle->content + handle->offset), handle->length); switch(SSL_get_error(handle->ssl, bytes_sent)) { case SSL_ERROR_NONE: printf("Success\n"); break; case SSL_ERROR_SSL: printf("general error: %s\n", ERR_error_string(ERR_get_error(), NULL)); break; } ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org