1 | /** @file
|
---|
2 | Implementation for EFI_AUTHENTICATION_INFO_PROTOCOL. Currently it is a
|
---|
3 | dummy support.
|
---|
4 |
|
---|
5 | Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
|
---|
6 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 |
|
---|
8 | **/
|
---|
9 |
|
---|
10 | #include "IScsiImpl.h"
|
---|
11 |
|
---|
12 | EFI_AUTHENTICATION_INFO_PROTOCOL gIScsiAuthenticationInfo = {
|
---|
13 | IScsiGetAuthenticationInfo,
|
---|
14 | IScsiSetAuthenticationInfo
|
---|
15 | };
|
---|
16 |
|
---|
17 | /**
|
---|
18 | Retrieves the authentication information associated with a particular controller handle.
|
---|
19 |
|
---|
20 | @param[in] This Pointer to the EFI_AUTHENTICATION_INFO_PROTOCOL.
|
---|
21 | @param[in] ControllerHandle Handle to the Controller.
|
---|
22 | @param[out] Buffer Pointer to the authentication information. This function is
|
---|
23 | responsible for allocating the buffer and it is the caller's
|
---|
24 | responsibility to free buffer when the caller is finished with buffer.
|
---|
25 |
|
---|
26 | @retval EFI_DEVICE_ERROR The authentication information could not be
|
---|
27 | retrieved due to a hardware error.
|
---|
28 |
|
---|
29 | **/
|
---|
30 | EFI_STATUS
|
---|
31 | EFIAPI
|
---|
32 | IScsiGetAuthenticationInfo (
|
---|
33 | IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
|
---|
34 | IN EFI_HANDLE ControllerHandle,
|
---|
35 | OUT VOID **Buffer
|
---|
36 | )
|
---|
37 | {
|
---|
38 | return EFI_DEVICE_ERROR;
|
---|
39 | }
|
---|
40 |
|
---|
41 | /**
|
---|
42 | Set the authentication information for a given controller handle.
|
---|
43 |
|
---|
44 | @param[in] This Pointer to the EFI_AUTHENTICATION_INFO_PROTOCOL.
|
---|
45 | @param[in] ControllerHandle Handle to the Controller.
|
---|
46 | @param[in] Buffer Pointer to the authentication information.
|
---|
47 |
|
---|
48 | @retval EFI_UNSUPPORTED If the platform policies do not allow setting of
|
---|
49 | the authentication information.
|
---|
50 |
|
---|
51 | **/
|
---|
52 | EFI_STATUS
|
---|
53 | EFIAPI
|
---|
54 | IScsiSetAuthenticationInfo (
|
---|
55 | IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
|
---|
56 | IN EFI_HANDLE ControllerHandle,
|
---|
57 | IN VOID *Buffer
|
---|
58 | )
|
---|
59 | {
|
---|
60 | return EFI_UNSUPPORTED;
|
---|
61 | }
|
---|