Changeset 34558 in vbox for trunk/include/VBox/VRDPAuth.h
- Timestamp:
- Dec 1, 2010 10:56:44 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VRDPAuth.h
r28800 r34558 1 1 /** @file 2 * VBox Remote Desktop Protocol - External Authentication Library Interface. 3 * (VRDP) 2 * VirtualBox External Authentication Library Interface. 4 3 */ 5 4 6 5 /* 7 * Copyright (C) 2006-20 07Oracle Corporation6 * Copyright (C) 2006-2010 Oracle Corporation 8 7 * 9 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 29 28 30 29 /* The following 2 enums are 32 bits values.*/ 31 typedef enum _VRDPAuthResult30 typedef enum AuthResult 32 31 { 33 VRDPAuthAccessDenied = 0,34 VRDPAuthAccessGranted = 1,35 VRDPAuthDelegateToGuest = 2,36 VRDPAuthSizeHack = 0x7fffffff37 } VRDPAuthResult;32 AuthResultAccessDenied = 0, 33 AuthResultAccessGranted = 1, 34 AuthResultDelegateToGuest = 2, 35 AuthResultSizeHack = 0x7fffffff 36 } AuthResult; 38 37 39 typedef enum _VRDPAuthGuestJudgement38 typedef enum AuthGuestJudgement 40 39 { 41 VRDPAuthGuestNotAsked = 0,42 VRDPAuthGuestAccessDenied = 1,43 VRDPAuthGuestNoJudgement = 2,44 VRDPAuthGuestAccessGranted = 3,45 VRDPAuthGuestNotReacted = 4,46 VRDPAuthGuestSizeHack = 0x7fffffff47 } VRDPAuthGuestJudgement;40 AuthGuestNotAsked = 0, 41 AuthGuestAccessDenied = 1, 42 AuthGuestNoJudgement = 2, 43 AuthGuestAccessGranted = 3, 44 AuthGuestNotReacted = 4, 45 AuthGuestSizeHack = 0x7fffffff 46 } AuthGuestJudgement; 48 47 49 48 /* UUID memory representation. Array of 16 bytes. */ 50 typedef unsigned char VRDPAUTHUUID[16];51 typedef VRDPAUTHUUID *PVRDPAUTHUUID;49 typedef unsigned char AUTHUUID[16]; 50 typedef AUTHUUID *PAUTHUUID; 52 51 /* 53 52 Note: VirtualBox uses a consistent binary representation of UUIDs on all platforms. For this reason … … 65 64 /* The library entry point calling convention. */ 66 65 #ifdef _MSC_VER 67 # define VRDPAUTHCALL __cdecl66 # define AUTHCALL __cdecl 68 67 #elif defined(__GNUC__) 69 # define VRDPAUTHCALL68 # define AUTHCALL 70 69 #else 71 70 # error "Unsupported compiler" … … 74 73 75 74 /** 76 * Authentication library entry point. Decides whether to allow 77 * a client connection. 75 * Authentication library entry point. 78 76 * 79 77 * Parameters: 80 78 * 81 * pUuid Pointer to the UUID of the virtual machine 82 * which the client connected to. 79 * pUuid Pointer to the UUID of the accessed virtual machine. Can be NULL. 83 80 * guestJudgement Result of the guest authentication. 84 81 * szUser User name passed in by the client (UTF8). … … 88 85 * Return code: 89 86 * 90 * VRDPAuthAccessDenied Client access has been denied.91 * VRDPAuthAccessGranted Client has the right to use the92 * 93 * VRDPAuthDelegateToGuest Guest operating system must94 * 95 * 96 * 97 * 87 * AuthAccessDenied Client access has been denied. 88 * AuthAccessGranted Client has the right to use the 89 * virtual machine. 90 * AuthDelegateToGuest Guest operating system must 91 * authenticate the client and the 92 * library must be called again with 93 * the result of the guest 94 * authentication. 98 95 */ 99 typedef VRDPAuthResult VRDPAUTHCALL VRDPAUTHENTRY(PVRDPAUTHUUID pUuid,100 VRDPAuthGuestJudgement guestJudgement,101 102 103 96 typedef AuthResult AUTHCALL AUTHENTRY(PAUTHUUID pUuid, 97 AuthGuestJudgement guestJudgement, 98 const char *szUser, 99 const char *szPassword, 100 const char *szDomain); 104 101 105 102 106 typedef VRDPAUTHENTRY *PVRDPAUTHENTRY; 103 typedef AUTHENTRY *PAUTHENTRY; 104 105 #define AUTHENTRY_NAME "VRDPAuth" 107 106 108 107 /** 109 * Authentication library entry point version 2. Decides whether to allow 110 * a client connection. 108 * Authentication library entry point version 2. 111 109 * 112 110 * Parameters: 113 111 * 114 * pUuid Pointer to the UUID of the virtual machine 115 * which the client connected to. 112 * pUuid Pointer to the UUID of the accessed virtual machine. Can be NULL. 116 113 * guestJudgement Result of the guest authentication. 117 114 * szUser User name passed in by the client (UTF8). … … 124 121 * Return code: 125 122 * 126 * VRDPAuthAccessDenied Client access has been denied.127 * VRDPAuthAccessGranted Client has the right to use the128 * 129 * VRDPAuthDelegateToGuest Guest operating system must130 * 131 * 132 * 133 * 123 * AuthAccessDenied Client access has been denied. 124 * AuthAccessGranted Client has the right to use the 125 * virtual machine. 126 * AuthDelegateToGuest Guest operating system must 127 * authenticate the client and the 128 * library must be called again with 129 * the result of the guest 130 * authentication. 134 131 * 135 132 * Note: When 'fLogon' is 0, only pUuid and clientId are valid and the return 136 133 * code is ignored. 137 134 */ 138 typedef VRDPAuthResult VRDPAUTHCALL VRDPAUTHENTRY2(PVRDPAUTHUUID pUuid,139 VRDPAuthGuestJudgement guestJudgement,140 141 142 143 144 135 typedef AuthResult AUTHCALL AUTHENTRY2(PAUTHUUID pUuid, 136 AuthGuestJudgement guestJudgement, 137 const char *szUser, 138 const char *szPassword, 139 const char *szDomain, 140 int fLogon, 141 unsigned clientId); 145 142 146 143 147 typedef VRDPAUTHENTRY2 *PVRDPAUTHENTRY2; 144 typedef AUTHENTRY2 *PAUTHENTRY2; 145 146 #define AUTHENTRY2_NAME "VRDPAuth2" 147 148 /** 149 * Authentication library entry point version 3. 150 * 151 * Parameters: 152 * 153 * szCaller The name of the component which calls the library (UTF8). 154 * pUuid Pointer to the UUID of the accessed virtual machine. Can be NULL. 155 * guestJudgement Result of the guest authentication. 156 * szUser User name passed in by the client (UTF8). 157 * szPassword Password passed in by the client (UTF8). 158 * szDomain Domain passed in by the client (UTF8). 159 * fLogon Boolean flag. Indicates whether the entry point is called 160 * for a client logon or the client disconnect. 161 * clientId Server side unique identifier of the client. 162 * 163 * Return code: 164 * 165 * AuthAccessDenied Client access has been denied. 166 * AuthAccessGranted Client has the right to use the 167 * virtual machine. 168 * AuthDelegateToGuest Guest operating system must 169 * authenticate the client and the 170 * library must be called again with 171 * the result of the guest 172 * authentication. 173 * 174 * Note: When 'fLogon' is 0, only pszCaller, pUuid and clientId are valid and the return 175 * code is ignored. 176 */ 177 typedef AuthResult AUTHCALL AUTHENTRY3(const char *szCaller, 178 PAUTHUUID pUuid, 179 AuthGuestJudgement guestJudgement, 180 const char *szUser, 181 const char *szPassword, 182 const char *szDomain, 183 int fLogon, 184 unsigned clientId); 185 186 187 typedef AUTHENTRY3 *PAUTHENTRY3; 188 189 #define AUTHENTRY3_NAME "AuthEntry" 148 190 149 191 #endif
Note:
See TracChangeset
for help on using the changeset viewer.