+ switch( SSL_get_error( ssl_infos.ssl, len ) ) {
+ case SSL_ERROR_NONE:
+ /* Success. */
+ break;
+ case SSL_ERROR_ZERO_RETURN:
+ fprintf( stderr, "%s: SSL_read() connection closed.\n", PACKAGE );
+ break;
+ case SSL_ERROR_SYSCALL:
+ fprintf( stderr, "%s: SSL_read() I/O error.\n", PACKAGE );
+ goto ssl_error;
+ case SSL_ERROR_SSL:
+ fprintf( stderr, "%s: SSL_read() protocol error.\n", PACKAGE );
+ goto ssl_error;
+ default:
+ fprintf( stderr, "%s: SSL_read() error.\n", PACKAGE );
+ goto ssl_error;