VirtualBox

Changeset 39741 in vbox


Ignore:
Timestamp:
Jan 10, 2012 4:00:49 PM (13 years ago)
Author:
vboxsync
Message:

pam_vbox: More cdecl stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/pam/pam_vbox.cpp

    r39740 r39741  
    5656
    5757#define VBOX_MODULE_NAME "pam_vbox"
     58
     59RT_C_DECLS_BEGIN
     60RTDECL(int) pam_sm_authenticate(pam_handle_t *hPAM, int iFlags, int argc, const char **argv);
     61RTDECL(int) pam_sm_setcred(pam_handle_t *hPAM, int iFlags, int argc, const char **argv);
     62RTDECL(int) pam_sm_acct_mgmt(pam_handle_t *hPAM, int iFlags, int argc, const char **argv);
     63RTDECL(int) pam_sm_open_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv);
     64RTDECL(int) pam_sm_close_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv);
     65RTDECL(int) pam_sm_chauthtok(pam_handle_t *hPAM, int iFlags, int argc, const char **argv);
     66RT_C_DECLS_END
    5867
    5968/** For debugging. */
     
    826835}
    827836
    828 RTDECL(int) pam_sm_setcred(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
     837
     838DECLEXPORT(int) pam_sm_setcred(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    829839{
    830840    pam_vbox_log(hPAM, "pam_vbox_setcred called, iFlags=0x%x\n", iFlags);
    831841    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]);
    833843    return PAM_SUCCESS;
    834844}
    835845
    836 RTDECL(int) pam_sm_acct_mgmt(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
     846
     847DECLEXPORT(int) pam_sm_acct_mgmt(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    837848{
    838849    pam_vbox_log(hPAM, "pam_vbox_acct_mgmt called\n");
     
    841852
    842853
    843 RTDECL(int) pam_sm_open_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
     854DECLEXPORT(int) pam_sm_open_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    844855{
    845856    pam_vbox_log(hPAM, "pam_vbox_open_session called\n");
     
    849860
    850861
    851 RTDECL(int) pam_sm_close_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
     862DECLEXPORT(int) pam_sm_close_session(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    852863{
    853864    pam_vbox_log(hPAM, "pam_vbox_close_session called\n");
     
    855866}
    856867
    857 RTDECL(int) pam_sm_chauthtok(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
     868
     869DECLEXPORT(int) pam_sm_chauthtok(pam_handle_t *hPAM, int iFlags, int argc, const char **argv)
    858870{
    859871    pam_vbox_log(hPAM, "pam_vbox_sm_chauthtok called\n");
     
    861873}
    862874
     875
    863876#ifdef DEBUG
    864 RTDECL(void) RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
     877DECLEXPORT(void) RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
    865878{
    866879    pam_vbox_log(g_pam_handle,
     
    872885}
    873886#endif
     887
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette