Codebase list getdns / cd199de
Cookies and roadblock avoidance on by default per RFC7873 and RFC8027 Willem Toorop 7 years ago
2 changed file(s) with 18 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
446446 ;;
447447 esac
448448
449 AC_ARG_ENABLE(draft-dnssec-roadblock-avoidance, AC_HELP_STRING([--enable-draft-dnssec-roadblock-avoidance], [Enable experimental dnssec roadblock avoidance]))
450 AC_ARG_ENABLE(draft-edns-cookies, AC_HELP_STRING([--enable-draft-edns-cookies], [Enable experimental edns cookies]))
451 AC_ARG_ENABLE(all-drafts, AC_HELP_STRING([--enable-all-drafts], [Enable cookies and roadblock avoidance]))
449 AC_ARG_ENABLE(all-drafts, AC_HELP_STRING([--enable-all-drafts], [No drafts in this release]))
452450 case "$enable_all_drafts" in
453451 yes)
454 enable_draft_dnssec_roadblock_avoidance=yes
455 enable_draft_edns_cookies=yes
456452 ;;
457453 no|*)
458454 ;;
459455 esac
460 case "$enable_draft_dnssec_roadblock_avoidance" in
461 yes)
462 AC_DEFINE_UNQUOTED([DNSSEC_ROADBLOCK_AVOIDANCE], [1], [Define this to enable the experimental draft dnssec roadblock avoidance.])
463 ;;
464 no|*)
465 ;;
466 esac
467 case "$enable_draft_edns_cookies" in
468 yes)
456 AC_ARG_ENABLE(dnssec-roadblock-avoidance, AC_HELP_STRING([--disable-dnssec-roadblock-avoidance], [Disable dnssec roadblock avoidance]))
457 case "$enable_dnssec_roadblock_avoidance" in
458 no)
459 ;;
460 yes|*)
461 AC_DEFINE_UNQUOTED([DNSSEC_ROADBLOCK_AVOIDANCE], [1], [Define this to enable the experimental dnssec roadblock avoidance.])
462 ;;
463 esac
464
465 AC_ARG_ENABLE(edns-cookies, AC_HELP_STRING([--disable-edns-cookies], [Disable edns cookies]))
466 case "$enable_edns_cookies" in
467 no)
468 ;;
469 yes|*)
469470 if test "x_$HAVE_SSL" != "x_yes"; then
470 AC_MSG_ERROR([edns cookies need openssl libcrypto which is not available, please rerun without --enable-draft-edns-cookies])
471 AC_MSG_ERROR([edns cookies need openssl libcrypto which is not available, please rerun with --disable-edns-cookies])
471472 fi
472 AC_DEFINE_UNQUOTED([EDNS_COOKIES], [1], [Define this to enable the experimental draft edns cookies.])
473 ;;
474 no|*)
473 AC_DEFINE_UNQUOTED([EDNS_COOKIES], [1], [Define this to enable the experimental edns cookies.])
475474 ;;
476475 esac
477476 AC_DEFINE_UNQUOTED([EDNS_COOKIE_OPCODE], [10], [The edns cookie option code.])
484484 #define GETDNS_RCODE_BADNAME 20
485485 #define GETDNS_RCODE_BADALG 21
486486 #define GETDNS_RCODE_BADTRUNC 22
487 #define GETDNS_RCODE_COOKIE 23
487488 /** @}
488489 */
489490