* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dighost.c,v 1.325 2009/09/15 03:13:43 each Exp $ */
+/* $Id: dighost.c,v 1.326 2009/09/15 23:48:09 tbox Exp $ */
/*! \file
* \note
static isc_uint32_t
parse_bits(char *arg, const char *desc, isc_uint32_t max) {
- isc_result_t result;
- isc_uint32_t tmp;
-
- result = parse_uint(&tmp, arg, max, desc);
- if (result != ISC_R_SUCCESS)
- fatal("couldn't parse digest bits");
- tmp = (tmp + 7) & ~0x7U;
- return (tmp);
+ isc_result_t result;
+ isc_uint32_t tmp;
+
+ result = parse_uint(&tmp, arg, max, desc);
+ if (result != ISC_R_SUCCESS)
+ fatal("couldn't parse digest bits");
+ tmp = (tmp + 7) & ~0x7U;
+ return (tmp);
}
REQUIRE(hmac != NULL);
len = strlen(hmac);
- if (len >= (int) sizeof(buf))
+ if (len >= (int) sizeof(buf))
fatal("unknown key type '%.*s'", len, hmac);
strncpy(buf, hmac, sizeof(buf));
/*
- * Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dig.h,v 1.109 2009/09/15 03:13:44 each Exp $ */
+/* $Id: dig.h,v 1.110 2009/09/15 23:48:09 tbox Exp $ */
#ifndef DIG_H
#define DIG_H