~kernevil/ubuntu/trusty/bind9/sdlz-hmac-keys

« back to all changes in this revision

Viewing changes to lib/dns/rdata/generic/ds_43.c

  • Committer: Package Import Robot
  • Author(s): LaMont Jones, Matthew Grant, LaMont Jones
  • Date: 2012-10-29 08:37:49 UTC
  • mfrom: (1.9.2)
  • Revision ID: package-import@ubuntu.com-20121029083749-r9inpzl0yuj9xdlu
Tags: 1:9.8.4.dfsg-1
[Matthew Grant]

* Turn off dlopen as it was causing test compile failures.
* Add missing library .postrm files for debhelper

[LaMont Jones]

* New upstream version
* soname fixup
* Ack NMUs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004, 2005, 2007, 2009, 2010  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004, 2005, 2007, 2009, 2010, 2012  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 2002  Internet Software Consortium.
4
4
 *
5
5
 * Permission to use, copy, modify, and/or distribute this software for any
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: ds_43.c,v 1.16 2010-12-23 23:47:08 tbox Exp $ */
 
18
/* $Id$ */
19
19
 
20
20
/* draft-ietf-dnsext-delegation-signer-05.txt */
21
21
 
84
84
        case DNS_DSDIGEST_GOST:
85
85
                length = ISC_GOST_DIGESTLENGTH;
86
86
                break;
 
87
        case DNS_DSDIGEST_SHA384:
 
88
                length = ISC_SHA384_DIGESTLENGTH;
 
89
                break;
87
90
        default:
88
91
                length = -1;
89
92
                break;
162
165
            (sr.base[3] == DNS_DSDIGEST_SHA256 &&
163
166
             sr.length < 4 + ISC_SHA256_DIGESTLENGTH) ||
164
167
            (sr.base[3] == DNS_DSDIGEST_GOST &&
165
 
             sr.length < 4 + ISC_GOST_DIGESTLENGTH))
 
168
             sr.length < 4 + ISC_GOST_DIGESTLENGTH) ||
 
169
            (sr.base[3] == DNS_DSDIGEST_SHA384 &&
 
170
             sr.length < 4 + ISC_SHA384_DIGESTLENGTH))
166
171
                return (ISC_R_UNEXPECTEDEND);
167
172
 
168
173
        /*
176
181
                sr.length = 4 + ISC_SHA256_DIGESTLENGTH;
177
182
        else if (sr.base[3] == DNS_DSDIGEST_GOST)
178
183
                sr.length = 4 + ISC_GOST_DIGESTLENGTH;
 
184
        else if (sr.base[3] == DNS_DSDIGEST_SHA384)
 
185
                sr.length = 4 + ISC_SHA384_DIGESTLENGTH;
179
186
 
180
187
        isc_buffer_forward(source, sr.length);
181
188
        return (mem_tobuffer(target, sr.base, sr.length));
228
235
        case DNS_DSDIGEST_GOST:
229
236
                REQUIRE(ds->length == ISC_GOST_DIGESTLENGTH);
230
237
                break;
 
238
        case DNS_DSDIGEST_SHA384:
 
239
                REQUIRE(ds->length == ISC_SHA384_DIGESTLENGTH);
 
240
                break;
231
241
        }
232
242
 
233
243
        UNUSED(type);