-
- Downloads
test: Move duplicate HS test code and unify it
Create the hs_test_helpers.{c|h} files that contains helper functions to
create introduction point, descriptor and compare descriptor.
Used by both the hs cache and hs descriptor tests. Unify them to avoid code
duplication.
Also, this commit fixes the usage of the signing key that was wrongly used
when creating a cross signed certificate.
Signed-off-by:
David Goulet <dgoulet@torproject.org>
Showing
- src/test/hs_test_helpers.c 244 additions, 0 deletionssrc/test/hs_test_helpers.c
- src/test/hs_test_helpers.h 22 additions, 0 deletionssrc/test/hs_test_helpers.h
- src/test/include.am 1 addition, 0 deletionssrc/test/include.am
- src/test/test_hs_cache.c 9 additions, 94 deletionssrc/test/test_hs_cache.c
- src/test/test_hs_descriptor.c 7 additions, 224 deletionssrc/test/test_hs_descriptor.c
Loading
Please register or sign in to comment