-/* $OpenBSD: verify.c,v 1.13 2020/11/03 18:50:25 tb Exp $ */
+/* $OpenBSD: verify.c,v 1.14 2021/02/15 17:57:58 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
if (x == NULL)
goto end;
- fprintf(stdout, "%s: ", certfile);
-
if ((csc = X509_STORE_CTX_new()) == NULL)
goto end;
X509_STORE_set_flags(ctx, vflags);
verify_err = X509_STORE_CTX_get_error(csc);
if (i > 0 && verify_err == X509_V_OK) {
- fprintf(stdout, "OK\n");
+ fprintf(stdout, "%s: OK\n", certfile);
ret = 1;
} else {
fprintf(stdout, "%s: verification failed: %d (%s)\n", certfile,