2013-07-16 13:42:25 -04:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
|
|
* Copyright (c) 2007-2013, The Tor Project, Inc. */
|
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
#ifndef EXT_ORPORT_H
|
|
|
|
#define EXT_ORPORT_H
|
|
|
|
|
2012-12-05 19:18:18 +02:00
|
|
|
int connection_ext_or_start_auth(or_connection_t *or_conn);
|
|
|
|
|
|
|
|
ext_or_cmd_t *ext_or_cmd_new(uint16_t len);
|
|
|
|
void ext_or_cmd_free(ext_or_cmd_t *cmd);
|
|
|
|
void connection_or_set_ext_or_identifier(or_connection_t *conn);
|
|
|
|
void connection_or_remove_from_ext_or_id_map(or_connection_t *conn);
|
|
|
|
void connection_or_clear_ext_or_id_map(void);
|
|
|
|
|
|
|
|
int connection_ext_or_finished_flushing(or_connection_t *conn);
|
|
|
|
int connection_ext_or_process_inbuf(or_connection_t *or_conn);
|
|
|
|
|
2012-12-05 19:19:24 +02:00
|
|
|
int init_ext_or_cookie_authentication(int is_enabled);
|
2013-07-16 13:42:25 -04:00
|
|
|
char *get_ext_or_auth_cookie_file_name(void);
|
|
|
|
|
|
|
|
#endif
|
2012-12-05 19:18:18 +02:00
|
|
|
|