Lines Matching refs:algolen
42 static int checkpubkey(unsigned char* algo, unsigned int algolen,
45 static void send_msg_userauth_pk_ok(unsigned char* algo, unsigned int algolen,
55 unsigned int algolen; in svr_auth_pubkey() local
69 algo = buf_getstring(ses.payload, &algolen); in svr_auth_pubkey()
74 if (checkpubkey(algo, algolen, keyblob, keybloblen) == DROPBEAR_FAILURE) { in svr_auth_pubkey()
81 send_msg_userauth_pk_ok(algo, algolen, keyblob, keybloblen); in svr_auth_pubkey()
136 static void send_msg_userauth_pk_ok(unsigned char* algo, unsigned int algolen, in send_msg_userauth_pk_ok() argument
143 buf_putstring(ses.writepayload, algo, algolen); in send_msg_userauth_pk_ok()
154 static int checkpubkey(unsigned char* algo, unsigned int algolen, in checkpubkey() argument
166 if (have_algo(algo, algolen, sshhostkey) == DROPBEAR_FAILURE) { in checkpubkey()
213 if (strncmp(buf_getptr(line, algolen), algo, algolen) != 0) { in checkpubkey()
216 buf_incrpos(line, algolen); in checkpubkey()
234 ret = cmp_base64_key(keyblob, keybloblen, algo, algolen, line, NULL); in checkpubkey()