diff options
| author | tb <> | 2021-12-23 18:12:58 +0000 |
|---|---|---|
| committer | tb <> | 2021-12-23 18:12:58 +0000 |
| commit | 0a656693e344308439016226ee4fc5ea11ab7547 (patch) | |
| tree | 193162e5b83dd5003ae485cb20d5359677b8a4a7 /src | |
| parent | c77ab6c94fcb8ef0cfb5c9444cef27c4a7220be9 (diff) | |
| download | openbsd-0a656693e344308439016226ee4fc5ea11ab7547.tar.gz openbsd-0a656693e344308439016226ee4fc5ea11ab7547.tar.bz2 openbsd-0a656693e344308439016226ee4fc5ea11ab7547.zip | |
fix typo: boolean true should decode to 1, not 0
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/asn1/asn1basic.c | 4 |
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 | ||
