diff options
author | 2001-11-17 19:14:34 +0000 | |
---|---|---|
committer | 2001-11-17 19:14:34 +0000 | |
commit | c899db42feeb5c6185baa0076345bcf478a0b56a (patch) | |
tree | e28210b3e3cf01f8f75f74bd0dcc627956f94510 /usr.bin/ssh/ssh-agent.c | |
parent | properly bail out of incfile(); millert ok (diff) | |
download | wireguard-openbsd-c899db42feeb5c6185baa0076345bcf478a0b56a.tar.xz wireguard-openbsd-c899db42feeb5c6185baa0076345bcf478a0b56a.zip |
enum/int type cleanup where it made sense to do so; ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh-agent.c')
-rw-r--r-- | usr.bin/ssh/ssh-agent.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c index be91e7c4b97..3cbd2323709 100644 --- a/usr.bin/ssh/ssh-agent.c +++ b/usr.bin/ssh/ssh-agent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-agent.c,v 1.72 2001/08/03 10:31:30 jakob Exp $ */ +/* $OpenBSD: ssh-agent.c,v 1.73 2001/11/17 19:14:34 stevesk Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -36,7 +36,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-agent.c,v 1.72 2001/08/03 10:31:30 jakob Exp $"); +RCSID("$OpenBSD: ssh-agent.c,v 1.73 2001/11/17 19:14:34 stevesk Exp $"); #include <openssl/evp.h> #include <openssl/md5.h> @@ -61,11 +61,15 @@ RCSID("$OpenBSD: ssh-agent.c,v 1.72 2001/08/03 10:31:30 jakob Exp $"); #include "scard.h" #endif +typedef enum { + AUTH_UNUSED, + AUTH_SOCKET, + AUTH_CONNECTION +} sock_type; + typedef struct { int fd; - enum { - AUTH_UNUSED, AUTH_SOCKET, AUTH_CONNECTION - } type; + sock_type type; Buffer input; Buffer output; } SocketEntry; @@ -623,7 +627,7 @@ process_message(SocketEntry *e) } static void -new_socket(int type, int fd) +new_socket(sock_type type, int fd) { u_int i, old_alloc; if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) |