vpnengine/ikev1lib/inc/ikev1negotiation.h
branchRCL_3
changeset 23 d1a0d37b52a1
parent 12 68dc8923de26
child 38 9f4e37332ce5
equal deleted inserted replaced
22:f1aca2058253 23:d1a0d37b52a1
    23 #include "ikev1payloads.h"
    23 #include "ikev1payloads.h"
    24 #include "ikev1extra.h"
    24 #include "ikev1extra.h"
    25 #include "ikev1SAdata.h"
    25 #include "ikev1SAdata.h"
    26 #include "ikepolparser.h"
    26 #include "ikepolparser.h"
    27 #include "ipsecsaspiretriever.h"
    27 #include "ipsecsaspiretriever.h"
       
    28 #include "ikev1dialog.h"
       
    29 
    28 
    30 
    29 #define INITIATOR   0
    31 #define INITIATOR   0
    30 #define RESPONDER   1
    32 #define RESPONDER   1
    31 
    33 
    32 #define PHASE_I     1   //Used to identify the PHASE number
    34 #define PHASE_I     1   //Used to identify the PHASE number
    82 
    84 
    83 //
    85 //
    84 //  Class CIkev1Negotiation: Contains all the info for each negotiation in progress
    86 //  Class CIkev1Negotiation: Contains all the info for each negotiation in progress
    85 //
    87 //
    86 NONSHARABLE_CLASS(CIkev1Negotiation) : public CBase,
    88 NONSHARABLE_CLASS(CIkev1Negotiation) : public CBase,
    87                                        public MIpsecSaSpiRetrieverCallback
    89                                        public MIpsecSaSpiRetrieverCallback,
       
    90                                        public MIkeDialogComplete
    88     {
    91     {
    89     friend class CIkev1InfoNegotiation;
    92     friend class CIkev1InfoNegotiation;
    90     friend class TIkev1IsakmpStream;
    93     friend class TIkev1IsakmpStream;
    91     friend class CIKECRACKNegotiation;
    94     friend class CIKECRACKNegotiation;
    92     friend class CTransNegotiation;
    95     friend class CTransNegotiation;
   171      * @param aSpi SPI value
   174      * @param aSpi SPI value
   172      */    
   175      */    
   173     void IpsecSaSpiRetrieved(TUint32 aSpiRequestId, 
   176     void IpsecSaSpiRetrieved(TUint32 aSpiRequestId, 
   174                              TInt aStatus, 
   177                              TInt aStatus, 
   175                              TUint32 aSpi);	
   178                              TUint32 aSpi);	
       
   179     
       
   180     TInt   ProcessUserResponseL(CAuthDialogInfo *aUserInfo);
       
   181     TInt   DialogCompleteL(CIkev1Dialog* /*aDialog*/, TAny* aUserInfo, HBufC8* aUsername, HBufC8* aSecret, HBufC8* aDomain);
       
   182 
   176 	
   183 	
   177 private:
   184 private:
   178 
   185 
   179     CIkev1Negotiation( CIkev1PluginSession* aPluginSession,
   186     CIkev1Negotiation( CIkev1PluginSession* aPluginSession,
   180                        CPFKeySocketIf& aPFKeySocketIf,
   187                        CPFKeySocketIf& aPFKeySocketIf,
   534 	TInt64 iHardLifetime;
   541 	TInt64 iHardLifetime;
   535 	
   542 	
   536 	CIpsecSaSpiRetriever* iIpsecSaSpiRetriever;
   543 	CIpsecSaSpiRetriever* iIpsecSaSpiRetriever;
   537 	CPFKeySocketIf& iPFKeySocketIf;	
   544 	CPFKeySocketIf& iPFKeySocketIf;	
   538 	MIkeDebug& iDebug;
   545 	MIkeDebug& iDebug;
       
   546 	
       
   547 	HBufC8* iCRACKLAMUserName;
       
   548 	HBufC8* iCRACKLAMPassword;
       
   549     CIkev1Dialog*      iDialog;      // Pending dialog object
       
   550     CAuthDialogInfo*   iDialogInfo;  // Dialog info object
   539     };
   551     };
   540 
   552 
   541 #endif // C_IKEV1NEGOTIATION_H
   553 #endif // C_IKEV1NEGOTIATION_H