aboutsummaryrefslogtreecommitdiff
path: root/demos/smime/smver.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/smime/smver.c')
-rw-r--r--demos/smime/smver.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/demos/smime/smver.c b/demos/smime/smver.c
index 5d552b18082a..caa9ed304ff0 100644
--- a/demos/smime/smver.c
+++ b/demos/smime/smver.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2007-2023 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -18,8 +18,7 @@ int main(int argc, char **argv)
X509_STORE *st = NULL;
X509 *cacert = NULL;
PKCS7 *p7 = NULL;
-
- int ret = 1;
+ int ret = EXIT_FAILURE;
OpenSSL_add_all_algorithms();
ERR_load_crypto_strings();
@@ -67,12 +66,11 @@ int main(int argc, char **argv)
goto err;
}
- fprintf(stderr, "Verification Successful\n");
-
- ret = 0;
+ printf("Verification Successful\n");
+ ret = EXIT_SUCCESS;
err:
- if (ret) {
+ if (ret != EXIT_SUCCESS) {
fprintf(stderr, "Error Verifying Data\n");
ERR_print_errors_fp(stderr);
}