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

@ -1,3 +1,4 @@
#pragma once
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
@ -10,10 +11,6 @@
* of this software will be governed by version 2 or later of the General
* Public License.
*/
#ifndef PAMBACKENDSESSION_HH
#define PAMBACKENDSESSION_HH
#include "pam_backend_auth.hh"
#include <stdint.h>
@ -34,6 +31,3 @@ private:
pam_auth_state m_state; /**< Authentication state*/
uint8_t m_sequence; /**< The next packet seqence number */
};
#endif /* PAMBACKENDSESSION_HH */