|
Lines 909-924
mm_answer_keyallowed(struct ssh *ssh, in
Link Here
|
| 909 |
char *cuser, *chost; |
909 |
char *cuser, *chost; |
| 910 |
u_int pubkey_auth_attempt; |
910 |
u_int pubkey_auth_attempt; |
| 911 |
enum mm_keytype type = 0; |
911 |
enum mm_keytype type = 0; |
|
|
912 |
u_int32_t type_u32 = 0; |
| 912 |
int r, allowed = 0; |
913 |
int r, allowed = 0; |
| 913 |
struct sshauthopt *opts = NULL; |
914 |
struct sshauthopt *opts = NULL; |
| 914 |
|
915 |
|
| 915 |
debug3_f("entering"); |
916 |
debug3_f("entering"); |
| 916 |
if ((r = sshbuf_get_u32(m, &type)) != 0 || |
917 |
if ((r = sshbuf_get_u32(m, &type_u32)) != 0 || |
| 917 |
(r = sshbuf_get_cstring(m, &cuser, NULL)) != 0 || |
918 |
(r = sshbuf_get_cstring(m, &cuser, NULL)) != 0 || |
| 918 |
(r = sshbuf_get_cstring(m, &chost, NULL)) != 0 || |
919 |
(r = sshbuf_get_cstring(m, &chost, NULL)) != 0 || |
| 919 |
(r = sshkey_froms(m, &key)) != 0 || |
920 |
(r = sshkey_froms(m, &key)) != 0 || |
| 920 |
(r = sshbuf_get_u32(m, &pubkey_auth_attempt)) != 0) |
921 |
(r = sshbuf_get_u32(m, &pubkey_auth_attempt)) != 0) |
| 921 |
fatal_fr(r, "parse"); |
922 |
fatal_fr(r, "parse"); |
|
|
923 |
type = type_u32; |
| 922 |
|
924 |
|
| 923 |
debug3_f("key_from_blob: %p", key); |
925 |
debug3_f("key_from_blob: %p", key); |
| 924 |
|
926 |
|