WOLFSSL_BAD_FILE and OPENSSL over-rideable.
parent
a60fe89bc9
commit
d6513447e4
|
@ -48,7 +48,7 @@ int main(void)
|
||||||
|
|
||||||
ret = wolfSSL_CertManagerLoadCA(cm, caCert, NULL);
|
ret = wolfSSL_CertManagerLoadCA(cm, caCert, NULL);
|
||||||
if (ret != WOLFSSL_SUCCESS) {
|
if (ret != WOLFSSL_SUCCESS) {
|
||||||
if (ret == -4) {
|
if (ret == WOLFSSL_BAD_FILE) {
|
||||||
printf("No root certificate found. Please see the README.md file"
|
printf("No root certificate found. Please see the README.md file"
|
||||||
" to learn how to generate the certificates.\n");
|
" to learn how to generate the certificates.\n");
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ int main(void)
|
||||||
|
|
||||||
ret = wolfSSL_CertManagerVerify(cm, verifyCert, WOLFSSL_FILETYPE_PEM);
|
ret = wolfSSL_CertManagerVerify(cm, verifyCert, WOLFSSL_FILETYPE_PEM);
|
||||||
if (ret != WOLFSSL_SUCCESS) {
|
if (ret != WOLFSSL_SUCCESS) {
|
||||||
if (ret == -4) {
|
if (ret == WOLFSSL_BAD_FILE) {
|
||||||
printf("No entity certificate found. Please see the README.md file "
|
printf("No entity certificate found. Please see the README.md file "
|
||||||
"to learn how to generate the certificates.\n");
|
"to learn how to generate the certificates.\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,9 @@
|
||||||
# Execute this script in the openssl directory after building OQS's fork of
|
# Execute this script in the openssl directory after building OQS's fork of
|
||||||
# OpenSSL. Please see the README.md file for more details.
|
# OpenSSL. Please see the README.md file for more details.
|
||||||
|
|
||||||
OPENSSL="./apps/openssl"
|
if [[ ! -v OPENSSL ]]; then
|
||||||
|
OPENSSL=./apps/openssl
|
||||||
|
fi
|
||||||
|
|
||||||
# Generate conf files.
|
# Generate conf files.
|
||||||
printf "\
|
printf "\
|
||||||
|
|
Loading…
Reference in New Issue