https://bugzilla.tianocore.org/show_bug.cgi?id=1373 Replace BSD 2-Clause License with BSD+Patent License. This change is based on the following emails: https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html RFCs with detailed process for the license change: V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
		
			
				
	
	
		
			62 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
|   Implementation for EFI_AUTHENTICATION_INFO_PROTOCOL. Currently it is a
 | |
|   dummy support.
 | |
| 
 | |
| Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
 | |
| SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| 
 | |
| **/
 | |
| 
 | |
| #include "IScsiImpl.h"
 | |
| 
 | |
| EFI_AUTHENTICATION_INFO_PROTOCOL gIScsiAuthenticationInfo = {
 | |
|   IScsiGetAuthenticationInfo,
 | |
|   IScsiSetAuthenticationInfo
 | |
| };
 | |
| 
 | |
| /**
 | |
|   Retrieves the authentication information associated with a particular controller handle.
 | |
| 
 | |
|   @param[in]  This              Pointer to the EFI_AUTHENTICATION_INFO_PROTOCOL.
 | |
|   @param[in]  ControllerHandle  Handle to the Controller.
 | |
|   @param[out] Buffer            Pointer to the authentication information. This function is
 | |
|                                 responsible for allocating the buffer and it is the caller's
 | |
|                                 responsibility to free buffer when the caller is finished with buffer.
 | |
| 
 | |
|   @retval EFI_DEVICE_ERROR      The authentication information could not be
 | |
|                                 retrieved due to a hardware error.
 | |
| 
 | |
| **/
 | |
| EFI_STATUS
 | |
| EFIAPI
 | |
| IScsiGetAuthenticationInfo (
 | |
|   IN  EFI_AUTHENTICATION_INFO_PROTOCOL *This,
 | |
|   IN  EFI_HANDLE                       ControllerHandle,
 | |
|   OUT VOID                             **Buffer
 | |
|   )
 | |
| {
 | |
|   return EFI_DEVICE_ERROR;
 | |
| }
 | |
| 
 | |
| /**
 | |
|   Set the authentication information for a given controller handle.
 | |
| 
 | |
|   @param[in]  This             Pointer to the EFI_AUTHENTICATION_INFO_PROTOCOL.
 | |
|   @param[in]  ControllerHandle Handle to the Controller.
 | |
|   @param[in]  Buffer           Pointer to the authentication information.
 | |
| 
 | |
|   @retval EFI_UNSUPPORTED      If the platform policies do not allow setting of
 | |
|                                the authentication information.
 | |
| 
 | |
| **/
 | |
| EFI_STATUS
 | |
| EFIAPI
 | |
| IScsiSetAuthenticationInfo (
 | |
|   IN EFI_AUTHENTICATION_INFO_PROTOCOL  *This,
 | |
|   IN EFI_HANDLE                        ControllerHandle,
 | |
|   IN VOID                              *Buffer
 | |
|   )
 | |
| {
 | |
|   return EFI_UNSUPPORTED;
 | |
| }
 |