mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-28 05:14:05 -04:00
fix context handling
This commit is contained in:
parent
7386586e11
commit
e7b4d4feb4
1 changed files with 15 additions and 3 deletions
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
/*
|
||||
* Principal Author: Brian Wellington
|
||||
* $Id: hmac_link.c,v 1.12 1999/10/20 22:14:14 bwelling Exp $
|
||||
* $Id: hmac_link.c,v 1.13 1999/10/26 19:43:25 bwelling Exp $
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
|
@ -128,7 +128,13 @@ dst_hmacmd5_sign(const unsigned int mode, dst_key_t *key, void **context,
|
|||
{
|
||||
isc_region_t r;
|
||||
isc_result_t ret;
|
||||
|
||||
void *ctx;
|
||||
|
||||
if (!(mode & DST_SIGMODE_ALL))
|
||||
REQUIRE(context != NULL);
|
||||
else
|
||||
context = &ctx;
|
||||
|
||||
if (mode & DST_SIGMODE_INIT) {
|
||||
HMAC_Key *hkey = key->opaque;
|
||||
|
||||
|
|
@ -187,7 +193,13 @@ dst_hmacmd5_verify(const unsigned int mode, dst_key_t *key, void **context,
|
|||
{
|
||||
isc_region_t r;
|
||||
isc_result_t ret;
|
||||
|
||||
void *ctx;
|
||||
|
||||
if (!(mode & DST_SIGMODE_ALL))
|
||||
REQUIRE(context != NULL);
|
||||
else
|
||||
context = &ctx;
|
||||
|
||||
if (mode & DST_SIGMODE_INIT) {
|
||||
HMAC_Key *hkey = key->opaque;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue