Tor
0.4.7.0-alpha-dev
feature
nodelist
routerinfo.h
Go to the documentation of this file.
1
/* Copyright (c) 2001 Matej Pfajfar.
2
* Copyright (c) 2001-2004, Roger Dingledine.
3
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4
* Copyright (c) 2007-2021, The Tor Project, Inc. */
5
/* See LICENSE for licensing information */
6
7
/**
8
* \file routerinfo.h
9
* \brief Header file for routerinfo.c.
10
**/
11
12
#ifndef TOR_ROUTERINFO_H
13
#define TOR_ROUTERINFO_H
14
15
int
router_get_orport
(
const
routerinfo_t
*router,
16
tor_addr_port_t
*addr_port_out,
17
int
family);
18
int
router_has_orport(
const
routerinfo_t
*router,
19
const
tor_addr_port_t
*orport);
20
21
struct
ed25519_public_key_t
;
22
const
struct
ed25519_public_key_t
*
routerinfo_get_ed25519_id
(
23
const
routerinfo_t
*ri);
24
25
smartlist_t
*
router_get_all_orports
(
const
routerinfo_t
*ri);
26
27
const
char
*
router_purpose_to_string
(uint8_t p);
28
uint8_t
router_purpose_from_string
(
const
char
*s);
29
30
#endif
/* !defined(TOR_ROUTERINFO_H) */
router_purpose_from_string
uint8_t router_purpose_from_string(const char *s)
Definition:
routerinfo.c:113
router_get_orport
int router_get_orport(const routerinfo_t *router, tor_addr_port_t *addr_port_out, int family)
Definition:
routerinfo.c:27
router_get_all_orports
smartlist_t * router_get_all_orports(const routerinfo_t *ri)
Definition:
routerinfo.c:68
routerinfo_get_ed25519_id
const struct ed25519_public_key_t * routerinfo_get_ed25519_id(const routerinfo_t *ri)
Definition:
routerinfo.c:82
router_purpose_to_string
const char * router_purpose_to_string(uint8_t p)
Definition:
routerinfo.c:98
ed25519_public_key_t
Definition:
crypto_ed25519.h:23
routerinfo_t
Definition:
routerinfo_st.h:20
smartlist_t
Definition:
smartlist_core.h:26
tor_addr_port_t
Definition:
address.h:81
Generated by
1.9.1