diff options
author | Damien Miller <djm@mindrot.org> | 2013-01-18 15:32:03 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-01-18 15:32:03 +1100 |
commit | 13f5f768bc4861bff58074717fc19764ee347ac9 (patch) | |
tree | 2d0a4afa3d8843cd1b417388139fc8cb59992fa4 | |
parent | ebafebda8570b2b013327cdc6627f9c5fb9733c1 (diff) |
- djm@cvs.openbsd.org 2013/01/18 03:00:32
[krl.c]
fix KRL generation bug for list sections
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | krl.c | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -8,10 +8,12 @@ | |||
8 | a single bit of incremental cost to revoke a certificate by serial number. | 8 | a single bit of incremental cost to revoke a certificate by serial number. |
9 | KRLs are loaded via the existing RevokedKeys sshd_config option. | 9 | KRLs are loaded via the existing RevokedKeys sshd_config option. |
10 | feedback and ok markus@ | 10 | feedback and ok markus@ |
11 | - OpenBSD CVS Sync | ||
12 | - djm@cvs.openbsd.org 2013/01/18 00:45:29 | 11 | - djm@cvs.openbsd.org 2013/01/18 00:45:29 |
13 | [regress/Makefile regress/cert-userkey.sh regress/krl.sh] | 12 | [regress/Makefile regress/cert-userkey.sh regress/krl.sh] |
14 | Tests for Key Revocation Lists (KRLs) | 13 | Tests for Key Revocation Lists (KRLs) |
14 | - djm@cvs.openbsd.org 2013/01/18 03:00:32 | ||
15 | [krl.c] | ||
16 | fix KRL generation bug for list sections | ||
15 | 17 | ||
16 | 20130117 | 18 | 20130117 |
17 | - (djm) [regress/cipher-speed.sh regress/integrity.sh regress/try-ciphers.sh] | 19 | - (djm) [regress/cipher-speed.sh regress/integrity.sh regress/try-ciphers.sh] |
@@ -14,7 +14,7 @@ | |||
14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | /* $OpenBSD: krl.c,v 1.2 2013/01/18 00:24:58 djm Exp $ */ | 17 | /* $OpenBSD: krl.c,v 1.3 2013/01/18 03:00:32 djm Exp $ */ |
18 | 18 | ||
19 | #include "includes.h" | 19 | #include "includes.h" |
20 | 20 | ||
@@ -595,7 +595,7 @@ revoked_certs_generate(struct revoked_certs *rc, Buffer *buf) | |||
595 | /* Perform section-specific processing */ | 595 | /* Perform section-specific processing */ |
596 | switch (state) { | 596 | switch (state) { |
597 | case KRL_SECTION_CERT_SERIAL_LIST: | 597 | case KRL_SECTION_CERT_SERIAL_LIST: |
598 | for (i = rs->lo; i < contig; i++) | 598 | for (i = 0; i < contig; i++) |
599 | buffer_put_int64(§, rs->lo + i); | 599 | buffer_put_int64(§, rs->lo + i); |
600 | break; | 600 | break; |
601 | case KRL_SECTION_CERT_SERIAL_RANGE: | 601 | case KRL_SECTION_CERT_SERIAL_RANGE: |