mirror of
https://github.com/falk-werner/webfused
synced 2026-03-02 04:09:19 +00:00
added dependency to linux-pam
This commit is contained in:
13
test/test_pam.cc
Normal file
13
test/test_pam.cc
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <security/pam_appl.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(pam, start)
|
||||
{
|
||||
pam_handle_t * handle = nullptr;
|
||||
struct pam_conv conv = { nullptr, nullptr };
|
||||
int rc = pam_start("test", nullptr, &conv, &handle);
|
||||
if (PAM_SUCCESS == rc)
|
||||
{
|
||||
pam_end(handle, 0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user