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