aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Wildt <[email protected]>2017-07-10 09:54:34 +0200
committerPatrick Wildt <[email protected]>2017-07-10 09:55:07 +0200
commit825c23811f480d3c3646ded125c9e7b7dc9feb8f (patch)
tree50585222b1528658533f2ab0b4eed0c945499998
parent8352476972cbf2b942d1afdbce157b7a659717ef (diff)
BearSSL: replace more NULLs with nullptr
Based on feedback from @securitykernel on the PR.
-rw-r--r--src/lib/prov/bearssl/bearssl_ec.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/prov/bearssl/bearssl_ec.cpp b/src/lib/prov/bearssl/bearssl_ec.cpp
index e689f34a7..fe661f357 100644
--- a/src/lib/prov/bearssl/bearssl_ec.cpp
+++ b/src/lib/prov/bearssl/bearssl_ec.cpp
@@ -84,12 +84,12 @@ class BearSSL_ECDSA_Verification_Operation : public PK_Ops::Verification
throw Lookup_Error("BearSSL ECDSA does not support this curve");
m_hash = BearSSL_hash_class_for(emsa);
- if (m_hash == NULL)
+ if (m_hash == nullptr)
throw Lookup_Error("BearSSL ECDSA does not support EMSA " + emsa);
const SCAN_Name req(emsa);
m_hf = make_bearssl_hash(req.arg(0));
- if (m_hf == NULL)
+ if (m_hf == nullptr)
throw Lookup_Error("BearSSL ECDSA does not support hash " + req.arg(0));
const secure_vector<uint8_t> enc = EC2OSP(ecdsa.public_point(), PointGFp::UNCOMPRESSED);
@@ -143,12 +143,12 @@ class BearSSL_ECDSA_Signing_Operation : public PK_Ops::Signature
throw Lookup_Error("BearSSL ECDSA does not support this curve");
m_hash = BearSSL_hash_class_for(emsa);
- if (m_hash == NULL)
+ if (m_hash == nullptr)
throw Lookup_Error("BearSSL ECDSA does not support EMSA " + emsa);
const SCAN_Name req(emsa);
m_hf = make_bearssl_hash(req.arg(0));
- if (m_hf == NULL)
+ if (m_hf == nullptr)
throw Lookup_Error("BearSSL ECDSA does not support hash " + req.arg(0));
m_key.xlen = ecdsa.private_value().bytes();