blob: f37b403ae5c239f43361dc857510cb7e43a8ec43 [file] [log] [blame]
Vishal Bhoj82c80712015-12-15 21:13:33 +05301/** @file
2 Implementation for EFI_AUTHENTICATION_INFO_PROTOCOL. Currently it is a
3 dummy support.
4
5Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
6This program and the accompanying materials
7are licensed and made available under the terms and conditions of the BSD License
8which accompanies this distribution. The full text of the license may be found at
9http://opensource.org/licenses/bsd-license.php
10
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14**/
15
16#include "IScsiImpl.h"
17
18EFI_AUTHENTICATION_INFO_PROTOCOL gIScsiAuthenticationInfo = {
19 IScsiGetAuthenticationInfo,
20 IScsiSetAuthenticationInfo
21};
22
23/**
24 Retrieves the authentication information associated with a particular controller handle.
25
26 @param[in] This Pointer to the EFI_AUTHENTICATION_INFO_PROTOCOL.
27 @param[in] ControllerHandle Handle to the Controller.
28 @param[out] Buffer Pointer to the authentication information. This function is
29 responsible for allocating the buffer and it is the caller's
30 responsibility to free buffer when the caller is finished with buffer.
31
32 @retval EFI_DEVICE_ERROR The authentication information could not be
33 retrieved due to a hardware error.
34
35**/
36EFI_STATUS
37EFIAPI
38IScsiGetAuthenticationInfo (
39 IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
40 IN EFI_HANDLE ControllerHandle,
41 OUT VOID **Buffer
42 )
43{
44 return EFI_DEVICE_ERROR;
45}
46
47/**
48 Set the authentication information for a given controller handle.
49
50 @param[in] This Pointer to the EFI_AUTHENTICATION_INFO_PROTOCOL.
51 @param[in] ControllerHandle Handle to the Controller.
52 @param[in] Buffer Pointer to the authentication information.
53
54 @retval EFI_UNSUPPORTED If the platform policies do not allow setting of
55 the authentication information.
56
57**/
58EFI_STATUS
59EFIAPI
60IScsiSetAuthenticationInfo (
61 IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
62 IN EFI_HANDLE ControllerHandle,
63 IN VOID *Buffer
64 )
65{
66 return EFI_UNSUPPORTED;
67}