vpnengine/ikev2lib/inc/ikev2expire.h
changeset 0 33413c0669b9
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:     
       
    15 * CExpire. This class is used to handle PFKEY Expire primitives received 
       
    16 * from IPSec plug-in. 
       
    17 *
       
    18 */
       
    19 #ifndef __IKEV2EXPIRE_H__
       
    20 #define __IKEV2EXPIRE_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class TPfkeyMessage;
       
    25 //
       
    26 //
       
    27 //  CIkev2Expire
       
    28 //  This class is used to handle PFKEY Expire primitives received from
       
    29 //  Ipsec plug-in. 
       
    30 //
       
    31 class CIkev2Expire : public CBase
       
    32 {
       
    33     public:
       
    34         CIkev2Expire() {}        
       
    35         ~CIkev2Expire() {}
       
    36         static CIkev2Expire* NewL(const TPfkeyMessage& aPfkeyMessage);
       
    37         static CIkev2Expire* GetNext(CIkev2Expire** aAnchor);
       
    38         static void Link(CIkev2Expire* aExpire, CIkev2Expire** aAnchor);
       
    39         static void PurgeQue(CIkev2Expire** aAnchor);                
       
    40         TPtrC8 SPI();
       
    41         void SetSPI(const TDesC8& aSPI);
       
    42         TUint8 Protocol();
       
    43         void SetProtocol(TUint8 aProt);
       
    44 
       
    45     private:        
       
    46         TBuf8<4>  iSPI;           // Ipsec SPI value in (local SPI)
       
    47         TUint8    iProtocol;      // Ipsec protocol code
       
    48         TUint8    iReserved[3];   // For alignment 
       
    49         CIkev2Expire*  iNext;          // Next pending acquire
       
    50         
       
    51 };
       
    52 
       
    53 #endif /* __IKEV2EXPIRE_H__ */