nxt_conf_validation.c (1923:9f268a8a1a2f) nxt_conf_validation.c (1936:953434450ea9)
1
2/*
3 * Copyright (C) Valentin V. Bartenev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include <nxt_conf.h>

--- 194 unchanged lines hidden (view full) ---

203 nxt_conf_value_t *value);
204#endif
205
206
207static nxt_conf_vldt_object_t nxt_conf_vldt_setting_members[];
208static nxt_conf_vldt_object_t nxt_conf_vldt_http_members[];
209static nxt_conf_vldt_object_t nxt_conf_vldt_websocket_members[];
210static nxt_conf_vldt_object_t nxt_conf_vldt_static_members[];
1
2/*
3 * Copyright (C) Valentin V. Bartenev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include <nxt_conf.h>

--- 194 unchanged lines hidden (view full) ---

203 nxt_conf_value_t *value);
204#endif
205
206
207static nxt_conf_vldt_object_t nxt_conf_vldt_setting_members[];
208static nxt_conf_vldt_object_t nxt_conf_vldt_http_members[];
209static nxt_conf_vldt_object_t nxt_conf_vldt_websocket_members[];
210static nxt_conf_vldt_object_t nxt_conf_vldt_static_members[];
211static nxt_conf_vldt_object_t nxt_conf_vldt_client_ip_members[];
211#if (NXT_TLS)
212static nxt_conf_vldt_object_t nxt_conf_vldt_tls_members[];
213static nxt_conf_vldt_object_t nxt_conf_vldt_session_members[];
214#endif
215static nxt_conf_vldt_object_t nxt_conf_vldt_match_members[];
216static nxt_conf_vldt_object_t nxt_conf_vldt_python_target_members[];
217static nxt_conf_vldt_object_t nxt_conf_vldt_php_common_members[];
218static nxt_conf_vldt_object_t nxt_conf_vldt_php_options_members[];

--- 127 unchanged lines hidden (view full) ---

346 {
347 .name = nxt_string("pass"),
348 .type = NXT_CONF_VLDT_STRING,
349 .validator = nxt_conf_vldt_pass,
350 }, {
351 .name = nxt_string("application"),
352 .type = NXT_CONF_VLDT_STRING,
353 .validator = nxt_conf_vldt_app_name,
212#if (NXT_TLS)
213static nxt_conf_vldt_object_t nxt_conf_vldt_tls_members[];
214static nxt_conf_vldt_object_t nxt_conf_vldt_session_members[];
215#endif
216static nxt_conf_vldt_object_t nxt_conf_vldt_match_members[];
217static nxt_conf_vldt_object_t nxt_conf_vldt_python_target_members[];
218static nxt_conf_vldt_object_t nxt_conf_vldt_php_common_members[];
219static nxt_conf_vldt_object_t nxt_conf_vldt_php_options_members[];

--- 127 unchanged lines hidden (view full) ---

347 {
348 .name = nxt_string("pass"),
349 .type = NXT_CONF_VLDT_STRING,
350 .validator = nxt_conf_vldt_pass,
351 }, {
352 .name = nxt_string("application"),
353 .type = NXT_CONF_VLDT_STRING,
354 .validator = nxt_conf_vldt_app_name,
355 }, {
356 .name = nxt_string("client_ip"),
357 .type = NXT_CONF_VLDT_OBJECT,
358 .validator = nxt_conf_vldt_object,
359 .u.members = nxt_conf_vldt_client_ip_members
354 },
355
356#if (NXT_TLS)
357 {
358 .name = nxt_string("tls"),
359 .type = NXT_CONF_VLDT_OBJECT,
360 .validator = nxt_conf_vldt_object,
361 .u.members = nxt_conf_vldt_tls_members,
362 },
363#endif
364
365 NXT_CONF_VLDT_END
366};
367
368
360 },
361
362#if (NXT_TLS)
363 {
364 .name = nxt_string("tls"),
365 .type = NXT_CONF_VLDT_OBJECT,
366 .validator = nxt_conf_vldt_object,
367 .u.members = nxt_conf_vldt_tls_members,
368 },
369#endif
370
371 NXT_CONF_VLDT_END
372};
373
374
375static nxt_conf_vldt_object_t nxt_conf_vldt_client_ip_members[] = {
376 {
377 .name = nxt_string("source"),
378 .type = NXT_CONF_VLDT_STRING | NXT_CONF_VLDT_ARRAY,
379 .validator = nxt_conf_vldt_match_addrs,
380 .flags = NXT_CONF_VLDT_REQUIRED
381 }, {
382 .name = nxt_string("header"),
383 .type = NXT_CONF_VLDT_STRING,
384 .flags = NXT_CONF_VLDT_REQUIRED
385 }, {
386 .name = nxt_string("recursive"),
387 .type = NXT_CONF_VLDT_BOOLEAN,
388 },
389
390 NXT_CONF_VLDT_END
391};
392
393
369#if (NXT_TLS)
370
371static nxt_conf_vldt_object_t nxt_conf_vldt_tls_members[] = {
372 {
373 .name = nxt_string("certificate"),
374 .type = NXT_CONF_VLDT_STRING | NXT_CONF_VLDT_ARRAY,
375 .flags = NXT_CONF_VLDT_REQUIRED,
376 .validator = nxt_conf_vldt_certificate,

--- 2440 unchanged lines hidden ---
394#if (NXT_TLS)
395
396static nxt_conf_vldt_object_t nxt_conf_vldt_tls_members[] = {
397 {
398 .name = nxt_string("certificate"),
399 .type = NXT_CONF_VLDT_STRING | NXT_CONF_VLDT_ARRAY,
400 .flags = NXT_CONF_VLDT_REQUIRED,
401 .validator = nxt_conf_vldt_certificate,

--- 2440 unchanged lines hidden ---