Lines Matching refs:npos
525 if (a->count + ctx->npos >= MAX_CERT_TEMP) { in lws_ss_policy_parser_cb()
529 inl = ctx->npos; in lws_ss_policy_parser_cb()
536 if (inl != ctx->npos) { in lws_ss_policy_parser_cb()
558 ctx->npos, ctx->buf); in lws_ss_policy_parser_cb()
561 if (!strncmp(x->vhost_name, ctx->buf, ctx->npos)) { in lws_ss_policy_parser_cb()
569 lws_strnncpy(dotstar, ctx->buf, ctx->npos, sizeof(dotstar)); in lws_ss_policy_parser_cb()
607 if (!strncmp(x->vhost_name, ctx->buf, ctx->npos) && in lws_ss_policy_parser_cb()
608 !x->vhost_name[ctx->npos]) { in lws_ss_policy_parser_cb()
645 lws_strnncpy(dotstar, ctx->buf, ctx->npos, sizeof(dotstar)); in lws_ss_policy_parser_cb()
715 if (!strncmp((*pin)->name, ctx->buf, ctx->npos)) { in lws_ss_policy_parser_cb()
833 if (!strncmp(ctx->buf, bot->name, ctx->npos)) { in lws_ss_policy_parser_cb()
847 if (!strncmp(ctx->buf, ts->name, ctx->npos)) { in lws_ss_policy_parser_cb()
853 lws_strnncpy(dotstar, ctx->buf, ctx->npos, sizeof(dotstar)); in lws_ss_policy_parser_cb()
864 lws_ss_policy_find_auth_by_name(a, ctx->buf, ctx->npos); in lws_ss_policy_parser_cb()
866 lws_strnncpy(dotstar, ctx->buf, ctx->npos, sizeof(dotstar)); in lws_ss_policy_parser_cb()
876 sizeof(lws_ss_metadata_t) + ctx->npos + in lws_ss_policy_parser_cb()
889 memcpy(q, ctx->buf, ctx->npos); in lws_ss_policy_parser_cb()
898 lws_http_string_to_known_header(ctx->buf, ctx->npos); in lws_ss_policy_parser_cb()
904 a->curr[LTY_POLICY].p->metadata->value_length = ctx->npos; in lws_ss_policy_parser_cb()
1077 if (strlen(protonames[n]) == ctx->npos && in lws_ss_policy_parser_cb()
1078 !strncmp(ctx->buf, protonames[n], ctx->npos)) in lws_ss_policy_parser_cb()
1083 lws_strnncpy(dotstar, ctx->buf, ctx->npos, sizeof(dotstar)); in lws_ss_policy_parser_cb()
1098 extant = lwsac_scan_extant(a->ac, (uint8_t *)ctx->buf, (size_t)ctx->npos, 1); in lws_ss_policy_parser_cb()
1104 *pp = lwsac_use_backfill(&a->ac, (size_t)(ctx->npos + 1), POL_AC_GRAIN); in lws_ss_policy_parser_cb()
1107 memcpy(*pp, ctx->buf, ctx->npos); in lws_ss_policy_parser_cb()
1108 (*pp)[ctx->npos] = '\0'; in lws_ss_policy_parser_cb()