vpnengine/ikeutils/inc/ipsecsadata.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 09:14:51 +0200
changeset 0 33413c0669b9
child 10 68dc8923de26
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  IPSec SA data structure for PFKEY Update and Add primitives
*
*/


#ifndef T_IPSECSADATA_H
#define T_IPSECSADATA_H

#include <e32base.h>
#include <in_sock.h>

// FORWARD DECLARATIONS
class TIpsecSALifetime;

/**
 *  IPSec SA data structure.
 *
 *  @lib ikeutils.lib
 */
class TIpsecSAData
    {
public:
    TIpsecSAData();
    
public: // data
    TUint8      iSAType;
    TUint32     iSeq;
    TInetAddr   iSrc;
    TInetAddr   iDst;
    TUint8      iProtocol;
    TPtr8       iSrcIdent;
    TUint16     iSrcIdType;
    TPtr8       iDstIdent;
    TUint16     iDstIdType;
    TUint32     iPid;
    TUint32     iSPI;
    TUint8      iAuthAlg;
    TUint8      iEncrAlg;
    TPtrC8      iAuthKey;
    TPtrC8      iEncrKey;
    TUint32     iFlags;
    TUint8      iReplayWindowLength;
//
//  Private Nokia VPN specific extensions
//
    TInetAddr   iInternalAddress;
//
//  Genereric private format PFKEY extension. In this phase extesion consists   
//  Information for ESP UDP encapsulation (NAT Traversal)
//
    TPtrC8      iGenericExtension;
    
    TIpsecSALifetime* iHard;
    TIpsecSALifetime* iSoft;
    };

#endif // T_IPSECSADATA_H