/*
* Copyright (C) 2009, 2010, 2016, 2017 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/.
*/
#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)) {
#ifndef PK11_MD5_DISABLE
case DST_ALG_HMACMD5:
break;
#endif
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);
}
}