34 #include <sys/types.h>
35 #include "rtrlib/lib/ip.h"
36 #include "rtrlib/rtr/rtr.h"
68 uint8_t ski[SKI_SIZE];
70 uint8_t spki[SPKI_SIZE];
121 unsigned int *result_size);
134 unsigned int *result_size);
Definition: spkitable.h:49
void spki_table_init(struct spki_table *spki_table, spki_update_fp update_fp)
Initializes the spki_table struct.
Definition: spkitable.h:52
spki_rtvals
Possible return values for some spki_table_ functions.
Definition: spkitable.h:44
int spki_table_src_remove(struct spki_table *spki_table, const struct rtr_socket *socket)
Removes all entries in the spki_table that match the passed socket_id.
spki_record.
Definition: spkitable.h:67
void spki_table_free(struct spki_table *spki_table)
Frees the memory associcated with the spki_table.
int spki_table_remove_entry(struct spki_table *spki_table, struct spki_record *spki_record)
Removes spki_record from spki_table.
Definition: spkitable.h:55
Definition: spkitable.h:46
int spki_table_add_entry(struct spki_table *spki_table, struct spki_record *spki_record)
Adds a spki_record to a spki_table.
A RTR socket.
Definition: rtr.h:113
int spki_table_get_all(struct spki_table *spki_table, uint32_t asn, uint8_t *ski, struct spki_record **result, unsigned int *result_size)
Returns all spki_record whose ASN and SKI matches.
int spki_table_search_by_ski(struct spki_table *spki_table, uint8_t *ski, struct spki_record **result, unsigned int *result_size)
Returns all spki_record whose SKI number matches the given one.
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:81