Cleanup mttest.c : better error reporting when certs are missing
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 7a1789d254)
			
			
This commit is contained in:
		| @@ -278,9 +278,12 @@ int main(int argc, char *argv[]) | |||||||
|                                    SSL_SESS_CACHE_SERVER); |                                    SSL_SESS_CACHE_SERVER); | ||||||
|  |  | ||||||
|     if (!SSL_CTX_use_certificate_file(s_ctx, scert, SSL_FILETYPE_PEM)) { |     if (!SSL_CTX_use_certificate_file(s_ctx, scert, SSL_FILETYPE_PEM)) { | ||||||
|  |         BIO_printf(bio_err, "SSL_CTX_use_certificate_file (%s)\n", scert); | ||||||
|         ERR_print_errors(bio_err); |         ERR_print_errors(bio_err); | ||||||
|  |         goto end; | ||||||
|     } else |     } else | ||||||
|         if (!SSL_CTX_use_RSAPrivateKey_file(s_ctx, scert, SSL_FILETYPE_PEM)) { |         if (!SSL_CTX_use_RSAPrivateKey_file(s_ctx, scert, SSL_FILETYPE_PEM)) { | ||||||
|  |         BIO_printf(bio_err, "SSL_CTX_use_RSAPrivateKey_file (%s)\n", scert); | ||||||
|         ERR_print_errors(bio_err); |         ERR_print_errors(bio_err); | ||||||
|         goto end; |         goto end; | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Richard Levitte
					Richard Levitte