tsec.c revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
/*
* Copyright (C) 2009, 2010, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: tsec.c,v 1.7 2010/12/09 00:54:34 marka Exp $ */
#include <config.h>
/*%
* DNS Transaction Security object. We assume this is not shared by
* multiple threads, and so the structure does not contain a lock.
*/
struct dns_tsec {
unsigned int magic;
union {
} ukey;
};
dns_tsec_t **tsecp)
{
return (ISC_R_NOMEMORY);
switch (type) {
case dns_tsectype_tsig:
switch (dst_key_alg(key)) {
case DST_ALG_HMACMD5:
break;
case DST_ALG_HMACSHA1:
break;
case DST_ALG_HMACSHA224:
break;
case DST_ALG_HMACSHA256:
break;
case DST_ALG_HMACSHA384:
break;
case DST_ALG_HMACSHA512:
break;
default:
return (DNS_R_BADALG);
}
&tsigkey);
if (result != ISC_R_SUCCESS) {
return (result);
}
break;
case dns_tsectype_sig0:
break;
default:
INSIST(0);
}
return (ISC_R_SUCCESS);
}
void
case dns_tsectype_tsig:
break;
case dns_tsectype_sig0:
break;
default:
INSIST(0);
}
}
}
void
case dns_tsectype_tsig:
break;
case dns_tsectype_sig0:
break;
default:
INSIST(0);
}
}