Lines Matching defs:args
66 struct jws_cb_args *args = (struct jws_cb_args *)ctx->user;
97 if (*args->temp_len < ctx->npos) {
108 if (!args->jws->map_b64.buf[m]) {
109 args->jws->map_b64.buf[m] = args->temp;
110 args->jws->map_b64.len[m] = 0;
113 memcpy(args->temp, ctx->buf, ctx->npos);
114 args->temp += ctx->npos;
115 *args->temp_len -= ctx->npos;
116 args->jws->map_b64.len[m] += ctx->npos;
119 args->jws->map.buf[m] = args->temp;
122 (const char *)args->jws->map_b64.buf[m],
123 (int)args->jws->map_b64.len[m],
124 (char *)args->temp, *args->temp_len);
126 lwsl_err("%s: b64 decode failed: in len %d, m %d\n", __func__, (int)args->jws->map_b64.len[m], m);
130 args->temp += n;
131 *args->temp_len -= n;
132 args->jws->map.len[m] = (unsigned int)n;
142 struct jws_cb_args args;
146 args.jws = jws;
147 args.temp = temp;
148 args.temp_len = temp_len;
150 lejp_construct(&jctx, lws_jws_json_cb, &args, jws_json,