- djm@cvs.openbsd.org 2014/06/24 00:52:02

[krl.c]
     fix bug in KRL generation: multiple consecutive revoked certificate
     serial number ranges could be serialised to an invalid format.

     Readers of a broken KRL caused by this bug will fail closed, so no
     should-have-been-revoked key will be accepted.
This commit is contained in:
Damien Miller 2014-07-02 12:48:30 +10:00
parent 99db840ee8
commit 2cd7929250
2 changed files with 9 additions and 1 deletions

View File

@ -17,6 +17,13 @@
the corresponding ssh_put_bignum functions create. This fixes the
use of 16384-bit RSA keys (bug reported by Eivind Evensen).
ok djm@
- djm@cvs.openbsd.org 2014/06/24 00:52:02
[krl.c]
fix bug in KRL generation: multiple consecutive revoked certificate
serial number ranges could be serialised to an invalid format.
Readers of a broken KRL caused by this bug will fail closed, so no
should-have-been-revoked key will be accepted.
20140618
- (tim) [openssh/session.c] Work around to get chroot sftp working on UnixWare

3
krl.c
View File

@ -14,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $OpenBSD: krl.c,v 1.15 2014/04/28 03:09:18 djm Exp $ */
/* $OpenBSD: krl.c,v 1.16 2014/06/24 00:52:02 djm Exp $ */
#include "includes.h"
@ -575,6 +575,7 @@ revoked_certs_generate(struct revoked_certs *rc, Buffer *buf)
buffer_put_char(buf, state);
buffer_put_string(buf,
buffer_ptr(&sect), buffer_len(&sect));
buffer_clear(&sect);
}
/* If we are starting a new section then prepare it now */