2017-03-15 16:13:17 -04:00
|
|
|
/* Copyright (c) 2016-2017, The Tor Project, Inc. */
|
2016-09-05 18:58:19 +03:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file hs_service.h
|
|
|
|
* \brief Header file for hs_service.c.
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef TOR_HS_SERVICE_H
|
|
|
|
#define TOR_HS_SERVICE_H
|
|
|
|
|
|
|
|
#include "or.h"
|
|
|
|
#include "hs/cell_establish_intro.h"
|
|
|
|
|
2017-04-04 08:35:31 -04:00
|
|
|
/* These functions are only used by unit tests and we need to expose them else
|
|
|
|
* hs_service.o ends up with no symbols in libor.a which makes clang throw a
|
|
|
|
* warning at compile time. See #21825. */
|
2016-09-05 18:58:19 +03:00
|
|
|
|
2017-04-11 13:46:41 -04:00
|
|
|
trn_cell_establish_intro_t *
|
2016-12-12 16:45:28 -05:00
|
|
|
generate_establish_intro_cell(const uint8_t *circuit_key_material,
|
2016-09-05 18:58:19 +03:00
|
|
|
size_t circuit_key_material_len);
|
2017-04-04 08:35:31 -04:00
|
|
|
ssize_t
|
2016-09-05 18:58:19 +03:00
|
|
|
get_establish_intro_payload(uint8_t *buf, size_t buf_len,
|
2017-04-11 13:46:41 -04:00
|
|
|
const trn_cell_establish_intro_t *cell);
|
2016-09-05 18:58:19 +03:00
|
|
|
|
|
|
|
#endif /* TOR_HS_SERVICE_H */
|
2016-12-14 15:41:08 -05:00
|
|
|
|