RTRlib
spkitable.h
1/*
2 * This file is part of RTRlib.
3 *
4 * This file is subject to the terms and conditions of the MIT license.
5 * See the file LICENSE in the top level directory for more details.
6 *
7 * Website: http://rtrlib.realmv6.org/
8 */
9
17#ifndef RTR_SPKI_H
18#define RTR_SPKI_H
19
20#include <stdbool.h>
21#include <stdint.h>
22
23#include "rtrlib/rtr/rtr.h"
24
25#define SKI_SIZE 20
26#define SPKI_SIZE 91
27
28struct spki_table;
29
38 uint8_t ski[SKI_SIZE];
39 uint32_t asn;
40 uint8_t spki[SPKI_SIZE];
41 const struct rtr_socket *socket;
42};
43
51typedef void (*spki_update_fp)(struct spki_table *spki_table,
52 const struct spki_record record,
53 const bool added);
54#endif
55/* @} */
void(* spki_update_fp)(struct spki_table *spki_table, const struct spki_record record, const bool added)
A function pointer that is called if an record was added to the spki_table or was removed from the sp...
Definition: spkitable.h:51
A RTR socket.
Definition: rtr.h:109
spki_record.
Definition: spkitable.h:37