Deleted Added
full compact
unbound.h (266114) unbound.h (276605)
1/*
2 * unbound.h - unbound validating resolver public API
3 *
4 * Copyright (c) 2007, NLnet Labs. All rights reserved.
5 *
6 * This software is open source.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

352 * At this time it is only possible to add trusted keys before the
353 * first resolve is done.
354 * @param fname: filename of file with keyfile with trust anchors.
355 * @return 0 if OK, else error.
356 */
357int ub_ctx_add_ta_file(struct ub_ctx* ctx, const char* fname);
358
359/**
1/*
2 * unbound.h - unbound validating resolver public API
3 *
4 * Copyright (c) 2007, NLnet Labs. All rights reserved.
5 *
6 * This software is open source.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

352 * At this time it is only possible to add trusted keys before the
353 * first resolve is done.
354 * @param fname: filename of file with keyfile with trust anchors.
355 * @return 0 if OK, else error.
356 */
357int ub_ctx_add_ta_file(struct ub_ctx* ctx, const char* fname);
358
359/**
360 * Add trust anchor to the given context that is tracked with RFC5011
361 * automated trust anchor maintenance. The file is written to when the
362 * trust anchor is changed.
363 * Pass the name of a file that was output from eg. unbound-anchor,
364 * or you can start it by providing a trusted DNSKEY or DS record on one
365 * line in the file.
366 * @param ctx: context.
367 * At this time it is only possible to add trusted keys before the
368 * first resolve is done.
369 * @param fname: filename of file with trust anchor.
370 * @return 0 if OK, else error.
371 */
372int ub_ctx_add_ta_autr(struct ub_ctx* ctx, const char* fname);
373
374/**
360 * Add trust anchors to the given context.
361 * Pass the name of a bind-style config file with trusted-keys{}.
362 * @param ctx: context.
363 * At this time it is only possible to add trusted keys before the
364 * first resolve is done.
365 * @param fname: filename of file with bind-style config entries with trust
366 * anchors.
367 * @return 0 if OK, else error.

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

503/**
504 * Free storage associated with a result structure.
505 * @param result: to free
506 */
507void ub_resolve_free(struct ub_result* result);
508
509/**
510 * Convert error value to a human readable string.
375 * Add trust anchors to the given context.
376 * Pass the name of a bind-style config file with trusted-keys{}.
377 * @param ctx: context.
378 * At this time it is only possible to add trusted keys before the
379 * first resolve is done.
380 * @param fname: filename of file with bind-style config entries with trust
381 * anchors.
382 * @return 0 if OK, else error.

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

518/**
519 * Free storage associated with a result structure.
520 * @param result: to free
521 */
522void ub_resolve_free(struct ub_result* result);
523
524/**
525 * Convert error value to a human readable string.
511 * @param err: error code from one of the ub_val* functions.
526 * @param err: error code from one of the libunbound functions.
512 * @return pointer to constant text string, zero terminated.
513 */
514const char* ub_strerror(int err);
515
516/**
517 * Debug routine. Print the local zone information to debug output.
518 * @param ctx: context. Is finalized by the routine.
519 * @return 0 if OK, else error.

--- 53 unchanged lines hidden ---
527 * @return pointer to constant text string, zero terminated.
528 */
529const char* ub_strerror(int err);
530
531/**
532 * Debug routine. Print the local zone information to debug output.
533 * @param ctx: context. Is finalized by the routine.
534 * @return 0 if OK, else error.

--- 53 unchanged lines hidden ---