From f44bd5ef34dab1031c6666fad09be18b933eeb4b Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 30 Jun 2021 10:12:05 +0300 Subject: [PATCH] PIAuth role enum move to private --- libs/main/crypt/piauth.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/main/crypt/piauth.h b/libs/main/crypt/piauth.h index 947d7e77..427b9dad 100644 --- a/libs/main/crypt/piauth.h +++ b/libs/main/crypt/piauth.h @@ -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);