Remove openssl imports from public header files
Currently, protocol.h includes openssl/curve25519.h, meaning code which
wishes to link against a roughtime library must also have the OpenSSL/
BoringSSL source available. That's an unneeded dependency.
This CL introduces three new symbols for the Ed25519 public key, private
key, and signature lengths need in the headers and adds static asserts
in protocol.cc to pin them to the libcrypto values.
Change-Id: I1ef78e66bf83ae98b0a82a12d4130c053c70c5e2
diff --git a/simple_server.h b/simple_server.h
index 30f09f7..4d9284e 100644
--- a/simple_server.h
+++ b/simple_server.h
@@ -47,7 +47,7 @@
// MakeIdentity creates a dummy server certificate that is valid for the
// given time range.
static std::unique_ptr<Identity> MakeIdentity(
- const uint8_t root_private_key[ED25519_PRIVATE_KEY_LEN],
+ const uint8_t root_private_key[kPrivateKeyLength],
rough_time_t mint, rough_time_t maxt);
private: