Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 57) sorted by relevance

123

/unit/src/test/
H A Dnxt_lvlhsh_test.c44 lhq.key_hash = key; in nxt_lvlhsh_test_add()
47 lhq.key.start = (u_char *) &key; in nxt_lvlhsh_test_add()
69 uintptr_t key) in nxt_lvlhsh_test_get() argument
75 lhq.key.start = (u_char *) &key; in nxt_lvlhsh_test_get()
101 lhq.key.start = (u_char *) &key; in nxt_lvlhsh_test_delete()
156 key = 0; in nxt_lvlhsh_test()
158 key = nxt_murmur_hash2(&key, sizeof(uint32_t)); in nxt_lvlhsh_test()
167 key = 0; in nxt_lvlhsh_test()
169 key = nxt_murmur_hash2(&key, sizeof(uint32_t)); in nxt_lvlhsh_test()
216 key = 0; in nxt_lvlhsh_test()
[all …]
H A Dnxt_rbtree_test.c13 uint32_t key; member
27 uint32_t key, *keys; in nxt_rbtree_test() local
53 key = 0; in nxt_rbtree_test()
56 key = nxt_murmur_hash2(&key, sizeof(uint32_t)); in nxt_rbtree_test()
58 keys[i] = key; in nxt_rbtree_test()
59 items[i].key = key; in nxt_rbtree_test()
149 return nxt_rbtree_test_compare(item1->key, item2->key); in nxt_rbtree_test_comparison()
205 uint32_t key; in nxt_rbtree_mb_start() local
218 key = 0; in nxt_rbtree_mb_start()
221 key = nxt_murmur_hash2(&key, sizeof(uint32_t)); in nxt_rbtree_mb_start()
[all …]
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 …]
H A Dnxt_rbtree1.c104 p = (node->key < temp->key) ? &temp->left : &temp->right; in nxt_rbtree1_insert_value()
138 p = ((nxt_rbtree1_key_int_t) (node->key - temp->key) < 0) in nxt_rbtree1_insert_timer_value()
193 node->key = 0; in nxt_rbtree1_delete()
249 node->key = 0; in nxt_rbtree1_delete()
/unit/src/
H A Dnxt_random.c59 } key; in nxt_random_stir() local
63 n = getrandom(&key, NXT_RANDOM_KEY_SIZE, 0); in nxt_random_stir()
69 n = syscall(SYS_getrandom, &key, NXT_RANDOM_KEY_SIZE, 0); in nxt_random_stir()
75 if (getentropy(&key, NXT_RANDOM_KEY_SIZE) == 0) { in nxt_random_stir()
89 n = read(fd, &key, NXT_RANDOM_KEY_SIZE); in nxt_random_stir()
99 key.value[0] ^= tv.tv_usec; in nxt_random_stir()
100 key.value[1] ^= tv.tv_sec; in nxt_random_stir()
101 key.value[2] ^= nxt_pid; in nxt_random_stir()
105 nxt_random_add(r, key.bytes, NXT_RANDOM_KEY_SIZE); in nxt_random_stir()
118 nxt_random_add(nxt_random_t *r, const u_char *key, uint32_t len) in nxt_random_add() argument
[all …]
H A Dnxt_thread.c24 pthread_key_t key; in nxt_thread_init_data() local
26 while ((nxt_atomic_int_t) tsd->key < 0) { in nxt_thread_init_data()
32 if (nxt_atomic_cmp_set(&tsd->key, -1, -2)) { in nxt_thread_init_data()
34 err = pthread_key_create(&key, nxt_thread_key_dtor); in nxt_thread_init_data()
40 tsd->key = (nxt_atomic_t) key; in nxt_thread_init_data()
42 nxt_main_log_debug("pthread_key_create(): %A", tsd->key); in nxt_thread_init_data()
46 if (pthread_getspecific((pthread_key_t) tsd->key) != NULL) { in nxt_thread_init_data()
55 err = pthread_setspecific((pthread_key_t) tsd->key, p); in nxt_thread_init_data()
60 nxt_main_log_alert("pthread_setspecific(%A) failed %E", tsd->key, err); in nxt_thread_init_data()
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 …]
H A Dnxt_upstream_source.c32 lhq.key.len = unv->len; in nxt_upstream_header_hash_add()
33 lhq.key.data = (u_char *) unv->name; in nxt_upstream_header_hash_add()
57 if (lhq->key.len == unv->len in nxt_upstream_header_hash_test()
58 && nxt_memcasecmp(lhq->key.data, unv->name, unv->len) == 0) in nxt_upstream_header_hash_test()
H A Dnxt_polarssl.c17 rsa_context key; member
69 rsa_init(&ctx->key, RSA_PKCS_V15, 0); in nxt_polarssl_server_init()
71 n = x509parse_keyfile(&ctx->key, conf->certificate_key, NULL); in nxt_polarssl_server_init()
79 ssl_set_own_cert(&ctx->ssl, &ctx->certificate, &ctx->key); in nxt_polarssl_server_init()
H A Dnxt_port_hash.c24 pid_port_id = (nxt_pid_port_id_t *) lhq->key.start; in nxt_port_hash_test()
26 if (lhq->key.length == sizeof(nxt_pid_port_id_t) in nxt_port_hash_test()
55 lhq->key.length = sizeof(nxt_pid_port_id_t); in nxt_port_hash_lhq()
56 lhq->key.start = (u_char *) pid_port; in nxt_port_hash_lhq()
H A Dnxt_cert.c23 EVP_PKEY *key; member
136 key = NULL; in nxt_cert_bio()
221 if (key != NULL) { in nxt_cert_bio()
228 cert->key = key; in nxt_cert_bio()
254 if (cert->key == NULL) { in nxt_cert_bio()
399 lhq.key = *name; in nxt_cert_info_save()
430 lhq.key = *name; in nxt_cert_info_get()
497 EVP_PKEY *key; in nxt_cert_details() local
518 if (cert->key != NULL) { in nxt_cert_details()
519 key = cert->key; in nxt_cert_details()
[all …]
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_file_cache.c59 if (nxt_strmem_eq(&hkey->key, node->key_data, node->key_len)) { in nxt_file_cache_lvlhsh_test()
74 hkey.key.len = q->key_len; in nxt_file_cache_query()
75 hkey.key.data = q->key_data; in nxt_file_cache_query()
408 hkey.key.len = node->key_len;
409 hkey.key.data = node->key_data;
482 hkey.key.len = node->key_len; in nxt_cache_node_release_locked()
483 hkey.key.data = node->key_data; in nxt_cache_node_release_locked()
H A Dnxt_var.c116 return nxt_strstr_eq(&lhq->key, &decl->name) ? NXT_OK : NXT_DECLINED; in nxt_var_hash_test()
126 lhq.key = *name; in nxt_var_hash_find()
150 lhq.key.length = sizeof(uint32_t); in nxt_var_cache_find()
151 lhq.key.start = (u_char *) &index; in nxt_var_cache_find()
170 lhq.key.length = sizeof(uint32_t); in nxt_var_cache_add()
171 lhq.key.start = (u_char *) &index; in nxt_var_cache_add()
190 lhq.key = decl[i].name; in nxt_var_register()
191 lhq.key_hash = nxt_djb_hash(lhq.key.start, lhq.key.length); in nxt_var_register()
H A Dnxt_websocket.h18 NXT_EXPORT void nxt_websocket_accept(u_char *accept, const void *key);
/unit/go/
H A Dport.go27 key port_key member
41 res := port_registry_.m[key]
54 old := port_registry_.m[p.key]
57 port_registry_.m[p.key] = p
100 key: port_key{
129 key := port_key{
136 delete(port_registry_.m, key)
146 key := port_key{
151 p := find_port(key)
174 key := port_key{
[all …]
/unit/test/unit/applications/lang/
H A Druby.py31 for key in [
34 if key in kwargs:
35 app[key] = kwargs[key]
/unit/pkg/deb/debian.module/
H A Dunit.example-jsc-app7 String key = (String) keys.nextElement();
8 String value = (String) p.get(key);
9 out.println(" " + key + " : " + value);
/unit/pkg/rpm/rpmbuild/SOURCES/
H A Dunit.example-jsc-app7 String key = (String) keys.nextElement();
8 String value = (String) p.get(key);
9 out.println(" " + key + " : " + value);
/unit/test/unit/applications/
H A Dproto.py51 for key in [
58 if key in kwargs:
59 app_conf[key] = kwargs[key]
H A Dtls.py39 def certificate_load(self, crt, key=None): argument
40 if key is None:
41 key = crt
43 key_path = option.temp_dir + '/' + key + '.key'
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,
64 return (resp, sock, key)
/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/src/java/nginx/unit/websocket/
H A DAuthenticator.java59 String key = m.group(1); in parseWWWAuthenticateHeader() local
63 challenge.put(key, qtedValue != null ? qtedValue : value); in parseWWWAuthenticateHeader()
/unit/src/nodejs/unit-http/
H A Dwebsocket_request.js121 this.key = request.headers['sec-websocket-key'];
122 if (!this.key) {
231 var key = pair.substr(0, eq_idx).trim();
240 name: key,
470 for (var key in extraHeaders) {
471 var sanitizedValue = extraHeaders[key].toString().replace(headerSanitizeRegExp, '');
472 var sanitizedKey = key.replace(headerSanitizeRegExp, '');

123