mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Split the authority-cert and signature/hash code from routerparse
This commit is contained in:
@@ -18,6 +18,18 @@ MOCK_DECL(void,dump_desc,(const char *desc, const char *type));
|
||||
void dump_desc_fifo_cleanup(void);
|
||||
void dump_desc_init(void);
|
||||
|
||||
#undef DEBUG_AREA_ALLOC
|
||||
#ifdef DEBUG_AREA_ALLOC
|
||||
#define DUMP_AREA(a,name) STMT_BEGIN \
|
||||
size_t alloc=0, used=0; \
|
||||
memarea_get_stats((a),&alloc,&used); \
|
||||
log_debug(LD_MM, "Area for %s has %lu allocated; using %lu.", \
|
||||
name, (unsigned long)alloc, (unsigned long)used); \
|
||||
STMT_END
|
||||
#else /* !(defined(DEBUG_AREA_ALLOC)) */
|
||||
#define DUMP_AREA(a,name) STMT_NIL
|
||||
#endif /* defined(DEBUG_AREA_ALLOC) */
|
||||
|
||||
#ifdef UNPARSEABLE_PRIVATE
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user