diff options
author | Damien Miller <djm@mindrot.org> | 2013-02-12 10:56:42 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-02-12 10:56:42 +1100 |
commit | 60565bcb5c26f38b9f1c0261c0608751979571d4 (patch) | |
tree | 10887bd8b4e64b17f7c86aafa88d01913306e71b /krl.c | |
parent | 377d9a44f9c79c4fde96e973392175d5b22eed80 (diff) |
- djm@cvs.openbsd.org 2013/01/25 10:22:19
[krl.c]
redo last commit without the vi-vomit that snuck in:
skip serial lookup when cert's serial number is zero
(now with 100% better comment)
Diffstat (limited to 'krl.c')
-rw-r--r-- | krl.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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.7 2013/01/25 05:00:27 krw Exp $ */ | 17 | /* $OpenBSD: krl.c,v 1.8 2013/01/25 10:22:19 djm Exp $ */ |
18 | 18 | ||
19 | #include "includes.h" | 19 | #include "includes.h" |
20 | 20 | ||
@@ -1148,8 +1148,11 @@ is_key_revoked(struct ssh_krl *krl, const Key *key) | |||
1148 | return -1; | 1148 | return -1; |
1149 | } | 1149 | } |
1150 | 1150 | ||
1151 | /* Legacy cert formats lack serial numbers */ | 1151 | /* |
1152 | if (key_cert_is_legacy(key)) | 1152 | * Legacy cert formats lack serial numbers. Zero serials numbers |
1153 | * are ignored (it's the default when the CA doesn't specify one). | ||
1154 | */ | ||
1155 | if (key_cert_is_legacy(key) || key->cert->serial == 0) | ||
1153 | return 0; | 1156 | return 0; |
1154 | 1157 | ||
1155 | bzero(&rs, sizeof(rs)); | 1158 | bzero(&rs, sizeof(rs)); |