Skip to content

Commit 9dd6953

Browse files
committed
Sort extension counters per RFC 6487, section 4.8
ok claudio
1 parent 48accde commit 9dd6953

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

usr.sbin/rpki-client/cert.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: cert.c,v 1.163 2025/06/19 10:26:34 tb Exp $ */
1+
/* $OpenBSD: cert.c,v 1.164 2025/06/19 11:06:48 tb Exp $ */
22
/*
33
* Copyright (c) 2022 Theo Buehler <[email protected]>
44
* Copyright (c) 2021 Job Snijders <[email protected]>
@@ -965,10 +965,10 @@ cert_parse_pre(const char *fn, const unsigned char *der, size_t len)
965965
const ASN1_BIT_STRING *issuer_uid = NULL, *subject_uid = NULL;
966966
ASN1_OBJECT *obj;
967967
EVP_PKEY *pkey;
968-
int nid, ip, as, sia, cp, crldp, aia, aki, ski,
969-
eku, bc, ku;
968+
int nid, bc, ski, aki, ku, eku, crldp, aia, sia,
969+
cp, ip, as;
970970

971-
nid = ip = as = sia = cp = crldp = aia = aki = ski = eku = bc = ku = 0;
971+
nid = bc = ski = aki = ku = eku = crldp = aia = sia = cp = ip = as = 0;
972972

973973
/* just fail for empty buffers, the warning was printed elsewhere */
974974
if (der == NULL)

0 commit comments

Comments
 (0)