summaryrefslogtreecommitdiff
path: root/key.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2011-10-18 16:06:14 +1100
committerDamien Miller <djm@mindrot.org>2011-10-18 16:06:14 +1100
commitc51a5ab2c6f7ea4ae42e70d1d00bdf57c28f8c36 (patch)
tree5e8106f528aaa5fb62536c4ccc314dfb6a840cb3 /key.c
parent91f3eaec886825c42cf6e38d4e2af0f52b5aa35f (diff)
downloadopenssh-git-c51a5ab2c6f7ea4ae42e70d1d00bdf57c28f8c36.tar.gz
- djm@cvs.openbsd.org 2011/10/18 04:58:26
[auth-options.c key.c] remove explict search for \0 in packet strings, this job is now done implicitly by buffer_get_cstring; ok markus
Diffstat (limited to 'key.c')
-rw-r--r--key.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/key.c b/key.c
index 498cf5a6..5cc4132c 100644
--- a/key.c
+++ b/key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key.c,v 1.97 2011/05/17 07:13:31 djm Exp $ */
+/* $OpenBSD: key.c,v 1.98 2011/10/18 04:58:26 djm Exp $ */
/*
* read_bignum():
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1356,11 +1356,6 @@ cert_parse(Buffer *b, Key *key, const u_char *blob, u_int blen)
goto out;
}
- if (kidlen != strlen(key->cert->key_id)) {
- error("%s: key ID contains \\0 character", __func__);
- goto out;
- }
-
/* Signature is left in the buffer so we can calculate this length */
signed_len = buffer_len(&key->cert->certblob) - buffer_len(b);