Displaying 1 result from an estimated 1 matches for "authfileno".
Did you mean:
authfile
2002 Jan 23
0
[PATCH] Add multiple AuthorizedKeyFiles options
...allenge_dialog(RSA *pk)
{
@@ -122,11 +124,33 @@
* 0 if the client could not be authenticated, and 1 if authentication was
* successful. This may exit if there is a serious protocol violation.
*/
+int
+auth_rsa(struct passwd *pw, BIGNUM *client_n) {
+ char *file;
+ int authorized = 0;
+ int authfileno = 0;
+
+ /* no user given */
+ if (pw == NULL)
+ return 0;
+
+ /* Iterate over all authorized keys files. */
+ while ( (file = authorized_keys_file(pw, authfileno++)) != NULL) {
+ debug("trying public RSA key file %s", file);
+ authorized = auth_rsa_file(pw, client_n, file);
+ xfree(f...