summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2011-05-20 19:03:49 +1000
committerDamien Miller <djm@mindrot.org>2011-05-20 19:03:49 +1000
commitc2411909c7ff298744998e00c7a5f1f64fbb0349 (patch)
tree4cb0ce206900b9bc08f7ac41c3d6ddab099f6c82
parent5d74e58e62df1e80c23ff8444ff22483cba1995a (diff)
- dtucker@cvs.openbsd.org 2011/05/20 02:00:19
[servconf.c] Add comment documenting what should be after the preauth check. ok djm
-rw-r--r--ChangeLog3
-rw-r--r--servconf.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index eb5136178..ff81d0522 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,9 @@
20 the options TrustedUserCAKeys, RevokedKeysFile, AuthorizedKeysFile 20 the options TrustedUserCAKeys, RevokedKeysFile, AuthorizedKeysFile
21 and AuthorizedPrincipalsFile were not being correctly applied in 21 and AuthorizedPrincipalsFile were not being correctly applied in
22 Match blocks, despite being overridable there; ok dtucker@ 22 Match blocks, despite being overridable there; ok dtucker@
23 - dtucker@cvs.openbsd.org 2011/05/20 02:00:19
24 [servconf.c]
25 Add comment documenting what should be after the preauth check. ok djm
23 26
2420110515 2720110515
25 - (djm) OpenBSD CVS Sync 28 - (djm) OpenBSD CVS Sync
diff --git a/servconf.c b/servconf.c
index ab134ee55..04a32973e 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: servconf.c,v 1.216 2011/05/20 00:55:02 djm Exp $ */ 1/* $OpenBSD: servconf.c,v 1.217 2011/05/20 02:00:19 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved 4 * All rights reserved
@@ -1505,6 +1505,10 @@ copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth)
1505 M_CP_STROPT(authorized_keys_file); 1505 M_CP_STROPT(authorized_keys_file);
1506 M_CP_STROPT(authorized_principals_file); 1506 M_CP_STROPT(authorized_principals_file);
1507 1507
1508 /*
1509 * The only things that should be below this point are string options
1510 * which are only used after authentication.
1511 */
1508 if (preauth) 1512 if (preauth)
1509 return; 1513 return;
1510 M_CP_STROPT(adm_forced_command); 1514 M_CP_STROPT(adm_forced_command);