Expose Structs and constants in XfrmController
XfrmController uses a small number of structures
and constants that are needed for testing its
interfaces.
Bug: 38259578
Test: compilation
Change-Id: I54ca8b829e4c8b870a11fff4ab3e1a7ef51d6bc0
diff --git a/server/XfrmController.cpp b/server/XfrmController.cpp
index 34df936..7c0c59d 100644
--- a/server/XfrmController.cpp
+++ b/server/XfrmController.cpp
@@ -58,13 +58,15 @@
namespace android {
namespace net {
-namespace {
-
+// Exposed for testing
constexpr uint32_t ALGO_MASK_AUTH_ALL = ~0;
+// Exposed for testing
constexpr uint32_t ALGO_MASK_CRYPT_ALL = ~0;
-
+// Exposed for testing
constexpr uint8_t REPLAY_WINDOW_SIZE = 4;
+namespace {
+
constexpr uint32_t RAND_SPI_MIN = 1;
constexpr uint32_t RAND_SPI_MAX = 0xFFFFFFFE;