vpnengine/ikev2lib/inc/ikev2pfkey.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:  Utility methods to handle PFKEY messaging
       
    15 *
       
    16 */
       
    17 #ifndef __IKEV2PFKEY
       
    18 #define __IKEV2PFKEY
       
    19 
       
    20 #include <e32base.h>
       
    21 
       
    22 class CIkev2Acquire;
       
    23 class TIkeV2IpsecSAData;
       
    24 class TIkev2SAData;
       
    25 class CIkev2PluginSession;
       
    26 
       
    27 class Ikev2Pfkey
       
    28 {
       
    29 	public:
       
    30         static void UpdateIpsecSaDataBaseL(const TIkev2SAData& aIkev2SA, 
       
    31                                            const TIkeV2IpsecSAData& aChild,
       
    32                                            CIkev2PluginSession& aIkePluginSession,
       
    33                                            CIkev2Acquire& aAcquire);
       
    34 		
       
    35 		static CIkev2Acquire* DeleteInboundSPI(const TIkev2SAData& aIkev2SA, 
       
    36                                           CIkev2PluginSession& aIkePluginSession, 
       
    37                                           CIkev2Acquire* aAcquire);
       
    38 
       
    39 	private:
       
    40 		static const TUint8* GetIpsecKeys(TPtrC8* aEncrKey, TPtrC8* aIntegKey, const TUint8* aKeyMaterial, TInt aCipherKeyLth, TInt aIntegKeyLth);		
       
    41 };
       
    42 
       
    43 #endif