validate_context_set
Name
validate_context_set — Create or set a validation context keypair determined by key
Synopsis
#include "validate.h"
| void **validate_context_set** (
| vctx, | |
| | which, | |
| | key, | |
| | value)
; | |
validate_context * <var class="pdparam">vctx</var>
;
int <var class="pdparam">which</var>
;
const char * <var class="pdparam">key</var>
;
const char * <var class="pdparam">value</var>
;
Description
Create or set a validation context keypair determined by key
.
- vctx
-
The validation context. For documentation of this data structure see “validate_context”.
- which
-
An integer, typically
VCTX_MESS
orVCTX_CONN
, which determines which dictionary to consult: the connection context or the message context dictionary. - key
-
The key to create or set.
- value
-
The associated value.
This function returns void.
Note
If either key
or value
is NULL
, this function will log something like this:
It is legal to call this function in any thread.