Displaying 1 result from an estimated 1 matches for "num_authorized_keys_files".
2002 Jan 23
0
[PATCH] Add multiple AuthorizedKeyFiles options
...char *
-authorized_keys_file(struct passwd *pw)
+authorized_keys_file(struct passwd *pw, int n)
{
- return expand_filename(options.authorized_keys_file, pw);
-}
-
-char *
-authorized_keys_file2(struct passwd *pw)
-{
- return expand_filename(options.authorized_keys_file2, pw);
+ if (n >= options.num_authorized_keys_files)
+ return NULL;
+ return expand_filename(options.authorized_keys_files[n], pw);
}
/* return ok if key exists in sysfile or userfile */
Index: auth.h
===================================================================
RCS file: /cvs/openssh/auth.h,v
retrieving revision 1.27
diff -u -r1.27 auth....