Changeset 39741 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jan 10, 2012 4:00:49 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/pam/pam_vbox.cpp
r39740 r39741 56 56 57 57 #define VBOX_MODULE_NAME "pam_vbox" 58 59 RT_C_DECLS_BEGIN 60 RTDECL(int) pam_sm_authenticate(pam_handle_t *hPAM, int iFlags, int argc, const char **argv); 61 RTDECL(int) pam_sm_setcred(pam_handle_t *hPAM, int iFlags, int argc, const char **argv); 62 RTDECL(int) pam_sm_acct_mgmt(pam_handle_t *hPAM, int iFlags, int argc, const char **argv); 63 RTDECL(int) pam_sm_open_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv); 64 RTDECL(int) pam_sm_close_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv); 65 RTDECL(int) pam_sm_chauthtok(pam_handle_t *hPAM, int iFlags, int argc, const char **argv); 66 RT_C_DECLS_END 58 67 59 68 /** For debugging. */ … … 826 835 } 827 836 828 RTDECL(int) pam_sm_setcred(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 837 838 DECLEXPORT(int) pam_sm_setcred(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 829 839 { 830 840 pam_vbox_log(hPAM, "pam_vbox_setcred called, iFlags=0x%x\n", iFlags); 831 841 for (int i = 0; i < argc; i++) 832 pam_vbox_log(hPAM, "pam_vbox_setcred: argv[ 0] = %s\n", argv[i]);842 pam_vbox_log(hPAM, "pam_vbox_setcred: argv[%d] = %s\n", i, argv[i]); 833 843 return PAM_SUCCESS; 834 844 } 835 845 836 RTDECL(int) pam_sm_acct_mgmt(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 846 847 DECLEXPORT(int) pam_sm_acct_mgmt(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 837 848 { 838 849 pam_vbox_log(hPAM, "pam_vbox_acct_mgmt called\n"); … … 841 852 842 853 843 RTDECL(int) pam_sm_open_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)854 DECLEXPORT(int) pam_sm_open_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 844 855 { 845 856 pam_vbox_log(hPAM, "pam_vbox_open_session called\n"); … … 849 860 850 861 851 RTDECL(int) pam_sm_close_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)862 DECLEXPORT(int) pam_sm_close_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 852 863 { 853 864 pam_vbox_log(hPAM, "pam_vbox_close_session called\n"); … … 855 866 } 856 867 857 RTDECL(int) pam_sm_chauthtok(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 868 869 DECLEXPORT(int) pam_sm_chauthtok(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 858 870 { 859 871 pam_vbox_log(hPAM, "pam_vbox_sm_chauthtok called\n"); … … 861 873 } 862 874 875 863 876 #ifdef DEBUG 864 RTDECL(void) RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)877 DECLEXPORT(void) RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction) 865 878 { 866 879 pam_vbox_log(g_pam_handle, … … 872 885 } 873 886 #endif 887
Note:
See TracChangeset
for help on using the changeset viewer.