RTRlib
Loading...
Searching...
No Matches
spkitable.h
Go to the documentation of this file.
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
29struct spki_table;
30
39 uint8_t ski[SKI_SIZE];
40 uint32_t asn;
41 uint8_t spki[SPKI_SIZE];
42 const struct rtr_socket *socket;
43};
44
52typedef void (*spki_update_fp)(struct spki_table *spki_table, const struct spki_record record, const bool added);
53#endif
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
#define SPKI_SIZE
Definition spkitable.h:27
#define SKI_SIZE
Definition spkitable.h:26
A RTR socket.
Definition rtr.h:117
spki_record.
Definition spkitable.h:38
uint8_t ski[20]
Definition spkitable.h:39
uint32_t asn
Definition spkitable.h:40
const struct rtr_socket * socket
Definition spkitable.h:42
uint8_t spki[91]
Definition spkitable.h:41
spki_table.
Definition ht-spkitable_private.h:27