Lines Matching defs:key

59 		 * to ensure we are always filling the 16 byte key.
61 unsigned char key[16];
62 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
63 strlcat((char *)key, " key of a raw hashtable!!", sizeof(key));
64 result = isc_ht_add(ht, key, 16, (void *) i);
69 unsigned char key[16];
71 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
72 strlcat((char *)key, " key of a raw hashtable!!", sizeof(key));
73 result = isc_ht_find(ht, key, 16, &f);
79 unsigned char key[16];
80 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
81 strlcat((char *)key, " key of a raw hashtable!!", sizeof(key));
82 result = isc_ht_add(ht, key, 16, (void *) i);
87 char key[64];
89 * Note: the key size is now strlen(key) which is bigger
92 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
93 strlcat((char *)key, " key of a raw hashtable!!", sizeof(key));
94 result = isc_ht_add(ht, (const unsigned char *) key,
95 strlen(key), (void *) i);
100 unsigned char key[16];
105 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
106 strlcat((char *)key, " KEY of a raw hashtable!!", sizeof(key));
107 result = isc_ht_find(ht, key, 16, &f);
113 char key[64];
115 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
116 strlcat((char *)key, " key of a raw hashtable!!", sizeof(key));
117 result = isc_ht_find(ht, (const unsigned char *) key,
118 strlen(key), &f);
124 unsigned char key[16];
126 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
127 strlcat((char *)key, " key of a raw hashtable!!", sizeof(key));
128 result = isc_ht_delete(ht, key, 16);
130 result = isc_ht_find(ht, key, 16, &f);
136 unsigned char key[16];
140 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
141 strlcat((char *)key, " KEY of a raw hashtable!!", sizeof(key));
142 result = isc_ht_add(ht, key, 16, (void *) i);
147 char key[64];
149 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
150 strlcat((char *)key, " key of a raw hashtable!!", sizeof(key));
151 result = isc_ht_delete(ht, (const unsigned char *) key,
152 strlen(key));
154 result = isc_ht_find(ht, (const unsigned char *) key,
155 strlen(key), &f);
162 unsigned char key[16];
167 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
168 strlcat((char *)key, " KEY of a raw hashtable!!", sizeof(key));
169 result = isc_ht_find(ht, key, 16, &f);
175 unsigned char key[16];
177 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
178 strlcat((char *)key, " key of a raw hashtable!!", sizeof(key));
179 result = isc_ht_find(ht, key, 16, &f);
197 unsigned char key[16];
211 * so we are always filling the key.
213 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
214 strlcat((char *)key, "key of a raw hashtable!!", sizeof(key));
215 result = isc_ht_add(ht, key, 16, (void *) i);
231 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
232 strlcat((char *)key, "key of a raw hashtable!!", sizeof(key));
233 ATF_REQUIRE_EQ(memcmp(key, tkey, 16), 0);
247 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
248 strlcat((char *)key, "key of a raw hashtable!!", sizeof(key));
249 ATF_REQUIRE_EQ(memcmp(key, tkey, 16), 0);
268 snprintf((char *)key, sizeof(key), "%u", (unsigned int)i);
269 strlcat((char *)key, "key of a raw hashtable!!", sizeof(key));
270 ATF_REQUIRE_EQ(memcmp(key, tkey, 16), 0);