mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
576 B
C
27 lines
576 B
C
#ifndef LLARP_RC_H
|
|
#define LLARP_RC_H
|
|
#include <llarp/address_info.h>
|
|
#include <llarp/crypto.h>
|
|
#include <llarp/exit_info.h>
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct llarp_rc {
|
|
llarp_buffer_t raw;
|
|
struct llarp_ai_list *addrs;
|
|
llarp_pubkey_t pubkey;
|
|
struct llarp_xi_list *exits;
|
|
llarp_sig_t signature;
|
|
};
|
|
|
|
bool llarp_rc_bdecode(struct llarp_rc *rc, llarp_buffer_t *buf);
|
|
bool llarp_rc_bencode(struct llarp_rc *rc, llarp_buffer_t *buf);
|
|
void llarp_rc_free(struct llarp_rc **rc);
|
|
bool llarp_rc_verify_sig(struct llarp_rc *rc);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|