Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 59) sorted by last modified time

123

/unit/src/
H A Dnxt_var.c93 return nxt_strstr_eq(&lhq->key, &decl->name) ? NXT_OK : NXT_DECLINED; in nxt_var_hash_test()
103 lhq.key = *name; in nxt_var_hash_find()
253 lhq.key.length = sizeof(uint32_t); in nxt_var_cache_value()
254 lhq.key.start = (u_char *) &index; in nxt_var_cache_value()
287 lhq.key = decl[i].name; in nxt_var_register()
288 lhq.key_hash = nxt_djb_hash(lhq.key.start, lhq.key.length); in nxt_var_register()
H A Dnxt_router.c2396 return nxt_strstr_eq(&lhq->key, &app->name) ? NXT_OK : NXT_DECLINED; in nxt_router_apps_hash_test()
2407 lhq.key = app->name; in nxt_router_apps_hash_add()
2419 "\"%V\" is already in hash", &lhq.key); in nxt_router_apps_hash_add()
2433 lhq.key = *name; in nxt_router_apps_hash_get()
H A Dnxt_http_static.c1047 lhq.key = *exten; in nxt_http_static_mtypes_hash_add()
1048 lhq.key_hash = nxt_djb_hash_lowcase(lhq.key.start, lhq.key.length); in nxt_http_static_mtypes_hash_add()
1066 lhq.key = *exten; in nxt_http_static_mtype_get()
1067 lhq.key_hash = nxt_djb_hash_lowcase(lhq.key.start, lhq.key.length); in nxt_http_static_mtype_get()
1086 return nxt_strcasestr_eq(&lhq->key, &mtype->exten) ? NXT_OK : NXT_DECLINED; in nxt_http_static_mtypes_hash_test()
H A Dnxt_http_js.c151 njs_str_t key; in nxt_http_js_ext_get_arg() local
162 rc = njs_vm_prop_name(vm, prop, &key); in nxt_http_js_ext_get_arg()
178 if (key.length == nv->name_length in nxt_http_js_ext_get_arg()
179 && memcmp(key.start, nv->name, nv->name_length) == 0) in nxt_http_js_ext_get_arg()
197 njs_str_t key; in nxt_http_js_ext_get_header() local
207 rc = njs_vm_prop_name(vm, prop, &key); in nxt_http_js_ext_get_header()
215 if (key.length == f->name_length in nxt_http_js_ext_get_header()
216 && memcmp(key.start, f->name, f->name_length) == 0) in nxt_http_js_ext_get_header()
235 njs_str_t key; in nxt_http_js_ext_get_cookie() local
246 rc = njs_vm_prop_name(vm, prop, &key); in nxt_http_js_ext_get_cookie()
[all …]
H A Dnxt_conf_validation.c554 nxt_str_t key; in nxt_conf_vldt_ticket_key_element() local
561 nxt_conf_get_string(value, &key); in nxt_conf_vldt_ticket_key_element()
563 ret = nxt_base64_decode(NULL, key.start, key.length); in nxt_conf_vldt_ticket_key_element()
566 "key \"%V\".", &key); in nxt_conf_vldt_ticket_key_element()
572 ret, &key); in nxt_conf_vldt_ticket_key_element()
H A Dnxt_openssl.c456 EVP_PKEY *key; local
517 key = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL);
518 if (key == NULL) {
522 if (SSL_CTX_use_PrivateKey(ctx, key) == 1) {
526 EVP_PKEY_free(key);
971 return nxt_strstr_eq(&lhq->key, &item->name) ? NXT_OK : NXT_DECLINED;
999 lhq.key = item->name;
1121 lhq.key = *sn;
H A Dnxt_http_parse.c1164 if (nxt_strcasestr_eq(&lhq->key, &field->name)) { in nxt_http_field_hash_test()
1184 uint32_t key; in nxt_http_fields_hash() local
1194 key = NXT_HTTP_FIELD_HASH_INIT; in nxt_http_fields_hash()
1199 key = nxt_http_field_hash_char(key, ch); in nxt_http_fields_hash()
1202 lhq.key_hash = nxt_http_field_hash_end(key) & 0xFFFF; in nxt_http_fields_hash()
1203 lhq.key = *name; in nxt_http_fields_hash()
1222 uint32_t key, mask; in nxt_http_fields_hash_collisions() local
1239 key = NXT_HTTP_FIELD_HASH_INIT; in nxt_http_fields_hash_collisions()
1244 key = nxt_http_field_hash_char(key, ch); in nxt_http_fields_hash_collisions()
1247 lhq.key_hash = nxt_http_field_hash_end(key) & mask; in nxt_http_fields_hash_collisions()
H A Dnxt_conf.c1669 nxt_conf_get_string(&member->name, &lhq.key); in nxt_conf_object_hash_add()
1671 lhq.key_hash = nxt_djb_hash(lhq.key.start, lhq.key.length); in nxt_conf_object_hash_add()
1691 return nxt_strstr_eq(&lhq->key, &str) ? NXT_OK : NXT_DECLINED; in nxt_conf_object_hash_test()
H A Dnxt_application.c1117 qpid = (nxt_pid_t *) lhq->key.start; in nxt_proto_lvlhsh_isolated_pid_test()
1139 lhq->key.length = sizeof(nxt_pid_t); in nxt_proto_process_lhq_pid()
1140 lhq->key.start = (u_char *) pid; in nxt_proto_process_lhq_pid()
H A Dnxt_unit.c4418 if (lhq->key.length == sizeof(pid_t) in nxt_unit_lvlhsh_pid_test()
4419 && *(pid_t *) lhq->key.start == process->pid) in nxt_unit_lvlhsh_pid_test()
4440 lhq->key.length = sizeof(*pid); in nxt_unit_process_lhq_pid()
4441 lhq->key.start = (u_char *) pid; in nxt_unit_process_lhq_pid()
6369 port_id = (nxt_unit_port_hash_id_t *) lhq->key.start; in nxt_unit_port_hash_test()
6411 lhq->key.length = sizeof(nxt_unit_port_hash_id_t); in nxt_unit_port_hash_lhq()
6412 lhq->key.start = (u_char *) port_hash_id; in nxt_unit_port_hash_lhq()
6507 lhq.key.length = sizeof(*stream); in nxt_unit_request_hash_add()
6508 lhq.key.start = (u_char *) stream; in nxt_unit_request_hash_add()
6543 lhq.key.length = sizeof(stream); in nxt_unit_request_hash_find()
[all …]
H A Dnxt_runtime.c1435 if (lhq->key.length == sizeof(nxt_pid_t) in nxt_runtime_lvlhsh_pid_test()
1436 && *(nxt_pid_t *) lhq->key.start == process->pid) in nxt_runtime_lvlhsh_pid_test()
1456 lhq->key.length = sizeof(*pid); in nxt_runtime_process_lhq_pid()
1457 lhq->key.start = (u_char *) pid; in nxt_runtime_process_lhq_pid()
H A Dnxt_websocket_accept.c54 nxt_websocket_accept(u_char *accept, const void *key) in nxt_websocket_accept() argument
61 nxt_sha1_update(&ctx, key, 24); in nxt_websocket_accept()
H A Dnxt_port_socket.c1040 frag_key = (nxt_port_frag_key_t *) lhq->key.start; in nxt_port_lvlhsh_frag_test()
1042 if (lhq->key.length == sizeof(nxt_port_frag_key_t) in nxt_port_lvlhsh_frag_test()
1098 lhq.key.length = sizeof(nxt_port_frag_key_t); in nxt_port_frag_start()
1099 lhq.key.start = (u_char *) &frag_key; in nxt_port_frag_start()
1148 lhq.key.length = sizeof(nxt_port_frag_key_t); in nxt_port_frag_find()
1149 lhq.key.start = (u_char *) &frag_key; in nxt_port_frag_find()
H A Dnxt_http_parse.h144 lhq.key.length = field->name_length; in nxt_http_field_process()
145 lhq.key.start = field->name; in nxt_http_field_process()
H A Dnxt_port_rpc.c75 lhq->key.length = sizeof(*stream); in nxt_port_rpc_lhq_stream()
76 lhq->key.start = (u_char *) stream; in nxt_port_rpc_lhq_stream()
85 lhq->key.length = sizeof(*peer); in nxt_port_rpc_lhq_peer()
86 lhq->key.start = (u_char *) peer; in nxt_port_rpc_lhq_peer()
H A Dnxt_thread.h61 nxt_atomic_t key; member
75 pthread_getspecific((pthread_key_t) tsd->key)
H A Dnxt_lvlhsh.h91 nxt_str_t key; member
H A Dnxt_lvlhsh.c154 uint32_t key, nxt_uint_t nlvl);
212 slot = lvl[key & mask]; in nxt_lvlhsh_level_find()
270 uint32_t key; in nxt_lvlhsh_insert() local
274 key = lhq->key_hash; in nxt_lvlhsh_insert()
323 slot = &lvl[key & mask]; in nxt_lvlhsh_level_insert()
326 key >>= shift; in nxt_lvlhsh_level_insert()
494 q.key_hash = key; in nxt_lvlhsh_convert_bucket_to_level()
524 slot = &lvl[key & mask]; in nxt_lvlhsh_level_convertion_insert()
551 uint32_t key, nxt_int_t nlvl) in nxt_lvlhsh_bucket_convertion_insert() argument
656 slot = &lvl[key & mask]; in nxt_lvlhsh_level_delete()
[all …]
/unit/
H A DSECURITY.txt10 Encryption: https://nginx.org/keys/maxim.key
11 Encryption: https://nginx.org/keys/sb.key
12 Encryption: https://nginx.org/keys/thresh.key
/unit/src/python/
H A Dnxt_python_asgi.c222 const char *key; in nxt_python_asgi_ctx_data_alloc() member
269 obj = PyObject_GetAttrString(loop, handlers[i].key); in nxt_python_asgi_ctx_data_alloc()
272 handlers[i].key); in nxt_python_asgi_ctx_data_alloc()
280 handlers[i].key); in nxt_python_asgi_ctx_data_alloc()
587 #define SET_ITEM(dict, key, value) \ in nxt_py_asgi_create_http_scope() argument
588 if (nxt_slow_path(PyDict_SetItem(dict, nxt_py_ ## key ## _str, value) \ in nxt_py_asgi_create_http_scope()
592 #dict "." #key "' item"); \ in nxt_py_asgi_create_http_scope()
/unit/auto/
H A Dthreads193 __thread int key;
198 key = 0x9abcdef0;
206 key = 0x12345678;
211 if (key != 0x12345678)
231 pthread_key_t key = -1;
233 if (pthread_key_create(&key, NULL))
235 if (pthread_setspecific(key, (void *) 0x12345678))
237 if (pthread_getspecific(key) != (void *) 0x12345678)
/unit/test/unit/applications/
H A Dwebsockets.py24 def key(self): member in TestApplicationWebsocket
28 def accept(self, key): argument
29 sha1 = hashlib.sha1((key + GUID).encode()).digest()
33 key = None
36 key = self.key()
41 'Sec-WebSocket-Key': key,
63 return (resp, sock, key)
H A Dproto.py51 for key in [
58 if key in kwargs:
59 app_conf[key] = kwargs[key]
/unit/test/
H A Dtest_routing.py1527 socks.sort(key=lambda sock: sock[1])
1548 socks.sort(key=lambda sock: sock[1])
/unit/src/test/
H A Dnxt_rbtree1_test.c81 key = 0; in nxt_rbtree1_test()
84 key = nxt_murmur_hash2(&key, sizeof(uint32_t)); in nxt_rbtree1_test()
86 keys[i] = key; in nxt_rbtree1_test()
87 nodes[i].key = key; in nxt_rbtree1_test()
167 p = (node->key < temp->key) ? &temp->left : &temp->right; in nxt_rbtree1_test_insert_value()
193 if (node1->key < node2->key) { in nxt_rbtree1_test_compare()
197 if (node1->key == node2->key) { in nxt_rbtree1_test_compare()
267 uint32_t key; in nxt_rbtree1_mb_start() local
280 key = 0; in nxt_rbtree1_mb_start()
283 key = nxt_murmur_hash2(&key, sizeof(uint32_t)); in nxt_rbtree1_mb_start()
[all …]

123