|
@@ -35,6 +35,8 @@
|
|
#include "transports.h"
|
|
#include "transports.h"
|
|
#include "routerset.h"
|
|
#include "routerset.h"
|
|
|
|
|
|
|
|
+#include "dirauth/mode.h"
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* \file router.c
|
|
* \file router.c
|
|
* \brief Miscellaneous relay functionality, including RSA key maintenance,
|
|
* \brief Miscellaneous relay functionality, including RSA key maintenance,
|
|
@@ -1612,14 +1614,6 @@ authdir_mode(const or_options_t *options)
|
|
{
|
|
{
|
|
return options->AuthoritativeDir != 0;
|
|
return options->AuthoritativeDir != 0;
|
|
}
|
|
}
|
|
-/** Return true iff we believe ourselves to be a v3 authoritative
|
|
|
|
- * directory server.
|
|
|
|
- */
|
|
|
|
-int
|
|
|
|
-authdir_mode_v3(const or_options_t *options)
|
|
|
|
-{
|
|
|
|
- return authdir_mode(options) && options->V3AuthoritativeDir != 0;
|
|
|
|
-}
|
|
|
|
/** Return true iff we are an authoritative directory server that is
|
|
/** Return true iff we are an authoritative directory server that is
|
|
* authoritative about receiving and serving descriptors of type
|
|
* authoritative about receiving and serving descriptors of type
|
|
* <b>purpose</b> on its dirport.
|
|
* <b>purpose</b> on its dirport.
|