Match.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /** @file
  2. The internal structure and function declaration of
  3. match policy entry function in IpSecConfig application.
  4. Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #ifndef _MATCH_H_
  8. #define _MATCH_H_
  9. /**
  10. The prototype for the MatchSpdEntry()/MatchSadEntry()/MatchPadEntry().
  11. The functionality is to find the matching SPD/SAD/PAD with Indexer.
  12. @param[in] Selector The pointer to the EFI_IPSEC_CONFIG_SELECTOR union.
  13. @param[in] Data The pointer to corresponding Data.
  14. @param[in] Indexer The pointer to the POLICY_ENTRY_INDEXER union.
  15. @retval TRUE The matched SPD/SAD/PAD is found.
  16. @retval FALSE The matched SPD/SAD/PAD is not found.
  17. **/
  18. typedef
  19. BOOLEAN
  20. (* MATCH_POLICY_ENTRY) (
  21. IN EFI_IPSEC_CONFIG_SELECTOR *Selector,
  22. IN VOID *Data,
  23. IN POLICY_ENTRY_INDEXER *Indexer
  24. );
  25. extern MATCH_POLICY_ENTRY mMatchPolicyEntry[];
  26. #endif