diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-10-07 14:45:34 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-10-07 14:45:34 +0000 |
commit | 56c898df3afc31c1338514752b6521ab01a06228 (patch) | |
tree | 410b54162217b0455c4b2fb88971c54d1bd50300 | |
parent | dfa43e5be4d6188adaefc49383a72f161f32d393 (diff) |
Add comment accidentally omitted on commit
-rw-r--r-- | usr.sbin/rpki-client/x509.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rpki-client/x509.c b/usr.sbin/rpki-client/x509.c index 89d8e13006e..0ef858ddfa2 100644 --- a/usr.sbin/rpki-client/x509.c +++ b/usr.sbin/rpki-client/x509.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.c,v 1.102 2024/10/07 12:18:31 tb Exp $ */ +/* $OpenBSD: x509.c,v 1.103 2024/10/07 14:45:33 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> * Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org> @@ -1033,6 +1033,7 @@ x509_seqnum_to_bn(const char *fn, const char *descr, const ASN1_INTEGER *i) goto out; } + /* Reject values larger than or equal to 2^159. */ if (BN_num_bytes(bn) > 20 || BN_is_bit_set(bn, 159)) { warnx("%s: %s should fit in 20 octets", fn, descr); goto out; |