summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2021-12-23 18:12:58 +0000
committertb <>2021-12-23 18:12:58 +0000
commita92becc0304c2a08497aa001a61f8744d671aa5c (patch)
tree193162e5b83dd5003ae485cb20d5359677b8a4a7
parentab870b7b7e53ba5032a9c09b428c4e5db8e132f2 (diff)
downloadopenbsd-a92becc0304c2a08497aa001a61f8744d671aa5c.tar.gz
openbsd-a92becc0304c2a08497aa001a61f8744d671aa5c.tar.bz2
openbsd-a92becc0304c2a08497aa001a61f8744d671aa5c.zip
fix typo: boolean true should decode to 1, not 0
-rw-r--r--src/regress/lib/libcrypto/asn1/asn1basic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/asn1/asn1basic.c b/src/regress/lib/libcrypto/asn1/asn1basic.c
index d2a1fc97ba..bb657058c2 100644
--- a/src/regress/lib/libcrypto/asn1/asn1basic.c
+++ b/src/regress/lib/libcrypto/asn1/asn1basic.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1basic.c,v 1.1 2021/12/09 16:30:05 jsing Exp $ */ 1/* $OpenBSD: asn1basic.c,v 1.2 2021/12/23 18:12:58 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017, 2021 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -110,7 +110,7 @@ asn1_boolean_test(void)
110 110
111 q = p; 111 q = p;
112 if (d2i_ASN1_BOOLEAN(NULL, &q, len) != 1) { 112 if (d2i_ASN1_BOOLEAN(NULL, &q, len) != 1) {
113 fprintf(stderr, "FAIL: BOOLEAN true did not decode to 0\n"); 113 fprintf(stderr, "FAIL: BOOLEAN true did not decode to 1\n");
114 goto failed; 114 goto failed;
115 } 115 }
116 116