summaryrefslogtreecommitdiff
path: root/auth2-pubkey.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2011-05-15 08:51:05 +1000
committerDamien Miller <djm@mindrot.org>2011-05-15 08:51:05 +1000
commit7c1b2c4ea8a5d06908dda3f8e406b902b81fe905 (patch)
treed4feec6013425aa759cb0e0d4863de23c8cc2997 /auth2-pubkey.c
parent3219824f2d8b0ea1711818745b046931ffcd3918 (diff)
- djm@cvs.openbsd.org 2011/05/11 04:47:06
[auth.c auth.h auth2-pubkey.c pathnames.h servconf.c servconf.h] remove support for authorized_keys2; it is a relic from the early days of protocol v.2 support and has been undocumented for many years; ok markus@
Diffstat (limited to 'auth2-pubkey.c')
-rw-r--r--auth2-pubkey.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c
index 7d2141355..a97509c28 100644
--- a/auth2-pubkey.c
+++ b/auth2-pubkey.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth2-pubkey.c,v 1.27 2010/11/20 05:12:38 deraadt Exp $ */ 1/* $OpenBSD: auth2-pubkey.c,v 1.28 2011/05/11 04:47:06 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * 4 *
@@ -451,13 +451,7 @@ user_key_allowed(struct passwd *pw, Key *key)
451 file = authorized_keys_file(pw); 451 file = authorized_keys_file(pw);
452 success = user_key_allowed2(pw, key, file); 452 success = user_key_allowed2(pw, key, file);
453 xfree(file); 453 xfree(file);
454 if (success)
455 return success;
456 454
457 /* try suffix "2" for backward compat, too */
458 file = authorized_keys_file2(pw);
459 success = user_key_allowed2(pw, key, file);
460 xfree(file);
461 return success; 455 return success;
462} 456}
463 457