VBoxAuthSimple.cpp revision c8befbec2916e0bba4d254c81d87e5b0e78013ba
/** @file
*
* VBox Remote Desktop Protocol:
* External Authentication Library:
* Simple Authentication.
*/
/*
* Copyright (C) 2006-2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <VBox/VRDPAuth.h>
using namespace com;
/* If defined, debug messages will be written to the specified file. */
//#define VRDPAUTH_DEBUG_FILE_NAME "/tmp/VRDPAuth.log"
{
#ifdef VRDPAUTH_DEBUG_FILE_NAME
char buffer[1024];
fclose(f);
#endif
}
const char *szUser,
const char *szPassword,
const char *szDomain,
int fLogon,
unsigned clientId)
{
/* default is failed */
/* only interested in logon */
if (!fLogon)
/* return value ignored */
return result;
char uuid[RTUUID_STR_LENGTH] = {0};
if (pUuid)
/* the user might contain a domain name, split it */
if (user)
user++;
else
{
/* lookup in VM's extra data? */
if (pUuid)
{
if (machine)
} else
/* lookup global extra data */
{
/* calculate hash */
}
}
return result;
}
/* Verify the function prototype. */