"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.17.5/lib/dns/rdata/generic/hip_55.h" (4 Sep 2020, 930 Bytes) of package /linux/misc/dns/bind9/9.17.5/bind-9.17.5.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "hip_55.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 #ifndef GENERIC_HIP_5_H
   13 #define GENERIC_HIP_5_H 1
   14 
   15 /* RFC 5205 */
   16 
   17 typedef struct dns_rdata_hip {
   18     dns_rdatacommon_t common;
   19     isc_mem_t *mctx;
   20     unsigned char *hit;
   21     unsigned char *key;
   22     unsigned char *servers;
   23     uint8_t algorithm;
   24     uint8_t hit_len;
   25     uint16_t key_len;
   26     uint16_t servers_len;
   27     /* Private */
   28     uint16_t offset;
   29 } dns_rdata_hip_t;
   30 
   31 isc_result_t
   32 dns_rdata_hip_first(dns_rdata_hip_t *);
   33 
   34 isc_result_t
   35 dns_rdata_hip_next(dns_rdata_hip_t *);
   36 
   37 void
   38 dns_rdata_hip_current(dns_rdata_hip_t *, dns_name_t *);
   39 
   40 #endif /* GENERIC_HIP_5_H */