0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 2002-2007, 2010, 2012, 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/.
a094c46640de70bb03a9351211fb17c41b6fbbb5Automatic Updater/* $Id: ds.c,v 1.13 2010/12/23 23:47:08 tbox Exp $ */
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#if defined(HAVE_OPENSSL_GOST) || defined(HAVE_PKCS11_GOST)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrewsdns_ds_buildrdata(dns_name_t *owner, dns_rdata_t *key,
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews unsigned int digest_type, unsigned char *buffer,
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#if defined(HAVE_OPENSSL_GOST) || defined(HAVE_PKCS11_GOST)
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews isc_buffer_init(&b, buffer, DNS_DS_BUFFERSIZE);
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#if defined(HAVE_OPENSSL_GOST) || defined(HAVE_PKCS11_GOST)
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt return (ret); \
0b09763c354ec91fb352b6b4cea383bd0195b2d8Mark Andrews ds.key_tag = dst_region_computeid(&r, ds.algorithm);
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan Hunt#if defined(HAVE_OPENSSL_GOST) || defined(HAVE_PKCS11_GOST)