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