Loading...
Searching...
No Matches
spkitable.h
/*
* This file is part of RTRlib.
*
* This file is subject to the terms and conditions of the MIT license.
* See the file LICENSE in the top level directory for more details.
*
* Website: http://rtrlib.realmv6.org/
*/
#ifndef RTR_SPKI_H
#define RTR_SPKI_H
#include "rtrlib/rtr/rtr.h"
#include <stdbool.h>
#include <stdint.h>
#define SKI_SIZE 20
#define SPKI_SIZE 91
struct spki_table;
struct spki_record {
uint8_t ski[SKI_SIZE];
uint32_t asn;
uint8_t spki[SPKI_SIZE];
const struct rtr_socket *socket;
};
typedef void (*spki_update_fp)(struct spki_table *spki_table, const struct spki_record record, const bool added);
#endif
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
rtr_socket
A RTR socket.
Definition rtr.h:116
spki_record
spki_record.
Definition spkitable.h:38