]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/UserCredential.h
StartPciDevicesOnBridge() should correct return value.
[mirror_edk2.git] / MdePkg / Include / Protocol / UserCredential.h
CommitLineData
2832b228 1/** @file\r
2 UEFI 2.2 User Credential Protocol definition.\r
3\r
4 Attached to a device handle, this protocol identifies a single means of identifying the user.\r
5\r
6 Copyright (c) 2009, Intel Corporation \r
7 All rights reserved. This program and the accompanying materials \r
8 are licensed and made available under the terms and conditions of the BSD License \r
9 which accompanies this distribution. The full text of the license may be found at \r
10 http://opensource.org/licenses/bsd-license.php \r
11\r
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
14\r
15**/\r
16\r
17#ifndef __USER_CREDENTIAL_H__\r
18#define __USER_CREDENTIAL_H__\r
19\r
20#define EFI_USER_CREDENTIAL_PROTOCOL_GUID \\r
21 { \\r
22 0x71ee5e94, 0x65b9, 0x45d5, { 0x82, 0x1a, 0x3a, 0x4d, 0x86, 0xcf, 0xe6, 0xbe } \\r
23 }\r
24\r
25typedef VOID *EFI_USER_PROFILE_HANDLE;\r
26typedef VOID *EFI_USER_INFO_HANDLE;\r
27\r
28///\r
29/// The attributes of the user profile information.\r
30///\r
31typedef UINT16 EFI_USER_INFO_ATTRIBS;\r
32#define EFI_USER_INFO_STORAGE 0x000F\r
33#define EFI_USER_INFO_STORAGE_VOLATILE 0x0000\r
34#define EFI_USER_INFO_STORAGE_CREDENTIAL_NV 0x0001\r
35#define EFI_USER_INFO_STORAGE_PLATFORM_NV 0x0002\r
36\r
37#define EFI_USER_INFO_ACCESS 0x0070\r
38#define EFI_USER_INFO_PUBLIC 0x0010\r
39#define EFI_USER_INFO_PRIVATE 0x0020\r
40#define EFI_USER_INFO_PROTECTED 0x0030\r
41#define EFI_USER_INFO_EXCLUSIVE 0x0080\r
42\r
43///\r
16c5446f 44/// User information structure\r
2832b228 45///\r
46typedef struct {\r
47 ///\r
48 /// The user credential identifier associated with this user information or else Nil if the \r
49 /// information is not associated with any specific credential.\r
50 ///\r
51 EFI_GUID Credential;\r
52 ///\r
53 /// The type of user information.\r
54 ///\r
55 UINT8 InfoType;\r
56 ///\r
57 /// Must be set to 0.\r
58 ///\r
59 UINT8 Reserved1;\r
60 ///\r
61 /// The attributes of the user profile information.\r
62 ///\r
63 EFI_USER_INFO_ATTRIBS InfoAttribs;\r
64 ///\r
65 /// The size of the user information, in bytes, including this header.\r
66 ///\r
67 UINT32 InfoSize;\r
68} EFI_USER_INFO;\r
69\r
70///\r
71/// User credential class GUIDs\r
72///\r
73#define EFI_USER_CREDENTIAL_CLASS_UNKNOWN \\r
74 { 0x5cf32e68, 0x7660, 0x449b, { 0x80, 0xe6, 0x7e, 0xa3, 0x6e, 0x3, 0xf6, 0xa8 } }\r
75#define EFI_USER_CREDENTIAL_CLASS_PASSWORD \\r
76 { 0xf8e5058c, 0xccb6, 0x4714, { 0xb2, 0x20, 0x3f, 0x7e, 0x3a, 0x64, 0xb, 0xd1 } }\r
77#define EFI_USER_CREDENTIAL_CLASS_SMART_CARD \\r
78 { 0x5f03ba33, 0x8c6b, 0x4c24, { 0xaa, 0x2e, 0x14, 0xa2, 0x65, 0x7b, 0xd4, 0x54 } }\r
79#define EFI_USER_CREDENTIAL_CLASS_FINGERPRINT \\r
80 { 0x32cba21f, 0xf308, 0x4cbc, { 0x9a, 0xb5, 0xf5, 0xa3, 0x69, 0x9f, 0x4, 0x4a } }\r
81#define EFI_USER_CREDENTIAL_CLASS_HANDPRINT \\r
82 { 0x5917ef16, 0xf723, 0x4bb9, { 0xa6, 0x4b, 0xd8, 0xc5, 0x32, 0xf4, 0xd8, 0xb5 } }\r
83#define EFI_USER_CREDENTIAL_CLASS_SECURE_CARD \\r
84 { 0x8a6b4a83, 0x42fe, 0x45d2, { 0xa2, 0xef, 0x46, 0xf0, 0x6c, 0x7d, 0x98, 0x52 } }\r
85\r
86typedef UINT64 EFI_CREDENTIAL_CAPABILITIES;\r
87#define EFI_CREDENTIAL_CAPABILITIES_ENROLL 0x0000000000000001\r
88\r
89///\r
90/// Credential logon flags \r
91///\r
92typedef UINT32 EFI_CREDENTIAL_LOGON_FLAGS;\r
93#define EFI_CREDENTIAL_LOGON_FLAG_AUTO 0x00000001\r
94#define EFI_CREDENTIAL_LOGON_FLAG_DEFAULT 0x00000002\r
95\r
96///\r
97/// User information record types\r
98///\r
99\r
100///\r
101/// No information.\r
102///\r
103#define EFI_USER_INFO_EMPTY_RECORD 0x00\r
104///\r
105/// Provide the user's name for the enrolled user.\r
106///\r
107#define EFI_USER_INFO_NAME_RECORD 0x01\r
108typedef CHAR16 *EFI_USER_INFO_NAME;\r
109///\r
110/// Provides the date and time when the user profile was created.\r
111///\r
112#define EFI_USER_INFO_CREATE_DATE_RECORD 0x02\r
113typedef EFI_TIME EFI_USER_INFO_CREATE_DATE;\r
114///\r
115/// Provides the date and time when the user profile was selected.\r
116///\r
117#define EFI_USER_INFO_USAGE_DATE_RECORD 0x03\r
118typedef EFI_TIME EFI_USER_INFO_USAGE_DATE;\r
119///\r
120/// Provides the number of times that the user profile has been selected.\r
121///\r
122#define EFI_USER_INFO_USAGE_COUNT_RECORD 0x04\r
123typedef UINT64 EFI_USER_INFO_USAGE_COUNT;\r
124///\r
125/// Provides a unique non-volatile user identifier for each enrolled user.\r
126///\r
127#define EFI_USER_INFO_IDENTIFIER_RECORD 0x05\r
128typedef UINT8 EFI_USER_INFO_IDENTIFIER[16];\r
129///\r
130/// Specifies the type of a particular credential associated with the user profile.\r
131///\r
132#define EFI_USER_INFO_CREDENTIAL_TYPE_RECORD 0x06\r
133typedef EFI_GUID EFI_USER_INFO_CREDENTIAL_TYPE;\r
134///\r
135/// Specifies the user-readable name of a particular credential type.\r
136///\r
137#define EFI_USER_INFO_CREDENTIAL_TYPE_NAME_RECORD 0x07\r
138typedef CHAR16 *EFI_USER_INFO_CREDENTIAL_TYPE_NAME;\r
139///\r
140/// Specifies the credential provider.\r
141///\r
142#define EFI_USER_INFO_CREDENTIAL_PROVIDER_RECORD 0x08\r
143typedef EFI_GUID EFI_USER_INFO_CREDENTIAL_PROVIDER;\r
144///\r
145/// Specifies the user-readable name of a particular credential's provider.\r
146///\r
147#define EFI_USER_INFO_CREDENTIAL_PROVIDER_NAME_RECORD 0x09\r
148typedef CHAR16 *EFI_USER_INFO_CREDENTIAL_PROVIDER_NAME;\r
149///\r
150/// Provides PKCS#11 credential information from a smart card.\r
151///\r
152#define EFI_USER_INFO_PKCS11_RECORD 0x0A\r
153///\r
154/// Provides standard biometric information in the format specified by the ISO 19785 (Common \r
155/// Biometric Exchange Formats Framework) specification.\r
156///\r
157#define EFI_USER_INFO_CBEFF_RECORD 0x0B\r
158typedef VOID *EFI_USER_INFO_CBEFF;\r
159///\r
160/// Indicates how close of a match the fingerprint must be in order to be considered a match.\r
161///\r
162#define EFI_USER_INFO_FAR_RECORD 0x0C\r
163typedef UINT8 EFI_USER_INFO_FAR;\r
164///\r
165/// Indicates how many attempts the user has to with a particular credential before the system prevents \r
166/// further attempts.\r
167///\r
168#define EFI_USER_INFO_RETRY_RECORD 0x0D\r
169typedef UINT8 EFI_USER_INFO_RETRY;\r
170///\r
171/// Provides the user's pre-OS access rights.\r
172///\r
173#define EFI_USER_INFO_ACCESS_POLICY_RECORD 0x0E\r
174\r
175typedef struct {\r
176 UINT32 Type; ///< Specifies the type of user access control.\r
177 UINT32 Size; ///< Specifies the size of the user access control record, in bytes, including this header.\r
178} EFI_USER_INFO_ACCESS_CONTROL;\r
179\r
180typedef EFI_USER_INFO_ACCESS_CONTROL EFI_USER_INFO_ACCESS_POLICY;\r
181\r
182///\r
183/// User Information access types\r
184///\r
185\r
186///\r
187/// Forbids the user from booting or loading executables from the specified device path or any child \r
188/// device paths.\r
189///\r
190#define EFI_USER_INFO_ACCESS_FORBID_LOAD 0x00000001\r
191///\r
192///\r
193/// Permits the user from booting or loading executables from the specified device path or any child \r
194/// device paths.\r
195///\r
196#define EFI_USER_INFO_ACCESS_PERMIT_LOAD 0x00000002\r
197///\r
198/// Presence of this record indicates that a user can update enrollment information.\r
199///\r
200#define EFI_USER_INFO_ACCESS_ENROLL_SELF 0x00000003\r
201///\r
202/// Presence of this record indicates that a user can enroll new users.\r
203///\r
204#define EFI_USER_INFO_ACCESS_ENROLL_OTHERS 0x00000004\r
205///\r
206/// Presence of this record indicates that a user can update the user information of any user.\r
207///\r
208#define EFI_USER_INFO_ACCESS_MANAGE 0x00000005\r
209///\r
210/// Describes permissions usable when configuring the platform.\r
211///\r
212#define EFI_USER_INFO_ACCESS_SETUP 0x00000006\r
213///\r
214/// Standard GUIDs for access to configure the platform.\r
215///\r
216#define EFI_USER_INFO_ACCESS_SETUP_ADMIN_GUID \\r
217 { 0x85b75607, 0xf7ce, 0x471e, { 0xb7, 0xe4, 0x2a, 0xea, 0x5f, 0x72, 0x32, 0xee } }\r
218#define EFI_USER_INFO_ACCESS_SETUP_NORMAL_GUID \\r
219 { 0x1db29ae0, 0x9dcb, 0x43bc, { 0x8d, 0x87, 0x5d, 0xa1, 0x49, 0x64, 0xdd, 0xe2 } }\r
220#define EFI_USER_INFO_ACCESS_SETUP_RESTRICTED_GUID \\r
221 { 0xbdb38125, 0x4d63, 0x49f4, { 0x82, 0x12, 0x61, 0xcf, 0x5a, 0x19, 0xa, 0xf8 } }\r
222\r
223///\r
224/// Forbids UEFI drivers from being started from the specified device path(s) or any child device paths.\r
225///\r
226#define EFI_USER_INFO_ACCESS_FORBID_CONNECT 0x00000007\r
227///\r
228/// Permits UEFI drivers to be started on the specified device path(s) or any child device paths.\r
229///\r
230#define EFI_USER_INFO_ACCESS_PERMIT_CONNECT 0x00000008\r
231///\r
232/// Modifies the boot order.\r
233///\r
234#define EFI_USER_INFO_ACCESS_BOOT_ORDER 0x00000009\r
235typedef UINT32 EFI_USER_INFO_ACCESS_BOOT_ORDER_HDR;\r
236\r
237#define EFI_USER_INFO_ACCESS_BOOT_ORDER_MASK 0x0000000F\r
238///\r
239/// Insert new boot options at the beginning of the boot order.\r
240///\r
241#define EFI_USER_INFO_ACCESS_BOOT_ORDER_INSERT 0x00000000\r
242///\r
243/// Append new boot options to the end of the boot order.\r
244///\r
245#define EFI_USER_INFO_ACCESS_BOOT_ORDER_APPEND 0x00000001\r
246///\r
247/// Replace the entire boot order.\r
248///\r
249#define EFI_USER_INFO_ACCESS_BOOT_ORDER_REPLACE 0x00000002\r
250///\r
251/// The Boot Manager will not attempt find a default boot device \r
252/// when the default boot order is does not lead to a bootable device.\r
253///\r
254#define EFI_USER_INFO_ACCESS_BOOT_ORDER_NODEFAULT 0x00000010\r
255\r
256///\r
257/// Provides the expression which determines which credentials are required to assert user identity.\r
258///\r
259#define EFI_USER_INFO_IDENTITY_POLICY_RECORD 0x0F\r
260\r
261typedef struct {\r
262 UINT32 Type; ///< Specifies either an operator or a data item. \r
263 UINT32 Length; ///< The length of this block, in bytes, including this header.\r
264} EFI_USER_INFO_IDENTITY_POLICY;\r
265\r
266///\r
267/// User identity policy expression operators.\r
268///\r
269#define EFI_USER_INFO_IDENTITY_FALSE 0x00\r
270#define EFI_USER_INFO_IDENTITY_TRUE 0x01\r
271#define EFI_USER_INFO_IDENTITY_CREDENTIAL_TYPE 0x02\r
272#define EFI_USER_INFO_IDENTITY_CREDENTIAL_PROVIDER 0x03\r
273#define EFI_USER_INFO_IDENTITY_NOT 0x10\r
274#define EFI_USER_INFO_IDENTITY_AND 0x11\r
275#define EFI_USER_INFO_IDENTITY_OR 0x12\r
276\r
277///\r
278/// Provides placeholder for additional user profile information identified by a GUID.\r
279///\r
280#define EFI_USER_INFO_GUID_RECORD 0xFF\r
281typedef EFI_GUID EFI_USER_INFO_GUID;\r
282\r
283///\r
284/// User information table\r
285/// A collection of EFI_USER_INFO records, prefixed with this header.\r
286///\r
287typedef struct {\r
288 UINT64 Size; ///< Total size of the user information table, in bytes.\r
289} EFI_USER_INFO_TABLE;\r
290\r
291typedef struct _EFI_USER_CREDENTIAL_PROTOCOL EFI_USER_CREDENTIAL_PROTOCOL;\r
292\r
293/**\r
294 Enroll a user on a credential provider.\r
295\r
296 This function enrolls a user profile using this credential provider. If a user profile is successfully \r
297 enrolled, it calls the User Manager Protocol function Notify() to notify the user manager driver \r
298 that credential information has changed.\r
299\r
300 @param[in] This Points to this instance of the EFI_USER_CREDENTIAL_PROTOCOL.\r
301 @param[in] User The user profile to enroll.\r
302 \r
303 @retval EFI_SUCCESS User profile was successfully enrolled.\r
304 @retval EFI_ACCESS_DENIED Current user profile does not permit enrollment on the user profile \r
305 handle. Either the user profile cannot enroll on any user profile or \r
306 cannot enroll on a user profile other than the current user profile.\r
307 @retval EFI_UNSUPPORTED This credential provider does not support enrollment in the pre-OS.\r
308 @retval EFI_DEVICE_ERROR The new credential could not be created because of a device error.\r
309 @retval EFI_INVALID_PARAMETER User does not refer to a valid user profile handle.\r
310**/\r
311typedef\r
312EFI_STATUS\r
313(EFIAPI *EFI_CREDENTIAL_ENROLL)(\r
314 IN CONST EFI_USER_CREDENTIAL_PROTOCOL *This,\r
315 IN EFI_USER_PROFILE_HANDLE User\r
316 );\r
317\r
318/**\r
319 Returns the user interface information used during user identification.\r
320\r
321 This function returns information about the form used when interacting with the user during user \r
322 identification. The form is the first enabled form in the form-set class \r
323 EFI_HII_USER_CREDENTIAL_FORMSET_GUID installed on the HII handle HiiHandle. If \r
324 the user credential provider does not require a form to identify the user, then this function should \r
325 return EFI_NOT_FOUND.\r
326\r
327 @param[in] This Points to this instance of the EFI_USER_CREDENTIAL_PROTOCOL.\r
328 @param[out] Hii On return, holds the HII database handle.\r
329 @param[out] FormSetId On return, holds the identifier of the form set which contains\r
330 the form used during user identification.\r
331 @param[out] FormId On return, holds the identifier of the form used during user identification.\r
332 \r
333 @retval EFI_SUCCESS Form returned successfully.\r
334 @retval EFI_NOT_FOUND Form not returned.\r
335**/\r
336typedef\r
337EFI_STATUS\r
338(EFIAPI *EFI_CREDENTIAL_FORM)(\r
339 IN CONST EFI_USER_CREDENTIAL_PROTOCOL *This,\r
340 OUT EFI_HII_HANDLE *Hii,\r
341 OUT EFI_GUID *FormSetId,\r
342 OUT EFI_FORM_ID *FormId\r
343 );\r
344\r
345/**\r
346 Returns bitmap used to describe the credential provider type.\r
347\r
348 This optional function returns a bitmap which is less than or equal to the number of pixels specified \r
349 by Width and Height. If no such bitmap exists, then EFI_NOT_FOUND is returned. \r
350\r
351 @param[in] This Points to this instance of the EFI_USER_CREDENTIAL_PROTOCOL.\r
352 @param[in,out] Width On entry, points to the desired bitmap width. If NULL then no bitmap information will \r
353 be returned. On exit, points to the width of the bitmap returned.\r
354 @param[in,out] Height On entry, points to the desired bitmap height. If NULL then no bitmap information will \r
355 be returned. On exit, points to the height of the bitmap returned\r
356 @param[out] Hii On return, holds the HII database handle. \r
357 @param[out] Image On return, holds the HII image identifier. \r
358 \r
359 @retval EFI_SUCCESS Image identifier returned successfully.\r
360 @retval EFI_NOT_FOUND Image identifier not returned.\r
361**/\r
362typedef\r
363EFI_STATUS\r
364(EFIAPI *EFI_CREDENTIAL_TILE)(\r
365 IN CONST EFI_USER_CREDENTIAL_PROTOCOL *This,\r
366 IN OUT UINTN *Width,\r
367 IN OUT UINTN *Height,\r
368 OUT EFI_HII_HANDLE *Hii,\r
369 OUT EFI_IMAGE_ID *Image\r
370 );\r
371\r
372/**\r
373 Returns string used to describe the credential provider type.\r
374\r
375 This function returns a string which describes the credential provider. If no such string exists, then \r
376 EFI_NOT_FOUND is returned. \r
377\r
378 @param[in] This Points to this instance of the EFI_USER_CREDENTIAL_PROTOCOL.\r
379 @param[out] Hii On return, holds the HII database handle.\r
380 @param[out] String On return, holds the HII string identifier.\r
381 \r
382 @retval EFI_SUCCESS String identifier returned successfully.\r
383 @retval EFI_NOT_FOUND String identifier not returned.\r
384**/\r
385typedef\r
386EFI_STATUS\r
387(EFIAPI *EFI_CREDENTIAL_TITLE)(\r
388 IN CONST EFI_USER_CREDENTIAL_PROTOCOL *This,\r
389 OUT EFI_HII_HANDLE *Hii,\r
390 OUT EFI_STRING_ID *String\r
391 );\r
392\r
393/**\r
394 Return the user identifier associated with the currently authenticated user.\r
395\r
396 This function returns the user identifier of the user authenticated by this credential provider. This \r
397 function is called after the credential-related information has been submitted on a form OR after a \r
398 call to Default() has returned that this credential is ready to log on.\r
399\r
400 @param[in] This Points to this instance of the EFI_USER_CREDENTIAL_PROTOCOL.\r
401 @param[in] User The user profile handle of the user profile currently being considered by the user \r
402 identity manager. If NULL, then no user profile is currently under consideration.\r
403 @param[out] Identifier On return, points to the user identifier. \r
404 \r
405 @retval EFI_SUCCESS User identifier returned successfully.\r
406 @retval EFI_NOT_READY No user identifier can be returned.\r
407 @retval EFI_ACCESS_DENIED The user has been locked out of this user credential.\r
408**/\r
409typedef\r
410EFI_STATUS\r
411(EFIAPI *EFI_CREDENTIAL_USER)(\r
412 IN CONST EFI_USER_CREDENTIAL_PROTOCOL *This,\r
413 IN EFI_USER_PROFILE_HANDLE User,\r
414 OUT EFI_USER_INFO_IDENTIFIER *Identifier\r
415 );\r
416\r
417/**\r
418 Indicate that user interface interaction has begun for the specified credential.\r
419\r
420 This function is called when a credential provider is selected by the user. If AutoLogon returns \r
421 FALSE, then the user interface will be constructed by the User Identity Manager. \r
422\r
423 @param[in] This Points to this instance of the EFI_USER_CREDENTIAL_PROTOCOL.\r
424 @param[out] AutoLogon On return, points to the credential provider's capabilities after the credential provider \r
425 has been selected by the user. \r
426 \r
427 @retval EFI_SUCCESS Credential provider successfully selected.\r
428**/\r
429typedef\r
430EFI_STATUS\r
431(EFIAPI *EFI_CREDENTIAL_SELECT)(\r
432 IN CONST EFI_USER_CREDENTIAL_PROTOCOL *This,\r
433 OUT EFI_CREDENTIAL_LOGON_FLAGS *AutoLogon\r
434 ); \r
435\r
436/**\r
437 Indicate that user interface interaction has ended for the specified credential.\r
438\r
439 This function is called when a credential provider is deselected by the user.\r
440\r
441 @param[in] This Points to this instance of the EFI_USER_CREDENTIAL_PROTOCOL.\r
442 \r
443 @retval EFI_SUCCESS Credential provider successfully deselected.\r
444**/\r
445typedef\r
446EFI_STATUS\r
447(EFIAPI *EFI_CREDENTIAL_DESELECT)(\r
448 IN CONST EFI_USER_CREDENTIAL_PROTOCOL *This\r
449 );\r
450\r
451/**\r
452 Return the default logon behavior for this user credential.\r
453\r
454 This function reports the default login behavior regarding this credential provider. \r
455\r
456 @param[in] This Points to this instance of the EFI_USER_CREDENTIAL_PROTOCOL.\r
457 @param[out] AutoLogon On return, holds whether the credential provider should be used by default to \r
458 automatically log on the user. \r
459 \r
460 @retval EFI_SUCCESS Default information successfully returned.\r
461**/\r
462typedef \r
463EFI_STATUS\r
464(EFIAPI *EFI_CREDENTIAL_DEFAULT)(\r
465 IN CONST EFI_USER_CREDENTIAL_PROTOCOL *This,\r
466 OUT EFI_CREDENTIAL_LOGON_FLAGS *AutoLogon\r
467 );\r
468\r
469/**\r
470 Return information attached to the credential provider.\r
471\r
472 This function returns user information. \r
473\r
474 @param[in] This Points to this instance of the EFI_USER_CREDENTIAL_PROTOCOL.\r
475 @param[in] UserInfo Handle of the user information data record. \r
476 @param[out] Info On entry, points to a buffer of at least *InfoSize bytes. On exit, holds the user \r
477 information. If the buffer is too small to hold the information, then \r
478 EFI_BUFFER_TOO_SMALL is returned and InfoSize is updated to contain the \r
479 number of bytes actually required.\r
480 @param[in,out] InfoSize On entry, points to the size of Info. On return, points to the size of the user \r
481 information. \r
482 \r
483 @retval EFI_SUCCESS Information returned successfully.\r
484 @retval EFI_ACCESS_DENIED The information about the specified user cannot be accessed by the \r
485 current user.\r
486 @retval EFI_BUFFER_TOO_SMALL The size specified by InfoSize is too small to hold all of the user \r
487 information. The size required is returned in *InfoSize.\r
488**/\r
489typedef\r
490EFI_STATUS\r
491(EFIAPI *EFI_CREDENTIAL_GET_INFO)(\r
492 IN CONST EFI_USER_CREDENTIAL_PROTOCOL *This,\r
493 IN EFI_USER_INFO_HANDLE UserInfo,\r
494 OUT EFI_USER_INFO *Info,\r
495 IN OUT UINTN *InfoSize\r
496 );\r
497\r
498/**\r
499 Enumerate all of the enrolled users on the platform.\r
500\r
501 This function returns the next user information record. To retrieve the first user information record \r
502 handle, point UserInfo at a NULL. Each subsequent call will retrieve another user information \r
503 record handle until there are no more, at which point UserInfo will point to NULL. \r
504\r
505 @param[in] This Points to this instance of the EFI_USER_CREDENTIAL_PROTOCOL.\r
506 @param[in,out] UserInfo On entry, points to the previous user information handle or NULL to start \r
507 enumeration. On exit, points to the next user information handle or NULL if there is \r
508 no more user information.\r
509 \r
510 @retval EFI_SUCCESS User information returned.\r
511 @retval EFI_NOT_FOUND No more user information found.\r
512**/\r
513typedef\r
514EFI_STATUS\r
515(EFIAPI *EFI_CREDENTIAL_GET_NEXT_INFO)(\r
516 IN CONST EFI_USER_CREDENTIAL_PROTOCOL *This,\r
517 IN OUT EFI_USER_INFO_HANDLE *UserInfo\r
518 );\r
519\r
520///\r
521/// This protocol provides support for a single class of credentials\r
522///\r
523struct _EFI_USER_CREDENTIAL_PROTOCOL {\r
524 EFI_GUID Identifier; ///< Uniquely identifies this credential provider.\r
525 EFI_GUID Type; ///< Identifies this class of User Credential Provider.\r
526 EFI_CREDENTIAL_ENROLL Enroll;\r
527 EFI_CREDENTIAL_FORM Form;\r
528 EFI_CREDENTIAL_TILE Tile;\r
529 EFI_CREDENTIAL_TITLE Title;\r
530 EFI_CREDENTIAL_USER User;\r
531 EFI_CREDENTIAL_SELECT Select; \r
532 EFI_CREDENTIAL_DESELECT Deselect;\r
533 EFI_CREDENTIAL_DEFAULT Default;\r
534 EFI_CREDENTIAL_GET_INFO GetInfo;\r
535 EFI_CREDENTIAL_GET_NEXT_INFO GetNextInfo;\r
536 EFI_CREDENTIAL_CAPABILITIES Capabilities;\r
537};\r
538\r
539extern EFI_GUID gEfiUserCredentialProtocolGuid;\r
540\r
541#endif\r