diff options
author | Damien Miller <djm@mindrot.org> | 2011-10-18 07:06:14 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2011-10-18 07:06:14 +0200 |
commit | c51a5ab2c6f7ea4ae42e70d1d00bdf57c28f8c36 (patch) | |
tree | 5e8106f528aaa5fb62536c4ccc314dfb6a840cb3 /auth-options.c | |
parent | - stsp@cvs.openbsd.org 2011/10/16 15:51:39 (diff) | |
download | openssh-c51a5ab2c6f7ea4ae42e70d1d00bdf57c28f8c36.tar.xz openssh-c51a5ab2c6f7ea4ae42e70d1d00bdf57c28f8c36.zip |
- 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 'auth-options.c')
-rw-r--r-- | auth-options.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/auth-options.c b/auth-options.c index b3c19c1c0..0e67bd8c0 100644 --- a/auth-options.c +++ b/auth-options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth-options.c,v 1.55 2011/09/23 00:22:04 dtucker Exp $ */ +/* $OpenBSD: auth-options.c,v 1.56 2011/10/18 04:58:26 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -452,10 +452,6 @@ parse_option_list(u_char *optblob, size_t optblob_len, struct passwd *pw, buffer_append(&data, data_blob, dlen); debug3("found certificate option \"%.100s\" len %u", name, dlen); - if (strlen(name) != nlen) { - error("Certificate constraint name contains \\0"); - goto out; - } found = 0; if ((which & OPTIONS_EXTENSIONS) != 0) { if (strcmp(name, "permit-X11-forwarding") == 0) { @@ -485,11 +481,6 @@ parse_option_list(u_char *optblob, size_t optblob_len, struct passwd *pw, "corrupt", name); goto out; } - if (strlen(command) != clen) { - error("force-command constraint " - "contains \\0"); - goto out; - } if (*cert_forced_command != NULL) { error("Certificate has multiple " "force-command options"); @@ -506,11 +497,6 @@ parse_option_list(u_char *optblob, size_t optblob_len, struct passwd *pw, "\"%s\" corrupt", name); goto out; } - if (strlen(allowed) != clen) { - error("source-address constraint " - "contains \\0"); - goto out; - } if ((*cert_source_address_done)++) { error("Certificate has multiple " "source-address options"); |