Commit 0b03b153 authored by Niels Möller's avatar Niels Möller
Browse files

* src/server_authorization.c (do_key_lookup): Take user as


Rev: src/server_authorization.c:1.8
parent 2326ded5
......@@ -30,6 +30,8 @@
#include "format.h"
#include "server_userauth.h"
#include <assert.h>
#include <sys/stat.h>
#include <unistd.h>
......@@ -51,24 +53,18 @@
static struct verifier *
do_key_lookup(struct lookup_verifier *c,
int method,
struct lsh_string *keyholder,
struct user *keyholder,
struct lsh_string *key)
CAST(authorization_db, closure, c);
CAST(unix_user, user, keyholder);
struct lsh_string *filename;
struct stat st;
struct unix_user *user;
struct dsa_verifier *v;
/* FIXME: Hmm. User lookup is done twice, both here and higher up in
* server_publickey.c: do_authenticate. It might make more sense to
* pass this data instead of the keyholder username. */
user = lookup_user(keyholder, 0);
if (!user)
return NULL;
if (method != ATOM_SSH_DSS)
return NULL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment