Changeset 62882 in vbox for trunk/src/VBox/Additions/common/pam
- Timestamp:
- Aug 2, 2016 3:31:02 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/pam/pam_vbox.cpp
r62521 r62882 120 120 static void pam_vbox_error(pam_handle_t *hPAM, const char *pszFormat, ...) 121 121 { 122 RT_NOREF1(hPAM); 122 123 va_list va; 123 124 char *buf; … … 141 142 static void pam_vbox_log(pam_handle_t *hPAM, const char *pszFormat, ...) 142 143 { 144 RT_NOREF1(hPAM); 143 145 if (g_verbosity) 144 146 { … … 305 307 static void pam_vbox_shutdown(pam_handle_t *hPAM) 306 308 { 309 RT_NOREF1(hPAM); 307 310 VbglR3Term(); 308 311 } … … 552 555 * 553 556 * @return IPRT status code. 554 * @param ThreadSelf Thread struct to this thread.557 * @param hThreadSelf Thread handle. 555 558 * @param pvUser Pointer to a PAMVBOXTHREAD structure providing 556 559 * required data used / set by the thread. 557 560 */ 558 static DECLCALLBACK(int) pam_vbox_wait_thread(RTTHREAD ThreadSelf, void *pvUser) 559 { 561 static DECLCALLBACK(int) pam_vbox_wait_thread(RTTHREAD hThreadSelf, void *pvUser) 562 { 563 RT_NOREF1(hThreadSelf); 560 564 PPAMVBOXTHREAD pUserData = (PPAMVBOXTHREAD)pvUser; 561 565 AssertPtr(pUserData); … … 677 681 static int pam_vbox_wait_for_creds(pam_handle_t *hPAM, uint32_t uClientID, uint32_t uTimeoutMS) 678 682 { 683 RT_NOREF1(uClientID); 679 684 PAMVBOXTHREAD threadData; 680 685 threadData.hPAM = hPAM; … … 702 707 703 708 704 DECLEXPORT(int) pam_sm_authenticate(pam_handle_t *hPAM, int iFlags, 705 int argc, const char **argv) 706 { 709 DECLEXPORT(int) pam_sm_authenticate(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 710 { 711 RT_NOREF1(iFlags); 712 707 713 /* Parse arguments. */ 708 714 for (int i = 0; i < argc; i++) … … 848 854 DECLEXPORT(int) pam_sm_acct_mgmt(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 849 855 { 856 RT_NOREF3(iFlags, argc, argv); 850 857 pam_vbox_log(hPAM, "pam_vbox_acct_mgmt called\n"); 851 858 return PAM_SUCCESS; … … 855 862 DECLEXPORT(int) pam_sm_open_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 856 863 { 864 RT_NOREF3(iFlags, argc, argv); 857 865 pam_vbox_log(hPAM, "pam_vbox_open_session called\n"); 858 866 RTPrintf("This session was provided by VirtualBox Guest Additions. Have a lot of fun!\n"); … … 863 871 DECLEXPORT(int) pam_sm_close_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 864 872 { 873 RT_NOREF3(iFlags, argc, argv); 865 874 pam_vbox_log(hPAM, "pam_vbox_close_session called\n"); 866 875 return PAM_SUCCESS; … … 870 879 DECLEXPORT(int) pam_sm_chauthtok(pam_handle_t *hPAM, int iFlags, int argc, const char **argv) 871 880 { 881 RT_NOREF3(iFlags, argc, argv); 872 882 pam_vbox_log(hPAM, "pam_vbox_sm_chauthtok called\n"); 873 883 return PAM_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.