Vishal Bhoj | 82c8071 | 2015-12-15 21:13:33 +0530 | [diff] [blame^] | 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 | This program and the accompanying materials
|
| 7 | are licensed and made available under the terms and conditions of the BSD License
|
| 8 | which accompanies this distribution. The full text of the license may be found at
|
| 9 | http://opensource.org/licenses/bsd-license.php
|
| 10 |
|
| 11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
| 12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
| 13 |
|
| 14 | **/
|
| 15 |
|
| 16 | #include "IScsiImpl.h"
|
| 17 |
|
| 18 | EFI_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 | **/
|
| 36 | EFI_STATUS
|
| 37 | EFIAPI
|
| 38 | IScsiGetAuthenticationInfo (
|
| 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 | **/
|
| 58 | EFI_STATUS
|
| 59 | EFIAPI
|
| 60 | IScsiSetAuthenticationInfo (
|
| 61 | IN EFI_AUTHENTICATION_INFO_PROTOCOL *This,
|
| 62 | IN EFI_HANDLE ControllerHandle,
|
| 63 | IN VOID *Buffer
|
| 64 | )
|
| 65 | {
|
| 66 | return EFI_UNSUPPORTED;
|
| 67 | }
|