summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/auth.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-02-22 21:59:43 +0000
committermarkus <markus@openbsd.org>2001-02-22 21:59:43 +0000
commit94af694c72568dd56c70840bf3023d8b1c7124df (patch)
tree8b169da0d480a118a0b87881f165aa436421e386 /usr.bin/ssh/auth.c
parenttypos/grammar from matt@anzen.com (diff)
downloadwireguard-openbsd-94af694c72568dd56c70840bf3023d8b1c7124df.tar.xz
wireguard-openbsd-94af694c72568dd56c70840bf3023d8b1c7124df.zip
use pwcopy in ssh.c, too
Diffstat (limited to 'usr.bin/ssh/auth.c')
-rw-r--r--usr.bin/ssh/auth.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.bin/ssh/auth.c b/usr.bin/ssh/auth.c
index 3ec985f535a..dd2debab36b 100644
--- a/usr.bin/ssh/auth.c
+++ b/usr.bin/ssh/auth.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth.c,v 1.17 2001/02/12 16:16:23 markus Exp $");
+RCSID("$OpenBSD: auth.c,v 1.18 2001/02/22 21:59:43 markus Exp $");
#include "xmalloc.h"
#include "match.h"
@@ -120,21 +120,6 @@ authctxt_new(void)
return authctxt;
}
-struct passwd *
-pwcopy(struct passwd *pw)
-{
- struct passwd *copy = xmalloc(sizeof(*copy));
- memset(copy, 0, sizeof(*copy));
- copy->pw_name = xstrdup(pw->pw_name);
- copy->pw_passwd = xstrdup(pw->pw_passwd);
- copy->pw_uid = pw->pw_uid;
- copy->pw_gid = pw->pw_gid;
- copy->pw_class = xstrdup(pw->pw_class);
- copy->pw_dir = xstrdup(pw->pw_dir);
- copy->pw_shell = xstrdup(pw->pw_shell);
- return copy;
-}
-
void
auth_log(Authctxt *authctxt, int authenticated, char *method, char *info)
{