Home | History | Annotate | Download | only in dropbear

Lines Matching refs:algo

35 #include "algo.h"
42 static int checkpubkey(unsigned char* algo, unsigned int algolen,
45 static void send_msg_userauth_pk_ok(unsigned char* algo, unsigned int algolen,
54 unsigned char* algo = NULL; /* pubkey algo */
69 algo = buf_getstring(ses.payload, &algolen);
74 if (checkpubkey(algo, algolen, keyblob, keybloblen) == DROPBEAR_FAILURE) {
81 send_msg_userauth_pk_ok(algo, algolen, keyblob, keybloblen);
123 if (algo) {
124 m_free(algo);
136 static void send_msg_userauth_pk_ok(unsigned char* algo, unsigned int algolen,
143 buf_putstring(ses.writepayload, algo, algolen);
154 static int checkpubkey(unsigned char* algo, unsigned int algolen,
165 /* check that we can use the algo */
166 if (have_algo(algo, algolen, sshhostkey) == DROPBEAR_FAILURE) {
168 "pubkey auth attempt with unknown algo for '%s' from %s",
213 if (strncmp(buf_getptr(line, algolen), algo, algolen) != 0) {
234 ret = cmp_base64_key(keyblob, keybloblen, algo, algolen, line, NULL);