summaryrefslogtreecommitdiffstats
path: root/apps/include
diff options
context:
space:
mode:
authorRami Khaldi <rami.khaldi@fau.de>2021-11-24 00:23:25 +0100
committerTomas Mraz <tomas@openssl.org>2021-11-24 11:37:49 +0100
commit9567fd3819398c6be70508dd6316046da0955b71 (patch)
treee09536d7e8ee7d5fd9beca7dfe834c337b96d947 /apps/include
parentc1dabe26e3e96cdce0ffc929e9677840ad089ba5 (diff)
x509: Return a nonzero exit code on error when checking ip/email/host
In the x509 app when doing the ip/email/host validation of a certificate we return nonzero exit code if the validation fails. Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17022)
Diffstat (limited to 'apps/include')
-rw-r--r--apps/include/apps.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/include/apps.h b/apps/include/apps.h
index f95238ae1b..f06d01cd37 100644
--- a/apps/include/apps.h
+++ b/apps/include/apps.h
@@ -264,9 +264,9 @@ extern char *psk_key;
unsigned char *next_protos_parse(size_t *outlen, const char *in);
-void print_cert_checks(BIO *bio, X509 *x,
+int check_cert_attributes(BIO *bio, X509 *x,
const char *checkhost,
- const char *checkemail, const char *checkip);
+ const char *checkemail, const char *checkip, int print);
void store_setup_crl_download(X509_STORE *st);