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 
18 #ifndef RTR_SPKI_H
19 #define RTR_SPKI_H
20 
21 #include "rtrlib/rtr/rtr.h"
22 
23 #include <stdbool.h>
24 #include <stdint.h>
25 
26 #define SKI_SIZE 20
27 #define SPKI_SIZE 91
28 
29 struct spki_table;
30 
38 struct spki_record {
39  uint8_t ski[SKI_SIZE];
40  uint32_t asn;
41  uint8_t spki[SPKI_SIZE];
42  const struct rtr_socket *socket;
43 };
44 
52 typedef void (*spki_update_fp)(struct spki_table *spki_table, const struct spki_record record, const bool added);
53 #endif
54 
rtr_socket
A RTR socket.
Definition: rtr.h:116
spki_record
spki_record.
Definition: spkitable.h:38
spki_update_fp
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:52