nsec3param_51.h revision 6098d364b690cb9dabf96e9664c4689c8559bd2e
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt/*
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt * Copyright (C) 2004 Nominet, Ltd.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews *
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt * Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * copyright notice and this permission notice appear in all copies.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews *
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt * THE SOFTWARE IS PROVIDED "AS IS" AND NOMINET DISCLAIMS ALL WARRANTIES WITH
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt * PERFORMANCE OF THIS SOFTWARE.
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt */
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt#ifndef GENERIC_NSEC3PARAM_51_H
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt#define GENERIC_NSEC3PARAM_51_H 1
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt/* $Id: nsec3param_51.h,v 1.3 2008/09/24 02:46:23 marka Exp $ */
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt/*!
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt * \brief Per RFC 5155 */
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt#include <isc/iterated_hash.h>
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunttypedef struct dns_rdata_nsec3param {
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt dns_rdatacommon_t common;
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt isc_mem_t *mctx;
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt dns_hash_t hash;
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt unsigned char flags; /* DNS_NSEC3FLAG_* */
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt dns_iterations_t iterations;
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt unsigned char salt_length;
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt unsigned char *salt;
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt} dns_rdata_nsec3param_t;
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt#endif /* GENERIC_NSEC3PARAM_51_H */
38122021242747404f7f3e02ff4428a7cb884b77Evan Hunt