KUTIL_INVALIDATE(3) Library Functions Manual KUTIL_INVALIDATE(3)

kutil_invalidateinvalidate a kcgi input pair

library “libkcgi”

#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>

void
kutil_invalidate(struct kreq *req, struct kpair *kp);

The () function marks the input pair kp as invalid, moving it from a req->cookiemap or req->fieldmap bucket into the corresponding req->cookienmap or req->fieldnmap bucket. It also resets kp->type to KPAIR__MAX, zeroes kp->parsed, and sets kp->state to KPAIR_INVALID.

kcgi(3), khttp_parse(3), kvalid_string(3)

These functions were written by Kristaps Dzonsons <kristaps@bsd.lv>.

April 19, 2018 OpenBSD 6.7