0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2009, 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
c6fb85f9500350e5ce58c9a24f5d264c8a8bd6f4Automatic Updater/* $Id: keydata.c,v 1.3 2009/07/01 23:47:36 tbox Exp $ */
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt dnskey->data = isc_mem_allocate(mctx, dnskey->datalen);
e851ea826066ac5a5b01c2c23218faa0273a12e8Evan Hunt memmove(dnskey->data, keydata->data, dnskey->datalen);
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Huntdns_keydata_fromdnskey(dns_rdata_keydata_t *keydata,
cfb1587eb9a6dc6d1d36ea0344e1b20068b81e88Evan Hunt keydata->data = isc_mem_allocate(mctx, keydata->datalen);