Lines Matching refs:ctx

346 cb_dir(struct lejp_ctx *ctx, char reason)
349 (struct per_vhost_data__lws_acme_client *)ctx->user;
351 if (reason == LEJPCB_VAL_STR_START && ctx->path_match) {
354 s->dest = s->ac->urls[ctx->path_match - 1];
358 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match)
361 if (s->pos + ctx->npos > s->len) {
366 memcpy(s->dest + s->pos, ctx->buf, ctx->npos);
367 s->pos += ctx->npos;
397 cb_order(struct lejp_ctx *ctx, char reason)
399 struct acme_connection *s = (struct acme_connection *)ctx->user;
404 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match)
407 switch (ctx->path_match - 1) {
409 lws_strncpy(s->status, ctx->buf, sizeof(s->status));
419 ctx->buf);
423 ctx->buf);
426 lws_snprintf(s->cert_url, sizeof(s->cert_url), "%s", ctx->buf);
460 cb_authz(struct lejp_ctx *ctx, char reason)
462 struct acme_connection *s = (struct acme_connection *)ctx->user;
470 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match)
473 switch (ctx->path_match - 1) {
483 lws_snprintf(s->detail, sizeof(s->detail), "%s", ctx->buf);
486 lwsl_notice("JAAZ_CHALLENGES_TYPE: %s\n", ctx->buf);
487 s->use = !strcmp(ctx->buf, "http-01");
490 lws_strncpy(s->status, ctx->buf, sizeof(s->status));
493 lwsl_notice("JAAZ_CHALLENGES_URL: %s %d\n", ctx->buf, s->use);
495 lws_strncpy(s->challenge_uri, ctx->buf,
501 lwsl_notice("JAAZ_CHALLENGES_TOKEN: %s %d\n", ctx->buf, s->use);
503 lws_strncpy(s->chall_token, ctx->buf,
532 cb_chac(struct lejp_ctx *ctx, char reason)
534 struct acme_connection *s = (struct acme_connection *)ctx->user;
541 if (!(reason & LEJP_FLAG_CB_IS_VALUE) || !ctx->path_match)
544 switch (ctx->path_match - 1) {
546 if (strcmp(ctx->buf, "http-01"))
550 lws_strncpy(s->status, ctx->buf, sizeof(s->status));
556 lws_strncpy(s->chall_token, ctx->buf, sizeof(s->chall_token));
560 lws_snprintf(s->detail, sizeof(s->detail), "%s", ctx->buf);