Mercurial > dropbear
comparison svr-authpubkeyoptions.c @ 502:43bbe17d6ba0
- Add Counter Mode support
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 29 Sep 2008 13:53:31 +0000 |
parents | df7f7da7f6e4 |
children | b321aeb57c64 |
comparison
equal
deleted
inserted
replaced
501:d58c478bd399 | 502:43bbe17d6ba0 |
---|---|
103 } | 103 } |
104 | 104 |
105 /* helper for svr_add_pubkey_options. returns DROPBEAR_SUCCESS if the option is matched, | 105 /* helper for svr_add_pubkey_options. returns DROPBEAR_SUCCESS if the option is matched, |
106 and increments the options_buf */ | 106 and increments the options_buf */ |
107 static int match_option(buffer *options_buf, const char *opt_name) { | 107 static int match_option(buffer *options_buf, const char *opt_name) { |
108 const int len = strlen(opt_name); | 108 const unsigned int len = strlen(opt_name); |
109 if (options_buf->len - options_buf->pos < len) { | 109 if (options_buf->len - options_buf->pos < len) { |
110 return DROPBEAR_FAILURE; | 110 return DROPBEAR_FAILURE; |
111 } | 111 } |
112 if (strncasecmp(buf_getptr(options_buf, len), opt_name, len) == 0) { | 112 if (strncasecmp(buf_getptr(options_buf, len), opt_name, len) == 0) { |
113 buf_incrpos(options_buf, len); | 113 buf_incrpos(options_buf, len); |