Lines Matching refs:secreq
814 struct sec_req_ctx *secreq,
822 if (secreq->parsed_url.fragment != NULL) {
825 secreq->parsed_url.fragment);
829 if (secreq->parsed_url.userinfo != NULL) {
832 secreq->parsed_url.userinfo);
837 if (secreq->parsed_url.query != NULL) {
838 ret = strcmp(secreq->parsed_url.query, "type=simple");
842 secreq->parsed_url.query);
853 if (strncmp(secreq->mapped_path,
856 secreq->mapped_path + (sizeof(SEC_BASEPATH) - 1));
859 } else if (strncmp(secreq->mapped_path,
862 secreq->mapped_path + (sizeof(SEC_KCM_BASEPATH) - 1));
896 struct sec_req_ctx *secreq;
902 struct sec_req_ctx *secreq)
921 state->secreq = secreq;
931 if (sec_req_has_header(secreq, "Content-Type",
935 } else if (sec_req_has_header(secreq, "Content-Type",
946 ret = local_secrets_map_path(state, lctx, secreq, &lc_req);
952 switch (secreq->method) {
983 if (secreq->body.length == 0) {
991 ret = sec_json_to_simple_secret(state, secreq->body.data,
994 secret = sss_base64_encode(state, (uint8_t *)secreq->body.data,
995 secreq->body.length);
1030 ret = sec_http_reply_with_body(secreq, &secreq->reply, STATUS_200,
1033 ret = sec_http_status_reply(secreq, &secreq->reply, STATUS_200);