A few PAM cleanups

Print header found message only if libraries also found.
Change header guards to pragma once.
Check return value of store_client_password().
This commit is contained in:
Esa Korhonen
2017-08-15 11:16:38 +03:00
parent db8ad7efa8
commit 2784858495
4 changed files with 7 additions and 16 deletions

View File

@ -7,8 +7,8 @@
find_path(PAM_INCLUDE_DIR pam_appl.h PATH_SUFFIXES security)
find_library(PAM_LIBRARIES NAMES pam)
message(STATUS "Found PAM include dirs: ${PAM_INCLUDE_DIR}")
if (PAM_INCLUDE_DIR AND PAM_LIBRARIES)
message(STATUS "Found PAM headers: ${PAM_INCLUDE_DIR}")
message(STATUS "Found PAM: ${PAM_LIBRARIES}")
set(PAM_FOUND TRUE CACHE INTERNAL "")
else()