66 bool AuthenticateClient(
int fd,
const PKCrypto::KeyPair & myKeys,
67 const std::string & secret);
75 bool AuthenticateServer(
int fd,
const PKCrypto::KeyPair & myKeys,
76 const std::string & secret);
98 #endif // _DWMAUTH_HH_ Public key crypto definitions.
Symmetric crypto utility definitions.
std::string HexEncodedString(const std::string &s)
Returns a hexadecimal version of s.
std::string Base64Encode(const std::string &s)
Returns a base64-encoded version of s.
std::string GetRandomString(size_t sz)
Authenticate a client that has connected on the socket fd.