summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/interop/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libssl/interop/util.c')
-rw-r--r--src/regress/lib/libssl/interop/util.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/regress/lib/libssl/interop/util.c b/src/regress/lib/libssl/interop/util.c
index b012d73193..5190e81828 100644
--- a/src/regress/lib/libssl/interop/util.c
+++ b/src/regress/lib/libssl/interop/util.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: util.c,v 1.2 2018/11/07 06:29:26 bluhm Exp $ */ 1/* $OpenBSD: util.c,v 1.3 2018/11/09 06:30:41 bluhm Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Alexander Bluhm <bluhm@openbsd.org> 3 * Copyright (c) 2018 Alexander Bluhm <bluhm@openbsd.org>
4 * 4 *
@@ -133,3 +133,13 @@ err_ssl(int eval, const char *fmt, ...)
133 verrx(eval, fmt, ap); 133 verrx(eval, fmt, ap);
134 va_end(ap); 134 va_end(ap);
135} 135}
136
137int
138verify_callback(int preverify_ok, X509_STORE_CTX *x509_ctx)
139{
140 printf("verify: %s\n", preverify_ok ? "pass" : "fail");
141 if (fflush(stdout) != 0)
142 err(1, "fflush stdout");
143
144 return preverify_ok;
145}