00001
00002
00003
00004
00005
00006
00007
00008
00009
00017 #ifndef RTR_SPKI_H
00018 #define RTR_SPKI_H
00019
00020 #include <stdbool.h>
00021 #include <stdint.h>
00022
00023 #include "rtrlib/rtr/rtr.h"
00024
00025 #define SKI_SIZE 20
00026 #define SPKI_SIZE 91
00027
00028 struct spki_table;
00029
00037 struct spki_record {
00038 uint8_t ski[SKI_SIZE];
00039 uint32_t asn;
00040 uint8_t spki[SPKI_SIZE];
00041 const struct rtr_socket *socket;
00042 };
00043
00051 typedef void (*spki_update_fp)(struct spki_table *spki_table,
00052 const struct spki_record record,
00053 const bool added);
00054 #endif
00055