validate_context_set

March 26, 2020 Contributors

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.

Parameters

vctx

The validation context. For documentation of this data structure see “validate_context”.

which

An integer, typically VCTX_MESS or VCTX_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.

Return Values

This function returns void.

Note

If either key or value is NULL, this function will log something like this:

"Attempt to set null key or value in validate context connection dictionary." Threading

It is legal to call this function in any thread.

See Also

validate_context_exists, validate_context_exists_and_get, validate_context_get, validate_context_delete, validate_context_init, and validate_context_destroy.