diff options
| author | 2022-07-22 18:33:38 +0100 | |
|---|---|---|
| committer | 2022-07-22 18:53:21 +0100 | |
| commit | 648f813f8c89e6e7d0ed5bda2c2149bee2babb09 (patch) | |
| tree | 5357669e57bb381c80bfdbd24ed4057a99db8e5b /src/modules/m_sslinfo.cpp | |
| parent | Update author list. (diff) | |
Switch from NULL to nullptr.
Diffstat (limited to 'src/modules/m_sslinfo.cpp')
| -rw-r--r-- | src/modules/m_sslinfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 4ee937496..7a4601289 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -141,11 +141,11 @@ public: LocalUser* luser = IS_LOCAL(user); if (!luser || nosslext.Get(luser)) - return NULL; + return nullptr; cert = SSLClientCert::GetCertificate(&luser->eh); if (!cert) - return NULL; + return nullptr; SetCertificate(user, cert); return cert; @@ -402,7 +402,7 @@ public: ModResult OnSetConnectClass(LocalUser* user, ConnectClass::Ptr myclass) override { ssl_cert* cert = cmd.sslapi.GetCertificate(user); - const char* error = NULL; + const char* error = nullptr; const std::string requiressl = myclass->config->getString("requiressl"); if (stdalgo::string::equalsci(requiressl, "trusted")) { |
