comparison svr-authpubkey.c @ 179:161557a9dde8

* fix longstanding bug with connections being closed on failure to connect to auth socket (server) * differentiate between get_byte and get_bool * get rid of some // comments * general tidying
author Matt Johnston <matt@ucc.asn.au>
date Sun, 13 Mar 2005 13:58:14 +0000
parents 0cfba3034be5
children c5d3ef11155f
comparison
equal deleted inserted replaced
178:058cc7892636 179:161557a9dde8
62 62
63 TRACE(("enter pubkeyauth")) 63 TRACE(("enter pubkeyauth"))
64 64
65 /* 0 indicates user just wants to check if key can be used, 1 is an 65 /* 0 indicates user just wants to check if key can be used, 1 is an
66 * actual attempt*/ 66 * actual attempt*/
67 testkey = (buf_getbyte(ses.payload) == 0); 67 testkey = (buf_getbool(ses.payload) == 0);
68 68
69 algo = buf_getstring(ses.payload, &algolen); 69 algo = buf_getstring(ses.payload, &algolen);
70 keybloblen = buf_getint(ses.payload); 70 keybloblen = buf_getint(ses.payload);
71 keyblob = buf_getptr(ses.payload, keybloblen); 71 keyblob = buf_getptr(ses.payload, keybloblen);
72 72