From e49896f3e98ab36fd145e494a248c83a5a46a84b Mon Sep 17 00:00:00 2001 From: tb <> Date: Tue, 21 Apr 2026 05:18:35 +0000 Subject: pkcs7test: factor main into a helper so we can add some unit tests easily --- src/regress/lib/libcrypto/pkcs7/pkcs7test.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/pkcs7/pkcs7test.c b/src/regress/lib/libcrypto/pkcs7/pkcs7test.c index 28e0f67aee..88126ea082 100644 --- a/src/regress/lib/libcrypto/pkcs7/pkcs7test.c +++ b/src/regress/lib/libcrypto/pkcs7/pkcs7test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pkcs7test.c,v 1.5 2021/04/07 17:21:40 tb Exp $ */ +/* $OpenBSD: pkcs7test.c,v 1.6 2026/04/21 05:18:35 tb Exp $ */ /* * Copyright (c) 2014 Joel Sing * @@ -123,8 +123,8 @@ message_compare(const char *out, size_t len) } } -int -main(int argc, char **argv) +static int +pkcs7_basics(void) { BIO *bio_in, *bio_content, *bio_out, *bio_cert, *bio_pkey; STACK_OF(X509) *certs; @@ -299,3 +299,13 @@ main(int argc, char **argv) return 0; } + +int +main(int argc, char **argv) +{ + int failed = 0; + + failed |= pkcs7_basics(); + + return failed; +} -- cgit v1.2.3-55-g6feb