aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-03-08 17:18:22 -0900
committerDavid M. Syzdek <david@syzdek.net>2022-03-08 17:18:22 -0900
commitcc98d826f549fb77b9f4a90afdea726cf15a39f3 (patch)
treeec8f7f4f73d2ea1b08b7a900a1056cfe18e0ad98
parent71b870295da0a73e1962a18f6ce1f8d2805f1542 (diff)
downloadtinyrad-cc98d826f549fb77b9f4a90afdea726cf15a39f3.tar.gz
tinyrad-cc98d826f549fb77b9f4a90afdea726cf15a39f3.tar.bz2
tinyrad-cc98d826f549fb77b9f4a90afdea726cf15a39f3.tar.xz
tinyrad-cc98d826f549fb77b9f4a90afdea726cf15a39f3.zip
tests: replacing our_verbose() with trutils_verbose()
-rw-r--r--include/trutils.h3
-rw-r--r--tests/common.c14
-rw-r--r--tests/common.h1
-rw-r--r--tests/dict-data.c88
-rw-r--r--tests/test-array-queue.c8
-rw-r--r--tests/test-array-sorted.c36
-rw-r--r--tests/test-array-stack.c8
-rw-r--r--tests/test-dict-attrs.c12
-rw-r--r--tests/test-dict-values.c12
-rw-r--r--tests/test-dict-vendors.c10
-rw-r--r--tests/test-oid-str.c16
11 files changed, 95 insertions, 113 deletions
diff --git a/include/trutils.h b/include/trutils.h
index c80487c..0eb94e5 100644
--- a/include/trutils.h
+++ b/include/trutils.h
@@ -140,7 +140,4 @@ trutils_verbose(
140_TINYRAD_F void 140_TINYRAD_F void
141trutils_version( void ); 141trutils_version( void );
142 142
143void our_verbose(unsigned opts, const char * fmt, ...);
144
145
146#endif /* end of header */ 143#endif /* end of header */
diff --git a/tests/common.c b/tests/common.c
index 5f6b648..b028a48 100644
--- a/tests/common.c
+++ b/tests/common.c
@@ -513,20 +513,6 @@ int our_error(unsigned opts, char ** errs, const char * fmt, ...)
513} 513}
514 514
515 515
516void our_verbose(unsigned opts, const char * fmt, ...)
517{
518 va_list args;
519 if (!(opts & TRUTILS_OPT_VERBOSE))
520 return;
521 printf("%s: ", program_name);
522 va_start(args, fmt);
523 vprintf(fmt, args);
524 va_end(args);
525 printf("\n");
526 return;
527}
528
529
530//----------------// 516//----------------//
531// misc functions // 517// misc functions //
532//----------------// 518//----------------//
diff --git a/tests/common.h b/tests/common.h
index 3f95d13..b792059 100644
--- a/tests/common.h
+++ b/tests/common.h
@@ -100,7 +100,6 @@ int our_urldesc_test_good(const char * url, unsigned opts);
100#pragma mark log functions 100#pragma mark log functions
101 101
102int our_error(unsigned opts, char ** errs, const char * fmt, ...); 102int our_error(unsigned opts, char ** errs, const char * fmt, ...);
103void our_verbose(unsigned opts, const char * fmt, ...);
104 103
105 104
106//----------------// 105//----------------//
diff --git a/tests/dict-data.c b/tests/dict-data.c
index 7b280ee..f42bdca 100644
--- a/tests/dict-data.c
+++ b/tests/dict-data.c
@@ -161,13 +161,13 @@ our_dict_diag_attr(
161 161
162 if ((attr_def)) 162 if ((attr_def))
163 { 163 {
164 our_verbose(opts, "Attribute Definition"); 164 trutils_verbose(opts, "Attribute Definition");
165 our_verbose(opts, " Name: %s", attr_def->name); 165 trutils_verbose(opts, " Name: %s", attr_def->name);
166 our_verbose(opts, " Type: %" PRIu8, attr_def->type); 166 trutils_verbose(opts, " Type: %" PRIu8, attr_def->type);
167 our_verbose(opts, " Vendor ID: %" PRIu32, attr_def->vendor_id); 167 trutils_verbose(opts, " Vendor ID: %" PRIu32, attr_def->vendor_id);
168 our_verbose(opts, " Vendor Type: %" PRIu32, attr_def->vendor_type); 168 trutils_verbose(opts, " Vendor Type: %" PRIu32, attr_def->vendor_type);
169 our_verbose(opts, " Data Type: %" PRIu32, attr_def->data_type); 169 trutils_verbose(opts, " Data Type: %" PRIu32, attr_def->data_type);
170 our_verbose(opts, " Flags: 0x%08x", (unsigned)attr_def->flags); 170 trutils_verbose(opts, " Flags: 0x%08x", (unsigned)attr_def->flags);
171 }; 171 };
172 172
173 if ((attr)) 173 if ((attr))
@@ -190,16 +190,16 @@ our_dict_diag_attr(
190 tinyrad_dict_attr_info(attr, TRAD_DICT_OPT_TYPE_OCTS, &attr_type_octets); 190 tinyrad_dict_attr_info(attr, TRAD_DICT_OPT_TYPE_OCTS, &attr_type_octets);
191 tinyrad_dict_attr_info(attr, TRAD_DICT_OPT_LEN_OCTS, &attr_len_octets); 191 tinyrad_dict_attr_info(attr, TRAD_DICT_OPT_LEN_OCTS, &attr_len_octets);
192 tinyrad_dict_attr_info(attr, TRAD_DICT_OPT_REF_COUNT, &attr_ref_count); 192 tinyrad_dict_attr_info(attr, TRAD_DICT_OPT_REF_COUNT, &attr_ref_count);
193 our_verbose(opts, "Attribute Object"); 193 trutils_verbose(opts, "Attribute Object");
194 our_verbose(opts, " Name: %s", (((attr_name)) ? attr_name : "")); 194 trutils_verbose(opts, " Name: %s", (((attr_name)) ? attr_name : ""));
195 our_verbose(opts, " Type: %" PRIu8, attr_type); 195 trutils_verbose(opts, " Type: %" PRIu8, attr_type);
196 our_verbose(opts, " Vendor ID: %" PRIu32, attr_vendor_id); 196 trutils_verbose(opts, " Vendor ID: %" PRIu32, attr_vendor_id);
197 our_verbose(opts, " Vendor Type: %" PRIu32, attr_vendor_type); 197 trutils_verbose(opts, " Vendor Type: %" PRIu32, attr_vendor_type);
198 our_verbose(opts, " Data Type: %" PRIu32, attr_data_type); 198 trutils_verbose(opts, " Data Type: %" PRIu32, attr_data_type);
199 our_verbose(opts, " Flags: 0x%08x", (unsigned)attr_flags); 199 trutils_verbose(opts, " Flags: 0x%08x", (unsigned)attr_flags);
200 our_verbose(opts, " Type Octets: %" PRIu32, attr_type_octets); 200 trutils_verbose(opts, " Type Octets: %" PRIu32, attr_type_octets);
201 our_verbose(opts, " Length Octets: %" PRIu32, attr_len_octets); 201 trutils_verbose(opts, " Length Octets: %" PRIu32, attr_len_octets);
202 our_verbose(opts, " Reference Count: %u", attr_ref_count); 202 trutils_verbose(opts, " Reference Count: %u", attr_ref_count);
203 }; 203 };
204 204
205 return; 205 return;
@@ -222,10 +222,10 @@ our_dict_diag_value(
222 222
223 if ((value_def)) 223 if ((value_def))
224 { 224 {
225 our_verbose(opts, "Value Definition"); 225 trutils_verbose(opts, "Value Definition");
226 our_verbose(opts, " Attribute Name: %s", value_def->attr_name); 226 trutils_verbose(opts, " Attribute Name: %s", value_def->attr_name);
227 our_verbose(opts, " Value Name: %s", value_def->value_name); 227 trutils_verbose(opts, " Value Name: %s", value_def->value_name);
228 our_verbose(opts, " Value Data: %" PRIu64, value_def->data); 228 trutils_verbose(opts, " Value Data: %" PRIu64, value_def->data);
229 }; 229 };
230 230
231 if ((value)) 231 if ((value))
@@ -244,14 +244,14 @@ our_dict_diag_value(
244 tinyrad_dict_value_info(value, TRAD_DICT_OPT_VEND_TYPE, &vendor_type); 244 tinyrad_dict_value_info(value, TRAD_DICT_OPT_VEND_TYPE, &vendor_type);
245 tinyrad_dict_value_info(value, TRAD_DICT_OPT_DATA, &value_data); 245 tinyrad_dict_value_info(value, TRAD_DICT_OPT_DATA, &value_data);
246 tinyrad_dict_value_info(value, TRAD_DICT_OPT_REF_COUNT, &value_ref_count); 246 tinyrad_dict_value_info(value, TRAD_DICT_OPT_REF_COUNT, &value_ref_count);
247 our_verbose(opts, "Value Object"); 247 trutils_verbose(opts, "Value Object");
248 our_verbose(opts, " Value Name: %s", (((value_name)) ? value_name : "")); 248 trutils_verbose(opts, " Value Name: %s", (((value_name)) ? value_name : ""));
249 our_verbose(opts, " Attribute Name: %s", (((attr_name)) ? attr_name : "")); 249 trutils_verbose(opts, " Attribute Name: %s", (((attr_name)) ? attr_name : ""));
250 our_verbose(opts, " Attribute Type: %" PRIu8, value_type); 250 trutils_verbose(opts, " Attribute Type: %" PRIu8, value_type);
251 our_verbose(opts, " Vendor ID: %" PRIu32, vendor_id); 251 trutils_verbose(opts, " Vendor ID: %" PRIu32, vendor_id);
252 our_verbose(opts, " Vendor Type: %" PRIu32, vendor_type); 252 trutils_verbose(opts, " Vendor Type: %" PRIu32, vendor_type);
253 our_verbose(opts, " Value Data: %" PRIu64, value_data); 253 trutils_verbose(opts, " Value Data: %" PRIu64, value_data);
254 our_verbose(opts, " Reference Count: %u", value_ref_count); 254 trutils_verbose(opts, " Reference Count: %u", value_ref_count);
255 }; 255 };
256 256
257 return; 257 return;
@@ -272,11 +272,11 @@ our_dict_diag_vendor(
272 272
273 if ((vendor_def)) 273 if ((vendor_def))
274 { 274 {
275 our_verbose(opts, "Vendor Definition"); 275 trutils_verbose(opts, "Vendor Definition");
276 our_verbose(opts, " Name: %s", vendor_def->name); 276 trutils_verbose(opts, " Name: %s", vendor_def->name);
277 our_verbose(opts, " Vendor ID: %" PRIu32, vendor_def->vendor_id); 277 trutils_verbose(opts, " Vendor ID: %" PRIu32, vendor_def->vendor_id);
278 our_verbose(opts, " Vendor Type: %" PRIu32, vendor_def->vendor_type_octs); 278 trutils_verbose(opts, " Vendor Type: %" PRIu32, vendor_def->vendor_type_octs);
279 our_verbose(opts, " Data Type: %" PRIu32, vendor_def->vendor_len_octs); 279 trutils_verbose(opts, " Data Type: %" PRIu32, vendor_def->vendor_len_octs);
280 }; 280 };
281 281
282 if ((vendor)) 282 if ((vendor))
@@ -291,12 +291,12 @@ our_dict_diag_vendor(
291 tinyrad_dict_vendor_info(vendor, TRAD_DICT_OPT_TYPE_OCTS, &vendor_type_octets); 291 tinyrad_dict_vendor_info(vendor, TRAD_DICT_OPT_TYPE_OCTS, &vendor_type_octets);
292 tinyrad_dict_vendor_info(vendor, TRAD_DICT_OPT_LEN_OCTS, &vendor_len_octets); 292 tinyrad_dict_vendor_info(vendor, TRAD_DICT_OPT_LEN_OCTS, &vendor_len_octets);
293 tinyrad_dict_vendor_info(vendor, TRAD_DICT_OPT_REF_COUNT, &vendor_ref_count); 293 tinyrad_dict_vendor_info(vendor, TRAD_DICT_OPT_REF_COUNT, &vendor_ref_count);
294 our_verbose(opts, "Vendor Object"); 294 trutils_verbose(opts, "Vendor Object");
295 our_verbose(opts, " Name: %s", (((vendor_name)) ? vendor_name : "")); 295 trutils_verbose(opts, " Name: %s", (((vendor_name)) ? vendor_name : ""));
296 our_verbose(opts, " Vendor ID: %" PRIu32, vendor_id); 296 trutils_verbose(opts, " Vendor ID: %" PRIu32, vendor_id);
297 our_verbose(opts, " Type Octets: %" PRIu32, vendor_type_octets); 297 trutils_verbose(opts, " Type Octets: %" PRIu32, vendor_type_octets);
298 our_verbose(opts, " Length Octets: %" PRIu32, vendor_len_octets); 298 trutils_verbose(opts, " Length Octets: %" PRIu32, vendor_len_octets);
299 our_verbose(opts, " Reference Count: %u", vendor_ref_count); 299 trutils_verbose(opts, " Reference Count: %u", vendor_ref_count);
300 }; 300 };
301 301
302 return; 302 return;
@@ -326,7 +326,7 @@ our_dict_initialize(
326 // load builtin/default dictionary objects 326 // load builtin/default dictionary objects
327 if ((opts & TRAD_TEST_DFLT_DICT)) 327 if ((opts & TRAD_TEST_DFLT_DICT))
328 { 328 {
329 our_verbose(opts, "loading default dictionary ..."); 329 trutils_verbose(opts, "loading default dictionary ...");
330 if ((rc = tinyrad_dict_defaults(*dictp, &errs, 0)) != TRAD_SUCCESS) 330 if ((rc = tinyrad_dict_defaults(*dictp, &errs, 0)) != TRAD_SUCCESS)
331 { 331 {
332 our_error(opts, errs, "tinyrad_dict_defaults(): %s", tinyrad_strerror(rc)); 332 our_error(opts, errs, "tinyrad_dict_defaults(): %s", tinyrad_strerror(rc));
@@ -337,7 +337,7 @@ our_dict_initialize(
337 }; 337 };
338 338
339 // load test dictionary vendors 339 // load test dictionary vendors
340 our_verbose(opts, "adding test dictionary vendors ..."); 340 trutils_verbose(opts, "adding test dictionary vendors ...");
341 if ((rc = tinyrad_dict_import(*dictp, test_dict_data_vendors, NULL, NULL, &errs, 0)) != TRAD_SUCCESS) 341 if ((rc = tinyrad_dict_import(*dictp, test_dict_data_vendors, NULL, NULL, &errs, 0)) != TRAD_SUCCESS)
342 { 342 {
343 our_error(opts, errs, "tinyrad_dict_import(vendors): %s", tinyrad_strerror(rc)); 343 our_error(opts, errs, "tinyrad_dict_import(vendors): %s", tinyrad_strerror(rc));
@@ -347,7 +347,7 @@ our_dict_initialize(
347 }; 347 };
348 348
349 // load test dictionary attributes 349 // load test dictionary attributes
350 our_verbose(opts, "adding test dictionary attributes ..."); 350 trutils_verbose(opts, "adding test dictionary attributes ...");
351 if ((rc = tinyrad_dict_import(*dictp, NULL, test_dict_data_attrs, NULL, &errs, 0)) != TRAD_SUCCESS) 351 if ((rc = tinyrad_dict_import(*dictp, NULL, test_dict_data_attrs, NULL, &errs, 0)) != TRAD_SUCCESS)
352 { 352 {
353 our_error(opts, errs, "tinyrad_dict_import(attributes): %s", tinyrad_strerror(rc)); 353 our_error(opts, errs, "tinyrad_dict_import(attributes): %s", tinyrad_strerror(rc));
@@ -357,7 +357,7 @@ our_dict_initialize(
357 }; 357 };
358 358
359 // load test dictionary values 359 // load test dictionary values
360 our_verbose(opts, "adding test dictionary values ..."); 360 trutils_verbose(opts, "adding test dictionary values ...");
361 if ((rc = tinyrad_dict_import(*dictp, NULL, NULL, test_dict_data_values, &errs, 0)) != TRAD_SUCCESS) 361 if ((rc = tinyrad_dict_import(*dictp, NULL, NULL, test_dict_data_values, &errs, 0)) != TRAD_SUCCESS)
362 { 362 {
363 our_error(opts, errs, "tinyrad_dict_import(values): %s", tinyrad_strerror(rc)); 363 our_error(opts, errs, "tinyrad_dict_import(values): %s", tinyrad_strerror(rc));
diff --git a/tests/test-array-queue.c b/tests/test-array-queue.c
index 98547bc..e5b979f 100644
--- a/tests/test-array-queue.c
+++ b/tests/test-array-queue.c
@@ -210,7 +210,7 @@ int main( int argc, char * argv[] )
210 210
211 211
212 // initialize test data 212 // initialize test data
213 our_verbose(opts, "initializing test data ..."); 213 trutils_verbose(opts, "initializing test data ...");
214 memset(data, 0, sizeof(data)); 214 memset(data, 0, sizeof(data));
215 for(len = 0; ((test_strs[len])); len++); 215 for(len = 0; ((test_strs[len])); len++);
216 for(pos = 0; (pos < MY_LIST_LEN); pos++) 216 for(pos = 0; (pos < MY_LIST_LEN); pos++)
@@ -233,7 +233,7 @@ int main( int argc, char * argv[] )
233 233
234 234
235 // loop through test data and add to queue 235 // loop through test data and add to queue
236 our_verbose(opts, "queueing to queue ..."); 236 trutils_verbose(opts, "queueing to queue ...");
237 list = NULL; 237 list = NULL;
238 list_len = 0; 238 list_len = 0;
239 for(x = 0; (x < MY_LIST_LEN); x++) 239 for(x = 0; (x < MY_LIST_LEN); x++)
@@ -254,7 +254,7 @@ int main( int argc, char * argv[] )
254 254
255 255
256 // loop through queue and verify data 256 // loop through queue and verify data
257 our_verbose(opts, "verifing queue ..."); 257 trutils_verbose(opts, "verifing queue ...");
258 if (list_len != ((MY_LIST_LEN / 4) * 3)) 258 if (list_len != ((MY_LIST_LEN / 4) * 3))
259 return(our_error(opts, NULL, "queue length is incorrect")); 259 return(our_error(opts, NULL, "queue length is incorrect"));
260 delta = MY_LIST_LEN - list_len; 260 delta = MY_LIST_LEN - list_len;
@@ -266,7 +266,7 @@ int main( int argc, char * argv[] )
266 266
267 267
268 // dequeue data from queue 268 // dequeue data from queue
269 our_verbose(opts, "dequeueing from queue ..."); 269 trutils_verbose(opts, "dequeueing from queue ...");
270 while (list_len > 0) 270 while (list_len > 0)
271 if (tinyrad_array_dequeue(list, &list_len, sizeof(MyData *)) == NULL) 271 if (tinyrad_array_dequeue(list, &list_len, sizeof(MyData *)) == NULL)
272 return(our_error(opts, NULL, "unable to dequeue from queue")); 272 return(our_error(opts, NULL, "unable to dequeue from queue"));
diff --git a/tests/test-array-sorted.c b/tests/test-array-sorted.c
index a6d277f..8901c8b 100644
--- a/tests/test-array-sorted.c
+++ b/tests/test-array-sorted.c
@@ -279,7 +279,7 @@ int main( int argc, char * argv[] )
279 279
280 280
281 // initialize test data 281 // initialize test data
282 our_verbose(opts, "initializing test data ..."); 282 trutils_verbose(opts, "initializing test data ...");
283 memset(data, 0, sizeof(data)); 283 memset(data, 0, sizeof(data));
284 memset(test, 0, sizeof(test)); 284 memset(test, 0, sizeof(test));
285 for(len = 0; ((test_strs[len])); len++); 285 for(len = 0; ((test_strs[len])); len++);
@@ -303,7 +303,7 @@ int main( int argc, char * argv[] )
303 303
304 304
305 // test searching by value 305 // test searching by value
306 our_verbose(opts, "sorting test data by value ..."); 306 trutils_verbose(opts, "sorting test data by value ...");
307 qsort(test, MY_LIST_LEN, sizeof(MyData *), &my_compare_obj_value); 307 qsort(test, MY_LIST_LEN, sizeof(MyData *), &my_compare_obj_value);
308 opts = opts & ~MY_MASK; 308 opts = opts & ~MY_MASK;
309 if ((my_test_search(opts|MY_OBJ_VALUE, test, MY_LIST_LEN))) 309 if ((my_test_search(opts|MY_OBJ_VALUE, test, MY_LIST_LEN)))
@@ -313,7 +313,7 @@ int main( int argc, char * argv[] )
313 313
314 314
315 // test searching by name 315 // test searching by name
316 our_verbose(opts, "sorting test data by name ..."); 316 trutils_verbose(opts, "sorting test data by name ...");
317 qsort(test, MY_LIST_LEN, sizeof(MyData *), &my_compare_obj_name); 317 qsort(test, MY_LIST_LEN, sizeof(MyData *), &my_compare_obj_name);
318 opts = opts & ~MY_MASK; 318 opts = opts & ~MY_MASK;
319 if ((my_test_search(opts|MY_OBJ_NAME, test, MY_LIST_LEN))) 319 if ((my_test_search(opts|MY_OBJ_NAME, test, MY_LIST_LEN)))
@@ -323,7 +323,7 @@ int main( int argc, char * argv[] )
323 323
324 324
325 // insert data as sorted list using TINYRAD_ARRAY_REPLACE 325 // insert data as sorted list using TINYRAD_ARRAY_REPLACE
326 our_verbose(opts, "resetting list ..."); 326 trutils_verbose(opts, "resetting list ...");
327 list = NULL; 327 list = NULL;
328 list_len = 0; 328 list_len = 0;
329 opts = (opts & ~MY_MASK) | MY_OBJ_NAME; 329 opts = (opts & ~MY_MASK) | MY_OBJ_NAME;
@@ -340,7 +340,7 @@ int main( int argc, char * argv[] )
340 340
341 341
342 // insert data as sorted list using TINYRAD_ARRAY_INSERT 342 // insert data as sorted list using TINYRAD_ARRAY_INSERT
343 our_verbose(opts, "resetting list ..."); 343 trutils_verbose(opts, "resetting list ...");
344 list = NULL; 344 list = NULL;
345 list_len = 0; 345 list_len = 0;
346 opts = (opts & ~MY_MASK) | MY_OBJ_NAME; 346 opts = (opts & ~MY_MASK) | MY_OBJ_NAME;
@@ -355,7 +355,7 @@ int main( int argc, char * argv[] )
355 355
356 356
357 // insert data as sorted list using TINYRAD_ARRAY_MERGE and TINYRAD_ARRAY_UNORDERED 357 // insert data as sorted list using TINYRAD_ARRAY_MERGE and TINYRAD_ARRAY_UNORDERED
358 our_verbose(opts, "resetting list ..."); 358 trutils_verbose(opts, "resetting list ...");
359 list = NULL; 359 list = NULL;
360 list_len = 0; 360 list_len = 0;
361 opts = (opts & ~MY_MASK) | MY_OBJ_NAME; 361 opts = (opts & ~MY_MASK) | MY_OBJ_NAME;
@@ -378,7 +378,7 @@ int main( int argc, char * argv[] )
378 378
379 379
380 // insert data as sorted list using TINYRAD_ARRAY_MERGE and TINYRAD_ARRAY_APPEND 380 // insert data as sorted list using TINYRAD_ARRAY_MERGE and TINYRAD_ARRAY_APPEND
381 our_verbose(opts, "resetting list ..."); 381 trutils_verbose(opts, "resetting list ...");
382 list = NULL; 382 list = NULL;
383 list_len = 0; 383 list_len = 0;
384 opts = (opts & ~MY_MASK) | MY_OBJ_NAME; 384 opts = (opts & ~MY_MASK) | MY_OBJ_NAME;
@@ -401,7 +401,7 @@ int main( int argc, char * argv[] )
401 401
402 402
403 // insert data as sorted list using TINYRAD_ARRAY_MERGE and TINYRAD_ARRAY_PREPEND 403 // insert data as sorted list using TINYRAD_ARRAY_MERGE and TINYRAD_ARRAY_PREPEND
404 our_verbose(opts, "resetting list ..."); 404 trutils_verbose(opts, "resetting list ...");
405 list = NULL; 405 list = NULL;
406 list_len = 0; 406 list_len = 0;
407 opts = (opts & ~MY_MASK) | MY_OBJ_NAME; 407 opts = (opts & ~MY_MASK) | MY_OBJ_NAME;
@@ -424,12 +424,12 @@ int main( int argc, char * argv[] )
424 424
425 425
426 // test searching by value 426 // test searching by value
427 our_verbose(opts, "sorting test data by value ..."); 427 trutils_verbose(opts, "sorting test data by value ...");
428 qsort(test, MY_LIST_LEN, sizeof(MyData *), &my_compare_obj_value); 428 qsort(test, MY_LIST_LEN, sizeof(MyData *), &my_compare_obj_value);
429 429
430 430
431 // insert data as sorted list using TINYRAD_ARRAY_MERGE and TINYRAD_ARRAY_UNORDERED 431 // insert data as sorted list using TINYRAD_ARRAY_MERGE and TINYRAD_ARRAY_UNORDERED
432 our_verbose(opts, "resetting list ..."); 432 trutils_verbose(opts, "resetting list ...");
433 list = NULL; 433 list = NULL;
434 list_len = 0; 434 list_len = 0;
435 opts = (opts & ~MY_MASK) | MY_OBJ_VALUE; 435 opts = (opts & ~MY_MASK) | MY_OBJ_VALUE;
@@ -452,7 +452,7 @@ int main( int argc, char * argv[] )
452 452
453 453
454 // insert data as sorted list using TINYRAD_ARRAY_MERGE and TINYRAD_ARRAY_APPEND 454 // insert data as sorted list using TINYRAD_ARRAY_MERGE and TINYRAD_ARRAY_APPEND
455 our_verbose(opts, "resetting list ..."); 455 trutils_verbose(opts, "resetting list ...");
456 list = NULL; 456 list = NULL;
457 list_len = 0; 457 list_len = 0;
458 opts = (opts & ~MY_MASK) | MY_OBJ_VALUE; 458 opts = (opts & ~MY_MASK) | MY_OBJ_VALUE;
@@ -475,7 +475,7 @@ int main( int argc, char * argv[] )
475 475
476 476
477 // insert data as sorted list using TINYRAD_ARRAY_MERGE and TINYRAD_ARRAY_PREPEND 477 // insert data as sorted list using TINYRAD_ARRAY_MERGE and TINYRAD_ARRAY_PREPEND
478 our_verbose(opts, "resetting list ..."); 478 trutils_verbose(opts, "resetting list ...");
479 list = NULL; 479 list = NULL;
480 list_len = 0; 480 list_len = 0;
481 opts = (opts & ~MY_MASK) | MY_OBJ_VALUE; 481 opts = (opts & ~MY_MASK) | MY_OBJ_VALUE;
@@ -628,7 +628,7 @@ my_test_insert(
628 return(our_error(opts, NULL, "unknown dup action")); 628 return(our_error(opts, NULL, "unknown dup action"));
629 }; 629 };
630 630
631 our_verbose(opts, "testing tinyrad_array_add( %7s, %9s, %s ) [%s] ...", action_name, merge_type, compar_name, (((iteration)) ? "duplicate" : "unique")); 631 trutils_verbose(opts, "testing tinyrad_array_add( %7s, %9s, %s ) [%s] ...", action_name, merge_type, compar_name, (((iteration)) ? "duplicate" : "unique"));
632 for(x = 0; (x < dat_len); x++) 632 for(x = 0; (x < dat_len); x++)
633 { 633 {
634 if (tinyrad_array_add((void **)listp, list_lenp, sizeof(MyData *), &src[x], arrayopt, compar, NULL, &realloc) == -1) 634 if (tinyrad_array_add((void **)listp, list_lenp, sizeof(MyData *), &src[x], arrayopt, compar, NULL, &realloc) == -1)
@@ -645,7 +645,7 @@ my_test_insert(
645 if (!(arrayopt & TINYRAD_ARRAY_MERGE)) 645 if (!(arrayopt & TINYRAD_ARRAY_MERGE))
646 iteration = 0; 646 iteration = 0;
647 647
648 our_verbose(opts, "verifying tinyrad_array_add( %7s, %9s, %s ) [%s] ...", action_name, merge_type, compar_name, (((iteration)) ? "duplicate" : "unique")); 648 trutils_verbose(opts, "verifying tinyrad_array_add( %7s, %9s, %s ) [%s] ...", action_name, merge_type, compar_name, (((iteration)) ? "duplicate" : "unique"));
649 iteration++; 649 iteration++;
650 for(x = 0; (x < (dat_len*iteration)); x++) 650 for(x = 0; (x < (dat_len*iteration)); x++)
651 { 651 {
@@ -724,7 +724,7 @@ my_test_remove(
724 return(our_error(opts, NULL, "unknown dup action")); 724 return(our_error(opts, NULL, "unknown dup action"));
725 }; 725 };
726 726
727 our_verbose(opts, "testing tinyrad_array_remove( %7s, %9s, %s ) [%s] ...", action_name, merge_type, compar_name, (((iteration)) ? "duplicate" : "unique")); 727 trutils_verbose(opts, "testing tinyrad_array_remove( %7s, %9s, %s ) [%s] ...", action_name, merge_type, compar_name, (((iteration)) ? "duplicate" : "unique"));
728 for(x = 0; (x < dat_len); x++) 728 for(x = 0; (x < dat_len); x++)
729 { 729 {
730 if (tinyrad_array_remove(list, list_lenp, sizeof(MyData *), &src[x], arrayopt, compar, NULL) == -1) 730 if (tinyrad_array_remove(list, list_lenp, sizeof(MyData *), &src[x], arrayopt, compar, NULL) == -1)
@@ -739,7 +739,7 @@ my_test_remove(
739 if (!(arrayopt & TINYRAD_ARRAY_MERGE)) 739 if (!(arrayopt & TINYRAD_ARRAY_MERGE))
740 iteration = 0; 740 iteration = 0;
741 741
742 our_verbose(opts, "verifying tinyrad_array_remove( %7s, %9s, %s ) [%s] ...", action_name, merge_type, compar_name, (((iteration)) ? "duplicate" : "unique")); 742 trutils_verbose(opts, "verifying tinyrad_array_remove( %7s, %9s, %s ) [%s] ...", action_name, merge_type, compar_name, (((iteration)) ? "duplicate" : "unique"));
743 for(x = 0; ((x < (*list_lenp)) && ((iteration))); x++) 743 for(x = 0; ((x < (*list_lenp)) && ((iteration))); x++)
744 { 744 {
745 pos = x/iteration; 745 pos = x/iteration;
@@ -787,7 +787,7 @@ my_test_search(
787 787
788 my_compar_opts(opts, &compar_name, &compar); 788 my_compar_opts(opts, &compar_name, &compar);
789 789
790 our_verbose(opts, "testing tinyrad_array_search( %s ) ...", compar_name); 790 trutils_verbose(opts, "testing tinyrad_array_search( %s ) ...", compar_name);
791 for(x = 1; (x < (len+1)); x++) 791 for(x = 1; (x < (len+1)); x++)
792 { 792 {
793 for(y = 0; (y < x); y++) 793 for(y = 0; (y < x); y++)
@@ -808,7 +808,7 @@ my_test_search(
808 }; 808 };
809 }; 809 };
810 810
811 our_verbose(opts, "testing tinyrad_array_get( %s ) ...", compar_name); 811 trutils_verbose(opts, "testing tinyrad_array_get( %s ) ...", compar_name);
812 for(x = 1; (x < (len+1)); x++) 812 for(x = 1; (x < (len+1)); x++)
813 { 813 {
814 for(y = 0; (y < x); y++) 814 for(y = 0; (y < x); y++)
diff --git a/tests/test-array-stack.c b/tests/test-array-stack.c
index 6c36a8e..de1971e 100644
--- a/tests/test-array-stack.c
+++ b/tests/test-array-stack.c
@@ -210,7 +210,7 @@ int main( int argc, char * argv[] )
210 210
211 211
212 // initialize test data 212 // initialize test data
213 our_verbose(opts, "initializing test data ..."); 213 trutils_verbose(opts, "initializing test data ...");
214 memset(data, 0, sizeof(data)); 214 memset(data, 0, sizeof(data));
215 for(len = 0; ((test_strs[len])); len++); 215 for(len = 0; ((test_strs[len])); len++);
216 for(pos = 0; (pos < MY_LIST_LEN); pos++) 216 for(pos = 0; (pos < MY_LIST_LEN); pos++)
@@ -233,7 +233,7 @@ int main( int argc, char * argv[] )
233 233
234 234
235 // loop through test data and add to stack 235 // loop through test data and add to stack
236 our_verbose(opts, "pushing to stack ..."); 236 trutils_verbose(opts, "pushing to stack ...");
237 list = NULL; 237 list = NULL;
238 list_len = 0; 238 list_len = 0;
239 for(x = 0; (x < MY_LIST_LEN); x++) 239 for(x = 0; (x < MY_LIST_LEN); x++)
@@ -254,7 +254,7 @@ int main( int argc, char * argv[] )
254 254
255 255
256 // loop through stack and verify data 256 // loop through stack and verify data
257 our_verbose(opts, "verifing stack ..."); 257 trutils_verbose(opts, "verifing stack ...");
258 if (list_len != ((MY_LIST_LEN / 4) * 3)) 258 if (list_len != ((MY_LIST_LEN / 4) * 3))
259 return(our_error(opts, NULL, "stack length is incorrect")); 259 return(our_error(opts, NULL, "stack length is incorrect"));
260 for(x = 0, y = 0; (x < MY_LIST_LEN); x++) 260 for(x = 0, y = 0; (x < MY_LIST_LEN); x++)
@@ -268,7 +268,7 @@ int main( int argc, char * argv[] )
268 268
269 269
270 // pop data from stack 270 // pop data from stack
271 our_verbose(opts, "popping from stack ..."); 271 trutils_verbose(opts, "popping from stack ...");
272 while (list_len > 0) 272 while (list_len > 0)
273 if (tinyrad_array_pop(list, &list_len, sizeof(MyData *)) == NULL) 273 if (tinyrad_array_pop(list, &list_len, sizeof(MyData *)) == NULL)
274 return(our_error(opts, NULL, "unable to pop from stack")); 274 return(our_error(opts, NULL, "unable to pop from stack"));
diff --git a/tests/test-dict-attrs.c b/tests/test-dict-attrs.c
index 77c6424..41e3280 100644
--- a/tests/test-dict-attrs.c
+++ b/tests/test-dict-attrs.c
@@ -175,14 +175,14 @@ main(
175 if ((our_dict_initialize(opts, &dict))) 175 if ((our_dict_initialize(opts, &dict)))
176 return(1); 176 return(1);
177 177
178 our_verbose(opts, " %4s %9s %7s %s", "Type", "Vendor", "Vendor", "Name"); 178 trutils_verbose(opts, " %4s %9s %7s %s", "Type", "Vendor", "Vendor", "Name");
179 our_verbose(opts, " %4s %9s %7s %s", "", "ID", "Type", ""); 179 trutils_verbose(opts, " %4s %9s %7s %s", "", "ID", "Type", "");
180 180
181 // verifies test attributes in dictionary by name 181 // verifies test attributes in dictionary by name
182 for(pos = 0; ((test_dict_data_attrs[pos].name)); pos++) 182 for(pos = 0; ((test_dict_data_attrs[pos].name)); pos++)
183 { 183 {
184 attr_def = &test_dict_data_attrs[pos]; 184 attr_def = &test_dict_data_attrs[pos];
185 our_verbose( 185 trutils_verbose(
186 opts, 186 opts,
187 "test attribute search by name %4" PRIu8 " %9" PRIu32 " %7" PRIu32 " %s ...", 187 "test attribute search by name %4" PRIu8 " %9" PRIu32 " %7" PRIu32 " %s ...",
188 attr_def->type, 188 attr_def->type,
@@ -203,7 +203,7 @@ main(
203 for(pos = 0; ((test_dict_data_attrs[pos].name)); pos++) 203 for(pos = 0; ((test_dict_data_attrs[pos].name)); pos++)
204 { 204 {
205 attr_def = &test_dict_data_attrs[pos]; 205 attr_def = &test_dict_data_attrs[pos];
206 our_verbose( 206 trutils_verbose(
207 opts, 207 opts,
208 "test attribute search by type %4" PRIu8 " %9" PRIu32 " %7" PRIu32 " %s ...", 208 "test attribute search by type %4" PRIu8 " %9" PRIu32 " %7" PRIu32 " %s ...",
209 attr_def->type, 209 attr_def->type,
@@ -224,7 +224,7 @@ main(
224 for(pos = 0; ((tinyrad_dict_default_attrs[pos].name)); pos++) 224 for(pos = 0; ((tinyrad_dict_default_attrs[pos].name)); pos++)
225 { 225 {
226 attr_def = &tinyrad_dict_default_attrs[pos]; 226 attr_def = &tinyrad_dict_default_attrs[pos];
227 our_verbose( 227 trutils_verbose(
228 opts, 228 opts,
229 "default attribute search by name %4" PRIu8 " %9" PRIu32 " %7" PRIu32 " %s ...", 229 "default attribute search by name %4" PRIu8 " %9" PRIu32 " %7" PRIu32 " %s ...",
230 attr_def->type, 230 attr_def->type,
@@ -245,7 +245,7 @@ main(
245 for(pos = 0; ((tinyrad_dict_default_attrs[pos].name)); pos++) 245 for(pos = 0; ((tinyrad_dict_default_attrs[pos].name)); pos++)
246 { 246 {
247 attr_def = &tinyrad_dict_default_attrs[pos]; 247 attr_def = &tinyrad_dict_default_attrs[pos];
248 our_verbose( 248 trutils_verbose(
249 opts, 249 opts,
250 "default attribute search by type %4" PRIu8 " %9" PRIu32 " %7" PRIu32 " %s ...", 250 "default attribute search by type %4" PRIu8 " %9" PRIu32 " %7" PRIu32 " %s ...",
251 attr_def->type, 251 attr_def->type,
diff --git a/tests/test-dict-values.c b/tests/test-dict-values.c
index 675e3bb..8fece04 100644
--- a/tests/test-dict-values.c
+++ b/tests/test-dict-values.c
@@ -177,14 +177,14 @@ main(
177 if ((our_dict_initialize(opts, &dict))) 177 if ((our_dict_initialize(opts, &dict)))
178 return(1); 178 return(1);
179 179
180 our_verbose(opts, " %4s %9s %7s %s", "Type", "Vendor", "Vendor", "Name"); 180 trutils_verbose(opts, " %4s %9s %7s %s", "Type", "Vendor", "Vendor", "Name");
181 our_verbose(opts, " %4s %9s %7s %s", "", "ID", "Type", ""); 181 trutils_verbose(opts, " %4s %9s %7s %s", "", "ID", "Type", "");
182 182
183 // verifies test values in dictionary by name 183 // verifies test values in dictionary by name
184 for(pos = 0; ((test_dict_data_values[pos].value_name)); pos++) 184 for(pos = 0; ((test_dict_data_values[pos].value_name)); pos++)
185 { 185 {
186 value_def = &test_dict_data_values[pos]; 186 value_def = &test_dict_data_values[pos];
187 our_verbose( 187 trutils_verbose(
188 opts, 188 opts,
189 "test attribute search by name %25s %25s %3" PRIu64 " ...", 189 "test attribute search by name %25s %25s %3" PRIu64 " ...",
190 value_def->attr_name, 190 value_def->attr_name,
@@ -214,7 +214,7 @@ main(
214 for(pos = 0; ((test_dict_data_values[pos].value_name)); pos++) 214 for(pos = 0; ((test_dict_data_values[pos].value_name)); pos++)
215 { 215 {
216 value_def = &test_dict_data_values[pos]; 216 value_def = &test_dict_data_values[pos];
217 our_verbose( 217 trutils_verbose(
218 opts, 218 opts,
219 "test attribute search by name %25s %25s %3" PRIu64 " ...", 219 "test attribute search by name %25s %25s %3" PRIu64 " ...",
220 value_def->attr_name, 220 value_def->attr_name,
@@ -244,7 +244,7 @@ main(
244 for(pos = 0; ((tinyrad_dict_default_values[pos].attr_name)); pos++) 244 for(pos = 0; ((tinyrad_dict_default_values[pos].attr_name)); pos++)
245 { 245 {
246 value_def = &tinyrad_dict_default_values[pos]; 246 value_def = &tinyrad_dict_default_values[pos];
247 our_verbose( 247 trutils_verbose(
248 opts, 248 opts,
249 "test attribute search by name %25s %25s %3" PRIu64 " ...", 249 "test attribute search by name %25s %25s %3" PRIu64 " ...",
250 value_def->attr_name, 250 value_def->attr_name,
@@ -274,7 +274,7 @@ main(
274 for(pos = 0; ((tinyrad_dict_default_values[pos].attr_name)); pos++) 274 for(pos = 0; ((tinyrad_dict_default_values[pos].attr_name)); pos++)
275 { 275 {
276 value_def = &tinyrad_dict_default_values[pos]; 276 value_def = &tinyrad_dict_default_values[pos];
277 our_verbose( 277 trutils_verbose(
278 opts, 278 opts,
279 "test attribute search by name %25s %25s %3" PRIu64 " ...", 279 "test attribute search by name %25s %25s %3" PRIu64 " ...",
280 value_def->attr_name, 280 value_def->attr_name,
diff --git a/tests/test-dict-vendors.c b/tests/test-dict-vendors.c
index b4e4eaf..af7f0e3 100644
--- a/tests/test-dict-vendors.c
+++ b/tests/test-dict-vendors.c
@@ -175,13 +175,13 @@ main(
175 if ((our_dict_initialize(opts, &dict))) 175 if ((our_dict_initialize(opts, &dict)))
176 return(1); 176 return(1);
177 177
178 our_verbose(opts, "Vendor format: vendor id/name"); 178 trutils_verbose(opts, "Vendor format: vendor id/name");
179 179
180 // verifies default attributes in dictionary by name 180 // verifies default attributes in dictionary by name
181 for(pos = 0; ((tinyrad_dict_default_vendors[pos].name)); pos++) 181 for(pos = 0; ((tinyrad_dict_default_vendors[pos].name)); pos++)
182 { 182 {
183 vendor_def = &tinyrad_dict_default_vendors[pos]; 183 vendor_def = &tinyrad_dict_default_vendors[pos];
184 our_verbose( opts, "default attribute search by name %8" PRIu32 " %s ...", vendor_def->vendor_id, vendor_def->name); 184 trutils_verbose( opts, "default attribute search by name %8" PRIu32 " %s ...", vendor_def->vendor_id, vendor_def->name);
185 vendor = tinyrad_dict_vendor_get(dict, vendor_def->name, 0); 185 vendor = tinyrad_dict_vendor_get(dict, vendor_def->name, 0);
186 if ((my_verify_vendor(opts, vendor_def, vendor))) 186 if ((my_verify_vendor(opts, vendor_def, vendor)))
187 { 187 {
@@ -195,7 +195,7 @@ main(
195 for(pos = 0; ((tinyrad_dict_default_vendors[pos].name)); pos++) 195 for(pos = 0; ((tinyrad_dict_default_vendors[pos].name)); pos++)
196 { 196 {
197 vendor_def = &tinyrad_dict_default_vendors[pos]; 197 vendor_def = &tinyrad_dict_default_vendors[pos];
198 our_verbose( opts, "default attribute search by id %8" PRIu32 " %s ...", vendor_def->vendor_id, vendor_def->name); 198 trutils_verbose( opts, "default attribute search by id %8" PRIu32 " %s ...", vendor_def->vendor_id, vendor_def->name);
199 vendor = tinyrad_dict_vendor_get(dict, NULL, (uint32_t)vendor_def->vendor_id); 199 vendor = tinyrad_dict_vendor_get(dict, NULL, (uint32_t)vendor_def->vendor_id);
200 if ((my_verify_vendor(opts, vendor_def, vendor))) 200 if ((my_verify_vendor(opts, vendor_def, vendor)))
201 { 201 {
@@ -209,7 +209,7 @@ main(
209 for(pos = 0; ((test_dict_data_vendors[pos].name)); pos++) 209 for(pos = 0; ((test_dict_data_vendors[pos].name)); pos++)
210 { 210 {
211 vendor_def = &test_dict_data_vendors[pos]; 211 vendor_def = &test_dict_data_vendors[pos];
212 our_verbose( opts, "test attribute search by name %8" PRIu32 " %s ...", vendor_def->vendor_id, vendor_def->name); 212 trutils_verbose( opts, "test attribute search by name %8" PRIu32 " %s ...", vendor_def->vendor_id, vendor_def->name);
213 vendor = tinyrad_dict_vendor_get(dict, vendor_def->name, 0); 213 vendor = tinyrad_dict_vendor_get(dict, vendor_def->name, 0);
214 if ((my_verify_vendor(opts, vendor_def, vendor))) 214 if ((my_verify_vendor(opts, vendor_def, vendor)))
215 { 215 {
@@ -223,7 +223,7 @@ main(
223 for(pos = 0; ((test_dict_data_vendors[pos].name)); pos++) 223 for(pos = 0; ((test_dict_data_vendors[pos].name)); pos++)
224 { 224 {
225 vendor_def = &test_dict_data_vendors[pos]; 225 vendor_def = &test_dict_data_vendors[pos];
226 our_verbose( opts, "test attribute search by id %8" PRIu32 " %s ...", vendor_def->vendor_id, vendor_def->name); 226 trutils_verbose( opts, "test attribute search by id %8" PRIu32 " %s ...", vendor_def->vendor_id, vendor_def->name);
227 vendor = tinyrad_dict_vendor_get(dict, NULL, (uint32_t)vendor_def->vendor_id); 227 vendor = tinyrad_dict_vendor_get(dict, NULL, (uint32_t)vendor_def->vendor_id);
228 if ((my_verify_vendor(opts, vendor_def, vendor))) 228 if ((my_verify_vendor(opts, vendor_def, vendor)))
229 { 229 {
diff --git a/tests/test-oid-str.c b/tests/test-oid-str.c
index 3588362..76b93d3 100644
--- a/tests/test-oid-str.c
+++ b/tests/test-oid-str.c
@@ -211,8 +211,8 @@ int main(int argc, char * argv[])
211 { 211 {
212 for(y = 1; (y <= test_vals[x].len); y++) 212 for(y = 1; (y <= test_vals[x].len); y++)
213 { 213 {
214 our_verbose(opts, "testing oid %s ...", my_oidstr(test_vals[x].vals, y)); 214 trutils_verbose(opts, "testing oid %s ...", my_oidstr(test_vals[x].vals, y));
215 our_verbose(opts, " Initializing OID from values ..."); 215 trutils_verbose(opts, " Initializing OID from values ...");
216 if ((oid = tinyrad_oid_init(test_vals[x].vals, y)) == NULL) 216 if ((oid = tinyrad_oid_init(test_vals[x].vals, y)) == NULL)
217 { 217 {
218 our_error(opts, NULL, "out of virtual memory"); 218 our_error(opts, NULL, "out of virtual memory");
@@ -220,7 +220,7 @@ int main(int argc, char * argv[])
220 continue; 220 continue;
221 }; 221 };
222 222
223 our_verbose(opts, " Testing values of OID ..."); 223 trutils_verbose(opts, " Testing values of OID ...");
224 if ((rc = tinyrad_oid_values(oid, &vals, &len)) != TRAD_SUCCESS) 224 if ((rc = tinyrad_oid_values(oid, &vals, &len)) != TRAD_SUCCESS)
225 { 225 {
226 our_error(opts, NULL, "tinyrad_oid_values(): %s", tinyrad_strerror(rc)); 226 our_error(opts, NULL, "tinyrad_oid_values(): %s", tinyrad_strerror(rc));
@@ -308,15 +308,15 @@ my_oid_test(
308 uint32_t * newvals; 308 uint32_t * newvals;
309 uint32_t * oldvals; 309 uint32_t * oldvals;
310 310
311 our_verbose(opts, " Generating %s ...", title); 311 trutils_verbose(opts, " Generating %s ...", title);
312 if ((str = tinyrad_oid2str(oldoid, type)) == NULL) 312 if ((str = tinyrad_oid2str(oldoid, type)) == NULL)
313 { 313 {
314 our_error(opts, NULL, "out of virtual memory"); 314 our_error(opts, NULL, "out of virtual memory");
315 return(1); 315 return(1);
316 }; 316 };
317 our_verbose(opts, " %s: %s", title, str); 317 trutils_verbose(opts, " %s: %s", title, str);
318 318
319 our_verbose(opts, " Generating OID from %s ...", title); 319 trutils_verbose(opts, " Generating OID from %s ...", title);
320 if ((newoid = tinyrad_str2oid(str)) == NULL) 320 if ((newoid = tinyrad_str2oid(str)) == NULL)
321 { 321 {
322 our_error(opts, NULL, "error generating OID from %s", title); 322 our_error(opts, NULL, "error generating OID from %s", title);
@@ -328,7 +328,7 @@ my_oid_test(
328 328
329 tinyrad_oid_values(newoid, &newvals, &newlen); 329 tinyrad_oid_values(newoid, &newvals, &newlen);
330 tinyrad_oid_values(oldoid, &oldvals, &oldlen); 330 tinyrad_oid_values(oldoid, &oldvals, &oldlen);
331 our_verbose(opts, " Generated OID: %s", my_oidstr(newvals, newlen)); 331 trutils_verbose(opts, " Generated OID: %s", my_oidstr(newvals, newlen));
332 if (newlen != oldlen) 332 if (newlen != oldlen)
333 { 333 {
334 our_error(opts, NULL, "old and new OID lengths do not match"); 334 our_error(opts, NULL, "old and new OID lengths do not match");
@@ -349,7 +349,7 @@ my_oid_test(
349 }; 349 };
350 }; 350 };
351 351
352 our_verbose(opts, " comparing old OID and new OID ..."); 352 trutils_verbose(opts, " comparing old OID and new OID ...");
353 if ((tinyrad_oid_cmp(&oldoid, &newoid))) 353 if ((tinyrad_oid_cmp(&oldoid, &newoid)))
354 { 354 {
355 tinyrad_free(newoid); 355 tinyrad_free(newoid);