Home | History | Annotate | Download | only in IpsecConfig
      1 /** @file
      2   The internal structure and function declaration of
      3   match policy entry function in IpSecConfig application.
      4 
      5   Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
      6 
      7   This program and the accompanying materials
      8   are licensed and made available under the terms and conditions of the BSD License
      9   which accompanies this distribution.  The full text of the license may be found at
     10   http://opensource.org/licenses/bsd-license.php.
     11 
     12   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     13   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     14 
     15 **/
     16 
     17 #ifndef _MATCH_H_
     18 #define _MATCH_H_
     19 
     20 /**
     21   The prototype for the MatchSpdEntry()/MatchSadEntry()/MatchPadEntry().
     22   The functionality is to find the matching SPD/SAD/PAD with Indexer.
     23 
     24   @param[in] Selector    The pointer to the EFI_IPSEC_CONFIG_SELECTOR union.
     25   @param[in] Data        The pointer to corresponding Data.
     26   @param[in] Indexer     The pointer to the POLICY_ENTRY_INDEXER union.
     27 
     28   @retval TRUE     The matched SPD/SAD/PAD is found.
     29   @retval FALSE    The matched SPD/SAD/PAD is not found.
     30 **/
     31 typedef
     32 BOOLEAN
     33 (* MATCH_POLICY_ENTRY) (
     34   IN EFI_IPSEC_CONFIG_SELECTOR    *Selector,
     35   IN VOID                         *Data,
     36   IN POLICY_ENTRY_INDEXER         *Indexer
     37   );
     38 
     39 extern MATCH_POLICY_ENTRY mMatchPolicyEntry[];
     40 
     41 #endif
     42