Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPopkornium18 <mail@popkornium18.de>2020-07-02 00:52:34 +0300
committerPopkornium18 <mail@popkornium18.de>2020-07-02 01:55:36 +0300
commit410837526c940f5ad1c84d60960cdbcb40d97019 (patch)
tree7f5589b314126f3288817379eeeadd86bb499676 /src/murmur/Cert.cpp
parente62d5abb3164a7fac8d0930f720d71de504dd632 (diff)
REFAC(server): replace NULL with nullptr
This changes all occurances of NULL in the murmur source dir to nullptr. Additionally explicit comparisons with NULL were removed.
Diffstat (limited to 'src/murmur/Cert.cpp')
-rw-r--r--src/murmur/Cert.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/murmur/Cert.cpp b/src/murmur/Cert.cpp
index 17ceab5f6..52adf638c 100644
--- a/src/murmur/Cert.cpp
+++ b/src/murmur/Cert.cpp
@@ -28,20 +28,20 @@ bool Server::isKeyForCert(const QSslKey &key, const QSslCertificate &cert) {
QByteArray qbaKey = key.toDer();
QByteArray qbaCert = cert.toDer();
- X509 *x509 = NULL;
- EVP_PKEY *pkey = NULL;
- BIO *mem = NULL;
+ X509 *x509 = nullptr;
+ EVP_PKEY *pkey = nullptr;
+ BIO *mem = nullptr;
mem = BIO_new_mem_buf(qbaKey.data(), qbaKey.size());
Q_UNUSED(BIO_set_close(mem, BIO_NOCLOSE));
- pkey = d2i_PrivateKey_bio(mem, NULL);
+ pkey = d2i_PrivateKey_bio(mem, nullptr);
BIO_free(mem);
mem = BIO_new_mem_buf(qbaCert.data(), qbaCert.size());
Q_UNUSED(BIO_set_close(mem, BIO_NOCLOSE));
- x509 = d2i_X509_bio(mem, NULL);
+ x509 = d2i_X509_bio(mem, nullptr);
BIO_free(mem);
- mem = NULL;
+ mem = nullptr;
if (x509 && pkey && X509_check_private_key(x509, pkey)) {
EVP_PKEY_free(pkey);