Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bind9/dns
File: keyvalues.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
#ifndef DNS_KEYVALUES_H
[12] Fix | Delete
#define DNS_KEYVALUES_H 1
[13] Fix | Delete
[14] Fix | Delete
/*! \file dns/keyvalues.h */
[15] Fix | Delete
[16] Fix | Delete
/*
[17] Fix | Delete
* Flags field of the KEY RR rdata
[18] Fix | Delete
*/
[19] Fix | Delete
#define DNS_KEYFLAG_TYPEMASK 0xC000 /*%< Mask for "type" bits */
[20] Fix | Delete
#define DNS_KEYTYPE_AUTHCONF 0x0000 /*%< Key usable for both */
[21] Fix | Delete
#define DNS_KEYTYPE_CONFONLY 0x8000 /*%< Key usable for confidentiality */
[22] Fix | Delete
#define DNS_KEYTYPE_AUTHONLY 0x4000 /*%< Key usable for authentication */
[23] Fix | Delete
#define DNS_KEYTYPE_NOKEY 0xC000 /*%< No key usable for either; no key */
[24] Fix | Delete
#define DNS_KEYTYPE_NOAUTH DNS_KEYTYPE_CONFONLY
[25] Fix | Delete
#define DNS_KEYTYPE_NOCONF DNS_KEYTYPE_AUTHONLY
[26] Fix | Delete
[27] Fix | Delete
#define DNS_KEYFLAG_RESERVED2 0x2000 /*%< reserved - must be zero */
[28] Fix | Delete
#define DNS_KEYFLAG_EXTENDED 0x1000 /*%< key has extended flags */
[29] Fix | Delete
#define DNS_KEYFLAG_RESERVED4 0x0800 /*%< reserved - must be zero */
[30] Fix | Delete
#define DNS_KEYFLAG_RESERVED5 0x0400 /*%< reserved - must be zero */
[31] Fix | Delete
#define DNS_KEYFLAG_OWNERMASK 0x0300 /*%< these bits determine the type */
[32] Fix | Delete
#define DNS_KEYOWNER_USER 0x0000 /*%< key is assoc. with user */
[33] Fix | Delete
#define DNS_KEYOWNER_ENTITY 0x0200 /*%< key is assoc. with entity eg host */
[34] Fix | Delete
#define DNS_KEYOWNER_ZONE 0x0100 /*%< key is zone key */
[35] Fix | Delete
#define DNS_KEYOWNER_RESERVED 0x0300 /*%< reserved meaning */
[36] Fix | Delete
#define DNS_KEYFLAG_REVOKE 0x0080 /*%< key revoked (per rfc5011) */
[37] Fix | Delete
#define DNS_KEYFLAG_RESERVED9 0x0040 /*%< reserved - must be zero */
[38] Fix | Delete
#define DNS_KEYFLAG_RESERVED10 0x0020 /*%< reserved - must be zero */
[39] Fix | Delete
#define DNS_KEYFLAG_RESERVED11 0x0010 /*%< reserved - must be zero */
[40] Fix | Delete
#define DNS_KEYFLAG_SIGNATORYMASK 0x000F /*%< key can sign RR's of same name */
[41] Fix | Delete
[42] Fix | Delete
#define DNS_KEYFLAG_RESERVEDMASK (DNS_KEYFLAG_RESERVED2 | \
[43] Fix | Delete
DNS_KEYFLAG_RESERVED4 | \
[44] Fix | Delete
DNS_KEYFLAG_RESERVED5 | \
[45] Fix | Delete
DNS_KEYFLAG_RESERVED9 | \
[46] Fix | Delete
DNS_KEYFLAG_RESERVED10 | \
[47] Fix | Delete
DNS_KEYFLAG_RESERVED11 )
[48] Fix | Delete
#define DNS_KEYFLAG_KSK 0x0001 /*%< key signing key */
[49] Fix | Delete
[50] Fix | Delete
#define DNS_KEYFLAG_RESERVEDMASK2 0xFFFF /*%< no bits defined here */
[51] Fix | Delete
[52] Fix | Delete
/* The Algorithm field of the KEY and SIG RR's is an integer, {1..254} */
[53] Fix | Delete
#define DNS_KEYALG_RSAMD5 1 /*%< RSA with MD5 */
[54] Fix | Delete
#define DNS_KEYALG_RSA DNS_KEYALG_RSAMD5
[55] Fix | Delete
#define DNS_KEYALG_DH 2 /*%< Diffie Hellman KEY */
[56] Fix | Delete
#define DNS_KEYALG_DSA 3 /*%< DSA KEY */
[57] Fix | Delete
#define DNS_KEYALG_NSEC3DSA 6
[58] Fix | Delete
#define DNS_KEYALG_DSS DNS_ALG_DSA
[59] Fix | Delete
#define DNS_KEYALG_ECC 4
[60] Fix | Delete
#define DNS_KEYALG_RSASHA1 5
[61] Fix | Delete
#define DNS_KEYALG_NSEC3RSASHA1 7
[62] Fix | Delete
#define DNS_KEYALG_RSASHA256 8
[63] Fix | Delete
#define DNS_KEYALG_RSASHA512 10
[64] Fix | Delete
#define DNS_KEYALG_ECCGOST 12
[65] Fix | Delete
#define DNS_KEYALG_ECDSA256 13
[66] Fix | Delete
#define DNS_KEYALG_ECDSA384 14
[67] Fix | Delete
#define DNS_KEYALG_ED25519 15
[68] Fix | Delete
#define DNS_KEYALG_ED448 16
[69] Fix | Delete
#define DNS_KEYALG_INDIRECT 252
[70] Fix | Delete
#define DNS_KEYALG_PRIVATEDNS 253
[71] Fix | Delete
#define DNS_KEYALG_PRIVATEOID 254 /*%< Key begins with OID giving alg */
[72] Fix | Delete
[73] Fix | Delete
/* Protocol values */
[74] Fix | Delete
#define DNS_KEYPROTO_RESERVED 0
[75] Fix | Delete
#define DNS_KEYPROTO_TLS 1
[76] Fix | Delete
#define DNS_KEYPROTO_EMAIL 2
[77] Fix | Delete
#define DNS_KEYPROTO_DNSSEC 3
[78] Fix | Delete
#define DNS_KEYPROTO_IPSEC 4
[79] Fix | Delete
#define DNS_KEYPROTO_ANY 255
[80] Fix | Delete
[81] Fix | Delete
/* Signatures */
[82] Fix | Delete
#define DNS_SIG_RSAMINBITS 512 /*%< Size of a mod or exp in bits */
[83] Fix | Delete
#define DNS_SIG_RSAMAXBITS 2552
[84] Fix | Delete
/* Total of binary mod and exp */
[85] Fix | Delete
#define DNS_SIG_RSAMAXBYTES ((DNS_SIG_RSAMAXBITS+7/8)*2+3)
[86] Fix | Delete
/*%< Max length of text sig block */
[87] Fix | Delete
#define DNS_SIG_RSAMAXBASE64 (((DNS_SIG_RSAMAXBYTES+2)/3)*4)
[88] Fix | Delete
#define DNS_SIG_RSAMINSIZE ((DNS_SIG_RSAMINBITS+7)/8)
[89] Fix | Delete
#define DNS_SIG_RSAMAXSIZE ((DNS_SIG_RSAMAXBITS+7)/8)
[90] Fix | Delete
[91] Fix | Delete
#define DNS_SIG_DSASIGSIZE 41
[92] Fix | Delete
#define DNS_SIG_DSAMINBITS 512
[93] Fix | Delete
#define DNS_SIG_DSAMAXBITS 1024
[94] Fix | Delete
#define DNS_SIG_DSAMINBYTES 213
[95] Fix | Delete
#define DNS_SIG_DSAMAXBYTES 405
[96] Fix | Delete
[97] Fix | Delete
#define DNS_SIG_GOSTSIGSIZE 64
[98] Fix | Delete
[99] Fix | Delete
#define DNS_SIG_ECDSA256SIZE 64
[100] Fix | Delete
#define DNS_SIG_ECDSA384SIZE 96
[101] Fix | Delete
[102] Fix | Delete
#define DNS_KEY_ECDSA256SIZE 64
[103] Fix | Delete
#define DNS_KEY_ECDSA384SIZE 96
[104] Fix | Delete
[105] Fix | Delete
#define DNS_SIG_ED25519SIZE 64
[106] Fix | Delete
#define DNS_SIG_ED448SIZE 114
[107] Fix | Delete
[108] Fix | Delete
#define DNS_KEY_ED25519SIZE 32
[109] Fix | Delete
#define DNS_KEY_ED448SIZE 57
[110] Fix | Delete
[111] Fix | Delete
#endif /* DNS_KEYVALUES_H */
[112] Fix | Delete
[113] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function