update to 9.7.1-P2
[tridge/bind9.git] / lib / dns / rdata / generic / dlv_32769.c
index 957f038f87785e927f5134286e6b733e3d839888..d222922078f9bc27842bef1521ae80efac858929 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004, 2006, 2007  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2006, 2007, 2009  Internet Systems Consortium, Inc. ("ISC")
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -14,7 +14,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dlv_32769.c,v 1.6 2007/06/18 23:47:43 tbox Exp $ */
+/* $Id: dlv_32769.c,v 1.8 2009/12/04 22:06:37 tbox Exp $ */
 
 /* draft-ietf-dnsext-delegation-signer-05.txt */
 
@@ -144,7 +144,7 @@ fromwire_dlv(ARGS_FROMWIRE) {
        UNUSED(options);
 
        isc_buffer_activeregion(source, &sr);
+
        /*
         * Check digest lengths if we know them.
         */
@@ -164,7 +164,7 @@ fromwire_dlv(ARGS_FROMWIRE) {
                sr.length = 4 + ISC_SHA1_DIGESTLENGTH;
        else if (sr.base[3] == DNS_DSDIGEST_SHA256)
                sr.length = 4 + ISC_SHA256_DIGESTLENGTH;
+
        isc_buffer_forward(source, sr.length);
        return (mem_tobuffer(target, sr.base, sr.length));
 }
@@ -318,4 +318,9 @@ checknames_dlv(ARGS_CHECKNAMES) {
        return (ISC_TRUE);
 }
 
+static inline int
+casecompare_dlv(ARGS_COMPARE) {
+       return (compare_dlv(rdata1, rdata2));
+}
+
 #endif /* RDATA_GENERIC_DLV_32769_C */