vpnengine/ikev1lib/inc/ikev1trans.h
branchRCL_3
changeset 38 9f4e37332ce5
parent 0 33413c0669b9
child 40 473321461bba
equal deleted inserted replaced
32:352850cbed81 38:9f4e37332ce5
     1 /*
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    61 class CAuthDialogInfo;
    61 class CAuthDialogInfo;
    62 class CInternalAddress;
    62 class CInternalAddress;
    63 class TIkev1IsakmpStream;
    63 class TIkev1IsakmpStream;
    64 class MIkeDebug;
    64 class MIkeDebug;
    65 class TInetAddr;
    65 class TInetAddr;
       
    66 class CCredentialCache;
       
    67 
    66 
    68 
    67 /**--------------------------------------------------------------------------
    69 /**--------------------------------------------------------------------------
    68  *
    70  *
    69  * CTransNegotiation class 
    71  * CTransNegotiation class 
    70  * Handles ISAKMP transaction exchange messages
    72  * Handles ISAKMP transaction exchange messages
    98         return ia;
   100         return ia;
    99     }
   101     }
   100     static TUint16 GetAuthMethod(TUint16 aAuthMethod, TBool aXauthUsed, TInt aRole);
   102     static TUint16 GetAuthMethod(TUint16 aAuthMethod, TBool aXauthUsed, TInt aRole);
   101     static void BuildXauthVendorId(TIkev1IsakmpStream &aMsg);
   103     static void BuildXauthVendorId(TIkev1IsakmpStream &aMsg);
   102 
   104 
   103 	TInt DialogCompleteL(CIkev1Dialog* aDialog, TAny* aUserInfo, HBufC8* aUsername,
   105 	TInt DialogCompleteL(TAny* aUserInfo, HBufC8* aUsername, HBufC8* aSecret);
   104 	                     HBufC8* aSecret, HBufC8* aDomain);	
       
   105 	TInt BuildConfigRequestL();
   106 	TInt BuildConfigRequestL();
   106     
   107     
   107 private:
   108 private:
   108     TTransExchange* FindExchange(TUint32 aMsgId);
   109     TTransExchange* FindExchange(TUint32 aMsgId);
   109     TTransExchange* AddExchangeL(TUint32 aMsgId, TUint8 aRole);
   110     TTransExchange* AddExchangeL(TUint32 aMsgId, TUint8 aRole);
   126                        TBool aUseXauth,
   127                        TBool aUseXauth,
   127                        TBool aUseCfgMode,
   128                        TBool aUseCfgMode,
   128                        CIkev1PluginSession* aPluginSession,
   129                        CIkev1PluginSession* aPluginSession,
   129                        CIkev1Negotiation* aNegotiation,
   130                        CIkev1Negotiation* aNegotiation,
   130                        MIkeDebug& aDebug );
   131                        MIkeDebug& aDebug );
   131     void ConstructL(); 
   132     void ConstructL();
       
   133     void GetCredentialsL();
   132 
   134 
   133 private:
   135 private:
   134     CIkev1PluginSession* iPluginSession;
   136     CIkev1PluginSession* iPluginSession;
   135     CIkev1Negotiation* iNegotiation;
   137     CIkev1Negotiation* iNegotiation;
   136     CInternalAddress*  iInternalAddr;
   138     CInternalAddress*  iInternalAddr;
   143     TBool   iUseCfgMode;    
   145     TBool   iUseCfgMode;    
   144     TUint32 iIdentifierBase;
   146     TUint32 iIdentifierBase;
   145     TUint32 iRequestFlags;
   147     TUint32 iRequestFlags;
   146     TBool   iXauthCompleted;
   148     TBool   iXauthCompleted;
   147     TBool   iCfgModeCompleted;
   149     TBool   iCfgModeCompleted;
   148 	TBool   iUseOlderPIXXauth;     // use draft-ietf-ipsec-isakmp-xauth-04.txt  
   150 	TBool   iUseOlderPIXXauth;     // use draft-ietf-ipsec-isakmp-xauth-04.txt
   149                                    
   151 	TInt    iCredentialType; 
   150     TLastIKEMsg iLastTransMsgInfo;    
   152 
       
   153     TLastIKEMsg iLastTransMsgInfo;
       
   154     
       
   155     CCredentialCache* iCache;
       
   156 
   151     MIkeDebug& iDebug;
   157     MIkeDebug& iDebug;
   152 };
   158 };
   153 
   159 
   154 
   160 
   155 #endif // IKEV1TRANS_H
   161 #endif // IKEV1TRANS_H