PIAuth role enum move to private

This commit is contained in:
2021-06-30 10:12:05 +03:00
parent e33aee3ddb
commit f44bd5ef34

View File

@@ -32,7 +32,6 @@ class PIP_CRYPT_EXPORT PIAuth : public PIObject
{
PIOBJECT(PIAuth)
public:
enum Role {Client, Server};
enum State {NotConnected, AuthProbe, PassRequest, AuthReply, KeyExchange, Connected};
//! Create PIAuth with your digital sign
@@ -89,6 +88,8 @@ public:
EVENT1(passwordCheck, bool, result)
private:
enum Role {Client, Server};
State disconnect(PIByteArray & ba, const PIString & error = PIString());
bool isAuthorizedKey(const PIByteArray & pkey);