1
0
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:
Falk Werner
2020-03-19 18:33:16 +01:00
parent 35e63bb182
commit b53e002de0
5 changed files with 48 additions and 1 deletions

13
test/test_pam.cc Normal file
View 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);
}
}