vpnengine/ikeutils/inc/ipsecsadata.h
changeset 0 33413c0669b9
child 10 68dc8923de26
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:  IPSec SA data structure for PFKEY Update and Add primitives
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef T_IPSECSADATA_H
       
    20 #define T_IPSECSADATA_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <in_sock.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class TIpsecSALifetime;
       
    27 
       
    28 /**
       
    29  *  IPSec SA data structure.
       
    30  *
       
    31  *  @lib ikeutils.lib
       
    32  */
       
    33 class TIpsecSAData
       
    34     {
       
    35 public:
       
    36     TIpsecSAData();
       
    37     
       
    38 public: // data
       
    39     TUint8      iSAType;
       
    40     TUint32     iSeq;
       
    41     TInetAddr   iSrc;
       
    42     TInetAddr   iDst;
       
    43     TUint8      iProtocol;
       
    44     TPtr8       iSrcIdent;
       
    45     TUint16     iSrcIdType;
       
    46     TPtr8       iDstIdent;
       
    47     TUint16     iDstIdType;
       
    48     TUint32     iPid;
       
    49     TUint32     iSPI;
       
    50     TUint8      iAuthAlg;
       
    51     TUint8      iEncrAlg;
       
    52     TPtrC8      iAuthKey;
       
    53     TPtrC8      iEncrKey;
       
    54     TUint32     iFlags;
       
    55     TUint8      iReplayWindowLength;
       
    56 //
       
    57 //  Private Nokia VPN specific extensions
       
    58 //
       
    59     TInetAddr   iInternalAddress;
       
    60 //
       
    61 //  Genereric private format PFKEY extension. In this phase extesion consists   
       
    62 //  Information for ESP UDP encapsulation (NAT Traversal)
       
    63 //
       
    64     TPtrC8      iGenericExtension;
       
    65     
       
    66     TIpsecSALifetime* iHard;
       
    67     TIpsecSALifetime* iSoft;
       
    68     };
       
    69 
       
    70 #endif // T_IPSECSADATA_H