Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bind9/isccc
File: cc.h
/*
[0] Fix | Delete
* Portions 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
* Portions Copyright (C) 2001 Nominum, Inc.
[10] Fix | Delete
*
[11] Fix | Delete
* Permission to use, copy, modify, and/or distribute this software for any
[12] Fix | Delete
* purpose with or without fee is hereby granted, provided that the above
[13] Fix | Delete
* copyright notice and this permission notice appear in all copies.
[14] Fix | Delete
*
[15] Fix | Delete
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NOMINUM DISCLAIMS ALL
[16] Fix | Delete
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
[17] Fix | Delete
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY
[18] Fix | Delete
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
[19] Fix | Delete
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
[20] Fix | Delete
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
[21] Fix | Delete
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
[22] Fix | Delete
*/
[23] Fix | Delete
[24] Fix | Delete
[25] Fix | Delete
#ifndef ISCCC_CC_H
[26] Fix | Delete
#define ISCCC_CC_H 1
[27] Fix | Delete
[28] Fix | Delete
/*! \file isccc/cc.h */
[29] Fix | Delete
[30] Fix | Delete
#include <inttypes.h>
[31] Fix | Delete
#include <stdbool.h>
[32] Fix | Delete
[33] Fix | Delete
#include <isc/lang.h>
[34] Fix | Delete
#include <isc/buffer.h>
[35] Fix | Delete
#include <isccc/types.h>
[36] Fix | Delete
[37] Fix | Delete
ISC_LANG_BEGINDECLS
[38] Fix | Delete
[39] Fix | Delete
/*% from lib/dns/include/dst/dst.h */
[40] Fix | Delete
[41] Fix | Delete
#define ISCCC_ALG_UNKNOWN 0
[42] Fix | Delete
#define ISCCC_ALG_HMACMD5 157
[43] Fix | Delete
#define ISCCC_ALG_HMACSHA1 161
[44] Fix | Delete
#define ISCCC_ALG_HMACSHA224 162
[45] Fix | Delete
#define ISCCC_ALG_HMACSHA256 163
[46] Fix | Delete
#define ISCCC_ALG_HMACSHA384 164
[47] Fix | Delete
#define ISCCC_ALG_HMACSHA512 165
[48] Fix | Delete
[49] Fix | Delete
/*% Maximum Datagram Package */
[50] Fix | Delete
#define ISCCC_CC_MAXDGRAMPACKET 4096
[51] Fix | Delete
[52] Fix | Delete
/*% Message Type String */
[53] Fix | Delete
#define ISCCC_CCMSGTYPE_STRING 0x00
[54] Fix | Delete
/*% Message Type Binary Data */
[55] Fix | Delete
#define ISCCC_CCMSGTYPE_BINARYDATA 0x01
[56] Fix | Delete
/*% Message Type Table */
[57] Fix | Delete
#define ISCCC_CCMSGTYPE_TABLE 0x02
[58] Fix | Delete
/*% Message Type List */
[59] Fix | Delete
#define ISCCC_CCMSGTYPE_LIST 0x03
[60] Fix | Delete
[61] Fix | Delete
/*% Send to Wire */
[62] Fix | Delete
isc_result_t
[63] Fix | Delete
isccc_cc_towire(isccc_sexpr_t *alist, isc_buffer_t **buffer,
[64] Fix | Delete
uint32_t algorithm, isccc_region_t *secret);
[65] Fix | Delete
[66] Fix | Delete
/*% Get From Wire */
[67] Fix | Delete
isc_result_t
[68] Fix | Delete
isccc_cc_fromwire(isccc_region_t *source, isccc_sexpr_t **alistp,
[69] Fix | Delete
uint32_t algorithm, isccc_region_t *secret);
[70] Fix | Delete
[71] Fix | Delete
/*% Create Message */
[72] Fix | Delete
isc_result_t
[73] Fix | Delete
isccc_cc_createmessage(uint32_t version, const char *from, const char *to,
[74] Fix | Delete
uint32_t serial, isccc_time_t now,
[75] Fix | Delete
isccc_time_t expires, isccc_sexpr_t **alistp);
[76] Fix | Delete
[77] Fix | Delete
/*% Create Acknowledgment */
[78] Fix | Delete
isc_result_t
[79] Fix | Delete
isccc_cc_createack(isccc_sexpr_t *message, bool ok,
[80] Fix | Delete
isccc_sexpr_t **ackp);
[81] Fix | Delete
[82] Fix | Delete
/*% Is Ack? */
[83] Fix | Delete
bool
[84] Fix | Delete
isccc_cc_isack(isccc_sexpr_t *message);
[85] Fix | Delete
[86] Fix | Delete
/*% Is Reply? */
[87] Fix | Delete
bool
[88] Fix | Delete
isccc_cc_isreply(isccc_sexpr_t *message);
[89] Fix | Delete
[90] Fix | Delete
/*% Create Response */
[91] Fix | Delete
isc_result_t
[92] Fix | Delete
isccc_cc_createresponse(isccc_sexpr_t *message, isccc_time_t now,
[93] Fix | Delete
isccc_time_t expires, isccc_sexpr_t **alistp);
[94] Fix | Delete
[95] Fix | Delete
/*% Define String */
[96] Fix | Delete
isccc_sexpr_t *
[97] Fix | Delete
isccc_cc_definestring(isccc_sexpr_t *alist, const char *key, const char *str);
[98] Fix | Delete
[99] Fix | Delete
/*% Define uint 32 */
[100] Fix | Delete
isccc_sexpr_t *
[101] Fix | Delete
isccc_cc_defineuint32(isccc_sexpr_t *alist, const char *key, uint32_t i);
[102] Fix | Delete
[103] Fix | Delete
/*% Lookup String */
[104] Fix | Delete
isc_result_t
[105] Fix | Delete
isccc_cc_lookupstring(isccc_sexpr_t *alist, const char *key, char **strp);
[106] Fix | Delete
[107] Fix | Delete
/*% Lookup uint 32 */
[108] Fix | Delete
isc_result_t
[109] Fix | Delete
isccc_cc_lookupuint32(isccc_sexpr_t *alist, const char *key,
[110] Fix | Delete
uint32_t *uintp);
[111] Fix | Delete
[112] Fix | Delete
/*% Create Symbol Table */
[113] Fix | Delete
isc_result_t
[114] Fix | Delete
isccc_cc_createsymtab(isccc_symtab_t **symtabp);
[115] Fix | Delete
[116] Fix | Delete
/*% Clean up Symbol Table */
[117] Fix | Delete
void
[118] Fix | Delete
isccc_cc_cleansymtab(isccc_symtab_t *symtab, isccc_time_t now);
[119] Fix | Delete
[120] Fix | Delete
/*% Check for Duplicates */
[121] Fix | Delete
isc_result_t
[122] Fix | Delete
isccc_cc_checkdup(isccc_symtab_t *symtab, isccc_sexpr_t *message,
[123] Fix | Delete
isccc_time_t now);
[124] Fix | Delete
[125] Fix | Delete
ISC_LANG_ENDDECLS
[126] Fix | Delete
[127] Fix | Delete
#endif /* ISCCC_CC_H */
[128] Fix | Delete
[129] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function