VirtualBox

Ignore:
Timestamp:
Feb 11, 2011 1:04:47 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69996
Message:

VBoxAuth samples: updated to the new generic auth interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/auth/directoryservice/directoryservice.cpp

    r34563 r35943  
    11/** @file
    22 *
    3  * VBox Remote Desktop Protocol:
    4  * External Authentication Library:
     3 * VirtualBox External Authentication Library:
    54 * Mac OS X Authentication. This is based on
    65 * http://developer.apple.com/mac/library/samplecode/CryptNoMore/
     
    87
    98/*
    10  * Copyright (C) 2009-2010 Oracle Corporation
     9 * Copyright (C) 2009-2011 Oracle Corporation
    1110 *
    1211 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    258257
    259258RT_C_DECLS_BEGIN
    260 DECLEXPORT(AuthResult) AUTHCALL VRDPAuth(PAUTHUUID pUuid,
    261                                          AuthGuestJudgement guestJudgement,
    262                                          const char *pszUser,
    263                                          const char *pszPassword,
    264                                          const char *pszDomain)
     259DECLEXPORT(AuthResult) AUTHCALL AuthEntry(const char *szCaller,
     260                                          PAUTHUUID pUuid,
     261                                          AuthGuestJudgement guestJudgement,
     262                                          const char *szUser,
     263                                          const char *szPassword,
     264                                          const char *szDomain,
     265                                          int fLogon,
     266                                          unsigned clientId)
    265267{
    266268    /* Validate input */
     
    270272    /* Result to a default value */
    271273    AuthResult result = AuthResultAccessDenied;
     274
     275    /* Only process logon requests. */
     276    if (!fLogon)
     277        return result; /* Return value is ignored by the caller. */
    272278
    273279    tDirStatus dsErr = eDSNoErr;
     
    317323RT_C_DECLS_END
    318324
    319 static PAUTHENTRY gpfnAuthEntry = VRDPAuth;
    320 
     325static PAUTHENTRY3 gpfnAuthEntry = AuthEntry;
     326
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