mirror of
https://github.com/falk-werner/webfused
synced 2024-10-27 20:44:08 +00:00
13 lines
287 B
C++
13 lines
287 B
C++
#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);
|
|
}
|
|
} |