summaryrefslogtreecommitdiffhomepage
path: root/auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/auth.h b/auth.h
index 83a2f8e..7ebf9ae 100644
--- a/auth.h
+++ b/auth.h
@@ -26,6 +26,7 @@
#define _AUTH_H_
#include "includes.h"
+#include "signkey.h"
#include "chansession.h"
void svr_authinitialise();
@@ -73,6 +74,7 @@ void cli_auth_password();
int cli_auth_pubkey();
void cli_auth_interactive();
char* getpass_or_cancel(char* prompt);
+void cli_auth_pubkey_cleanup();
#define MAX_USERNAME_LEN 25 /* arbitrary for the moment */
@@ -97,7 +99,6 @@ char* getpass_or_cancel(char* prompt);
* relatively little extraneous bits when used for the client rather than the
* server */
struct AuthState {
-
char *username; /* This is the username the client presents to check. It
is updated each run through, used for auth checking */
unsigned char authtypes; /* Flags indicating which auth types are still
@@ -120,19 +121,6 @@ struct AuthState {
#ifdef ENABLE_SVR_PUBKEY_OPTIONS
struct PubKeyOptions* pubkey_options;
#endif
-
-};
-
-struct SignKeyList;
-/* A singly linked list of signing keys */
-struct SignKeyList {
-
- sign_key *key;
- int type; /* The type of key */
- struct SignKeyList *next;
- /* filename? or the buffer? for encrypted keys, so we can later get
- * the private key portion */
-
};
#ifdef ENABLE_SVR_PUBKEY_OPTIONS
@@ -145,7 +133,7 @@ struct PubKeyOptions {
int no_pty_flag;
/* "command=" option. */
unsigned char * forced_command;
-
+ unsigned char * original_command;
};
#endif