diff options
author | Loïc Collignon <loic.collignon@iot.bzh> | 2017-07-11 06:36:33 +0200 |
---|---|---|
committer | Loïc Collignon <loic.collignon@iot.bzh> | 2017-07-11 06:36:33 +0200 |
commit | 0455a7401f9f0f9bfad82c5ddf04f7dd70b0b852 (patch) | |
tree | 819bc150cb62c8eb344656086bbb52892f5288b8 /pam | |
parent | 66b90d26cfd555b2aa5fef67d31e539a70256719 (diff) |
first somewhat working version.
Change-Id: I3101dc6b8add87eccac3bbf177b1320137f72463
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'pam')
-rw-r--r-- | pam/CMakeLists.txt | 11 | ||||
-rw-r--r-- | pam/agl-identity-usbstick-pam.c | 36 |
2 files changed, 0 insertions, 47 deletions
diff --git a/pam/CMakeLists.txt b/pam/CMakeLists.txt deleted file mode 100644 index 5d2de63..0000000 --- a/pam/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ - -# Add PAM dependency -# FIXME: Require PAM, but it's seems there is no find_package. -set(PAM_INCLUDE_DIR "/usr/include/") -set(PAM_LIB "/lib64/libpam.so.0") -include_directories(${PAM_INCLUDE_DIR}) - -# Add the target -add_library(agl-identity-usbstick-pam SHARED agl-identity-usbstick-pam.c) -target_link_libraries(agl-identity-usbstick-pam ${PAM_LIB}) -set_property(TARGET agl-identity-usbstick-pam PROPERTY POSITION_IDENPENDENT_CODE ON) diff --git a/pam/agl-identity-usbstick-pam.c b/pam/agl-identity-usbstick-pam.c deleted file mode 100644 index 74b3051..0000000 --- a/pam/agl-identity-usbstick-pam.c +++ /dev/null @@ -1,36 +0,0 @@ -#define PAM_SM_AUTH -#define PAM_SM_ACCOUNT -#define PAM_SM_SESSION -#define PAM_SM_PASSWORD -#include <security/pam_modules.h> - -PAM_EXTERN int pam_sm_authenticate(pam_handle_t* pamh, int flags, int argc, const char** argv) -{ - return PAM_SUCCESS; -} - -PAM_EXTERN int pam_sm_setcred(pam_handle_t* pamh, int flags, int argc, const char** argv) -{ - return PAM_SUCCESS; -} - -PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t* pamh, int flags, int argc, const char** argv) -{ - return PAM_SUCCESS; -} - -PAM_EXTERN int pam_sm_open_session(pam_handle_t* pamh, int flags, int argc, const char** argv) -{ - return PAM_SUCCESS; -} - -PAM_EXTERN int pam_sm_close_session(pam_handle_t* pamh, int flags, int argc, const char** argv) -{ - return PAM_SUCCESS; -} - -PAM_EXTERN int pam_sm_chauthtok(pam_handle_t* pamh, int flags, int argc, const char** argv) -{ - return PAM_SUCCESS; -} - |