diff --git a/Makefile.am b/Makefile.am index 25f25c387..af0d83347 100644 --- a/Makefile.am +++ b/Makefile.am @@ -999,12 +999,11 @@ uninstall-local: clean-hook: -rm -r -f $(top_builddir)/ca -check-hook: - -rm -r -f $(top_builddir)/ca - prepare-check: if INIT_CA $(top_srcdir)/script/ekca/init_ca.sh $(top_builddir) + @echo "Build CI in:" 1>&2 + @echo $(top_builddir) 1>&2 endif check: prepare-check diff --git a/test/integration/main-fapi.c b/test/integration/main-fapi.c index 12c3ce0c3..b8a3aedc2 100644 --- a/test/integration/main-fapi.c +++ b/test/integration/main-fapi.c @@ -946,7 +946,10 @@ load_intermed_cert_and_key(const char *ca_key_path, EVP_PKEY **ca_key, /* Load the intermediate certificate */ bio = BIO_new(BIO_s_file()); if (!bio || !BIO_read_filename(bio, ca_cert_path)) { - LOG_ERROR("Failure in BIO_read_filename %s", ca_cert_path); + unsigned long err = ERR_get_error(); + char err_buffer[256]; + ERR_error_string_n(err, err_buffer, sizeof(err_buffer)); + LOG_ERROR("Failure in BIO_read_filename %s", err_buffer); goto error_cleanup; } *ca_crt = PEM_read_bio_X509(bio, NULL, NULL, NULL); @@ -959,7 +962,10 @@ load_intermed_cert_and_key(const char *ca_key_path, EVP_PKEY **ca_key, /* Load the intermediate key. */ bio = BIO_new(BIO_s_file()); if (!bio || !BIO_read_filename(bio, ca_key_path)) { - LOG_ERROR("Failure in BIO_read_filename %s", ca_key_path); + unsigned long err = ERR_get_error(); + char err_buffer[256]; + ERR_error_string_n(err, err_buffer, sizeof(err_buffer)); + LOG_ERROR("Failure in BIO_read_filename %s", err_buffer); goto error_cleanup; } *ca_key = PEM_read_bio_PrivateKey(bio, NULL, pass_cb, NULL);