This commit is contained in:
Tomasz Ziolkowski 2021-08-04 13:05:21 +02:00
parent 1900ea3bb3
commit 59552a7a76
2 changed files with 2 additions and 3 deletions

1
configure vendored
View file

@ -17887,7 +17887,6 @@ if test "`uname`" = "NetBSD"; then
NETBSD_LINTFLAGS='"-D__RENAME(x)=" -D_NETINET_IN_H_'
fi
CONFIG_DATE=`date +%Y%m%d`

View file

@ -245,8 +245,8 @@ setup_ctx(char* key, char* cert)
SSL_CTX_set_security_level(ctx, 0); /* for keys in tests */
#endif
if(!SSL_CTX_use_certificate_chain_file(ctx, cert)) {
int e = ERR_peek_error();
printf("error string: %s\n", ERR_reason_error_string(e));
int e = ERR_peek_error();
printf("error string: %s\n", ERR_reason_error_string(e));
print_exit("cannot read cert");
}
if(!SSL_CTX_use_PrivateKey_file(ctx, key, SSL_FILETYPE_PEM))