IScsiAuthenticationInfo.c 2.0 KB

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