@@ -571,7 +571,7 @@ enum rtr_socket_state {
571571/**
572572 * @brief A function pointer that is called if the state of the rtr socket has changed.
573573 */
574- typedef void (*rtr_connection_state_fp)(const struct rtr_socket *rtr_socket, const enum rtr_socket_state state, void *connection_state_fp_param );
574+ typedef void (*rtr_connection_state_fp)(const struct rtr_socket *rtr_socket, const enum rtr_socket_state state, void *connection_state_fp_param_config, void *connection_state_fp_param_group );
575575
576576/**
577577 * @brief A RTR socket.
@@ -603,7 +603,8 @@ struct rtr_socket {
603603 uint32_t serial_number;
604604 struct pfx_table *pfx_table;
605605 rtr_connection_state_fp connection_state_fp;
606- void *connection_state_fp_param;
606+ void *connection_state_fp_param_config;
607+ void *connection_state_fp_param_group;
607608 unsigned int version;
608609 bool has_received_pdus;
609610 struct spki_table *spki_table;
@@ -633,7 +634,7 @@ struct rtr_socket {
633634int rtr_init(struct rtr_socket *rtr_socket, struct tr_socket *tr_socket, struct pfx_table *pfx_table,
634635 struct spki_table *spki_table, const unsigned int refresh_interval,
635636 const unsigned int expire_interval, const unsigned int retry_interval,
636- rtr_connection_state_fp fp, void *fp_data );
637+ rtr_connection_state_fp fp, void *fp_data_config, void *fp_data_group );
637638
638639/**
639640 * @brief Starts the RTR protocol state machine in a pthread. Connection to the rtr_server will be established and the
@@ -992,7 +993,6 @@ typedef void (*rtr_mgr_status_fp)(const struct rtr_mgr_group *,
992993 void *);
993994
994995struct rtr_mgr_config {
995- struct rtr_mgr_group *groups;
996996 unsigned int len;
997997 rtr_mgr_status_fp status_fp;
998998 void *status_fp_data;
@@ -1111,7 +1111,7 @@ int rtr_mgr_validate(struct rtr_mgr_config *config,
11111111int rtr_mgr_get_spki(struct rtr_mgr_config *config,
11121112 const uint32_t asn,
11131113 uint8_t *ski,
1114- struct spki_record *result,
1114+ struct spki_record ** result,
11151115 unsigned int *result_count);
11161116
11171117/**
0 commit comments