summaryrefslogtreecommitdiff
path: root/include/pam_authenticate.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2019-10-24 21:12:47 +0300
committerJames Feist <james.feist@linux.intel.com>2019-11-11 23:33:48 +0300
commit99131cd04bfc4a187e7a8d63803cb8911e64a08e (patch)
treec85b64c16b541561965f014d6e850279da04d3db /include/pam_authenticate.hpp
parenta9cbc9cd3c957996831d731ad50c69f920ab065b (diff)
downloadbmcweb-99131cd04bfc4a187e7a8d63803cb8911e64a08e.tar.xz
Replace all uses of NULL with nullptr
This was an automatic change made by clang-tidy. It moves all uses of NULL to nullptr, which are equivalent, but nullptr is prefered. Tested: Code compiles. Signed-off-by: Ed Tanous <ed.tanous@intel.com> Change-Id: I9526599b222693c9723a69934b599c7a5b5d1fbf
Diffstat (limited to 'include/pam_authenticate.hpp')
-rw-r--r--include/pam_authenticate.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/pam_authenticate.hpp b/include/pam_authenticate.hpp
index 464f171446..5d78efcfc1 100644
--- a/include/pam_authenticate.hpp
+++ b/include/pam_authenticate.hpp
@@ -54,7 +54,7 @@ inline bool pamAuthenticateUser(const std::string_view username,
std::string passStr(password);
const struct pam_conv localConversation = {
pamFunctionConversation, const_cast<char*>(passStr.c_str())};
- pam_handle_t* localAuthHandle = NULL; // this gets set by pam_start
+ pam_handle_t* localAuthHandle = nullptr; // this gets set by pam_start
if (pam_start("webserver", userStr.c_str(), &localConversation,
&localAuthHandle) != PAM_SUCCESS)
@@ -91,7 +91,7 @@ inline int pamUpdatePassword(const std::string& username,
{
const struct pam_conv localConversation = {
pamFunctionConversation, const_cast<char*>(password.c_str())};
- pam_handle_t* localAuthHandle = NULL; // this gets set by pam_start
+ pam_handle_t* localAuthHandle = nullptr; // this gets set by pam_start
int retval = pam_start("passwd", username.c_str(), &localConversation,
&localAuthHandle);