diff --git a/NetSSL_OpenSSL/include/Poco/Net/CertificateHandlerFactoryMgr.h b/NetSSL_OpenSSL/include/Poco/Net/CertificateHandlerFactoryMgr.h index e70c9060b..cf6085177 100644 --- a/NetSSL_OpenSSL/include/Poco/Net/CertificateHandlerFactoryMgr.h +++ b/NetSSL_OpenSSL/include/Poco/Net/CertificateHandlerFactoryMgr.h @@ -32,8 +32,8 @@ class NetSSL_API CertificateHandlerFactoryMgr /// A CertificateHandlerFactoryMgr manages all existing CertificateHandlerFactories. { public: - typedef std::map > FactoriesMap; - + using FactoriesMap = std::map>; + CertificateHandlerFactoryMgr(); /// Creates the CertificateHandlerFactoryMgr. @@ -46,12 +46,12 @@ public: bool hasFactory(const std::string& name) const; /// Returns true if for the given name a factory is already registered - + const CertificateHandlerFactory* getFactory(const std::string& name) const; /// Returns NULL if for the given name a factory does not exist, otherwise the factory is returned void removeFactory(const std::string& name); - /// Removes the factory from the manager. + /// Removes the factory from the manager. private: FactoriesMap _factories; diff --git a/NetSSL_OpenSSL/include/Poco/Net/Context.h b/NetSSL_OpenSSL/include/Poco/Net/Context.h index ea47c5c30..5d150b83b 100644 --- a/NetSSL_OpenSSL/include/Poco/Net/Context.h +++ b/NetSSL_OpenSSL/include/Poco/Net/Context.h @@ -59,7 +59,7 @@ class NetSSL_API Context: public Poco::RefCountedObject /// cipher configuration (cipherList). { public: - typedef Poco::AutoPtr Ptr; + using Ptr = Poco::AutoPtr; enum Usage { @@ -412,9 +412,11 @@ inline Context::Usage Context::usage() const inline bool Context::isForServerUse() const { return _usage == SERVER_USE + || _usage == TLS_SERVER_USE || _usage == TLSV1_SERVER_USE || _usage == TLSV1_1_SERVER_USE - || _usage == TLSV1_2_SERVER_USE; + || _usage == TLSV1_2_SERVER_USE + || _usage == TLSV1_3_SERVER_USE; } diff --git a/NetSSL_OpenSSL/include/Poco/Net/PrivateKeyFactoryMgr.h b/NetSSL_OpenSSL/include/Poco/Net/PrivateKeyFactoryMgr.h index b29b37f46..3186ea0aa 100644 --- a/NetSSL_OpenSSL/include/Poco/Net/PrivateKeyFactoryMgr.h +++ b/NetSSL_OpenSSL/include/Poco/Net/PrivateKeyFactoryMgr.h @@ -32,8 +32,8 @@ class NetSSL_API PrivateKeyFactoryMgr /// A PrivateKeyFactoryMgr manages all existing PrivateKeyFactories. { public: - typedef std::map > FactoriesMap; - + using FactoriesMap = std::map>; + PrivateKeyFactoryMgr(); /// Creates the PrivateKeyFactoryMgr. @@ -46,12 +46,12 @@ public: bool hasFactory(const std::string& name) const; /// Returns true if for the given name a factory is already registered - + const PrivateKeyFactory* getFactory(const std::string& name) const; /// Returns NULL if for the given name a factory does not exist, otherwise the factory is returned void removeFactory(const std::string& name); - /// Removes the factory from the manager. + /// Removes the factory from the manager. private: FactoriesMap _factories; diff --git a/NetSSL_OpenSSL/include/Poco/Net/SSLManager.h b/NetSSL_OpenSSL/include/Poco/Net/SSLManager.h index 343d933a9..33a902a80 100644 --- a/NetSSL_OpenSSL/include/Poco/Net/SSLManager.h +++ b/NetSSL_OpenSSL/include/Poco/Net/SSLManager.h @@ -157,8 +157,8 @@ class NetSSL_API SSLManager /// Please see the Context class documentation regarding TLSv1.3 support. { public: - typedef Poco::SharedPtr PrivateKeyPassphraseHandlerPtr; - typedef Poco::SharedPtr InvalidCertificateHandlerPtr; + using PrivateKeyPassphraseHandlerPtr = Poco::SharedPtr; + using InvalidCertificateHandlerPtr = Poco::SharedPtr; Poco::BasicEvent ServerVerificationError; /// Fired whenever a certificate verification error is detected by the server during a handshake. diff --git a/NetSSL_OpenSSL/include/Poco/Net/Session.h b/NetSSL_OpenSSL/include/Poco/Net/Session.h index cc9b2db74..465e12fdd 100644 --- a/NetSSL_OpenSSL/include/Poco/Net/Session.h +++ b/NetSSL_OpenSSL/include/Poco/Net/Session.h @@ -37,16 +37,16 @@ class NetSSL_API Session: public Poco::RefCountedObject /// if it wants to reuse it with a future connection. { public: - typedef Poco::AutoPtr Ptr; + using Ptr = Poco::AutoPtr; SSL_SESSION* sslSession() const; /// Returns the stored OpenSSL SSL_SESSION object. -protected: +protected: Session(SSL_SESSION* pSession); /// Creates a new Session object, using the given - /// SSL_SESSION object. - /// + /// SSL_SESSION object. + /// /// The SSL_SESSION's reference count is not changed. ~Session(); @@ -59,7 +59,7 @@ private: Session(); SSL_SESSION* _pSession; - + friend class SecureSocketImpl; };