diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-03 17:26:56 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-03 17:26:56 +0000 |
commit | 7cdad3c2006070097d65a2c4d3737c6eac0b63e6 (patch) | |
tree | 6cfc76554e2e7284f7697ba5c499cae22d87b642 /auth.h | |
parent | 7a854cb1f8ffb4ec8f81b8ec50cc42c165839ff3 (diff) |
Pubkey auth is mostly there for the client. Something strange with
remote hostkey verification though.
--HG--
extra : convert_revision : 8635abe49e499e16d44a8ee79d474dc35257e9cc
Diffstat (limited to 'auth.h')
-rw-r--r-- | auth.h | 27 |
1 files changed, 21 insertions, 6 deletions
@@ -30,24 +30,24 @@ void svr_authinitialise(); void cli_authinitialise(); -void svr_auth_password(); -void svr_auth_pubkey(); - -int cli_auth_password(); -int cli_auth_pubkey(); - /* Server functions */ void recv_msg_userauth_request(); void send_msg_userauth_failure(int partial, int incrfail); void send_msg_userauth_success(); +void svr_auth_password(); +void svr_auth_pubkey(); /* Client functions */ void recv_msg_userauth_failure(); void recv_msg_userauth_success(); +void recv_msg_userauth_pk_ok(); void cli_get_user(); void cli_auth_getmethods(); void cli_auth_try(); void recv_msg_userauth_banner(); +void cli_pubkeyfail(); +int cli_auth_password(); +int cli_auth_pubkey(); #define MAX_USERNAME_LEN 25 /* arbitrary for the moment */ @@ -63,6 +63,9 @@ void recv_msg_userauth_banner(); #define AUTH_METHOD_PASSWORD "password" #define AUTH_METHOD_PASSWORD_LEN 8 +/* For a 4096 bit DSS key, empirically determined to be 1590 bytes */ +#define MAX_PUBKEY_SIZE 1600 + /* This structure is shared between server and client - it contains * relatively little extraneous bits when used for the client rather than the * server */ @@ -83,4 +86,16 @@ struct AuthState { }; +struct PubkeyList; +/* A singly linked list of pubkeys */ +struct PubkeyList { + + sign_key *key; + int type; /* The type of key */ + struct PubkeyList *next; + /* filename? or the buffer? for encrypted keys, so we can later get + * the private key portion */ + +}; + #endif /* _AUTH_H_ */ |