Mercurial > dropbear
comparison runopts.h @ 47:4b53a43f0082
- client pubkey auth works
- rearrange the runopts code for client and server (hostkey reading is needed
by both (if the client is doing pubkey auth. otherwise....))
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 06 Aug 2004 16:18:01 +0000 |
parents | b4874d772210 |
children | efb5e0b335cf |
comparison
equal
deleted
inserted
replaced
46:3bea78e1b175 | 47:4b53a43f0082 |
---|---|
26 #define _RUNOPTS_H_ | 26 #define _RUNOPTS_H_ |
27 | 27 |
28 #include "includes.h" | 28 #include "includes.h" |
29 #include "signkey.h" | 29 #include "signkey.h" |
30 #include "buffer.h" | 30 #include "buffer.h" |
31 #include "auth.h" | |
31 | 32 |
32 typedef struct runopts { | 33 typedef struct runopts { |
33 | 34 |
34 int nolocaltcp; | 35 int nolocaltcp; |
35 int noremotetcp; | 36 int noremotetcp; |
36 | 37 |
37 } runopts; | 38 } runopts; |
38 | 39 |
39 extern runopts opts; | 40 extern runopts opts; |
41 | |
42 int readhostkey(const char * filename, sign_key * hostkey, int *type); | |
40 | 43 |
41 typedef struct svr_runopts { | 44 typedef struct svr_runopts { |
42 | 45 |
43 char * rsakeyfile; | 46 char * rsakeyfile; |
44 char * dsskeyfile; | 47 char * dsskeyfile; |
85 | 88 |
86 char *username; | 89 char *username; |
87 | 90 |
88 char *cmd; | 91 char *cmd; |
89 int wantpty; | 92 int wantpty; |
93 struct PubkeyList *pubkeys; /* Keys to use for public-key auth */ | |
94 #ifdef DROPBEAR_PUBKEY_AUTH | |
95 #endif | |
90 /* XXX TODO */ | 96 /* XXX TODO */ |
91 | 97 |
92 } cli_runopts; | 98 } cli_runopts; |
93 | 99 |
94 extern cli_runopts cli_opts; | 100 extern cli_runopts cli_opts; |