omaprovisioning/provisioning/ProvisioningEngine/Src/CWPPushMessage.cpp
branchRCL_3
changeset 27 5cc2995847ea
parent 0 b497e44ab2fc
equal deleted inserted replaced
26:19bba8228ff0 27:5cc2995847ea
  1045             FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KSECUSERPIN" ) );
  1045             FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KSECUSERPIN" ) );
  1046             if (EAuthNETWPINOnly != value)
  1046             if (EAuthNETWPINOnly != value)
  1047             	{
  1047             	{
  1048             	if( aPIN.Length() == 0 )
  1048             	if( aPIN.Length() == 0 )
  1049                 	{
  1049                 	{
       
  1050                 	TInt aSetAuthValue = 1;	
       
  1051                 	CRepository* repository = CRepository::NewLC( KOMAProvAuthenticationLV );	
       
  1052                 	TInt err = repository->Set(KOMAProvIsUserPin, aSetAuthValue);                	
       
  1053                 	if(err != KErrNone)
       
  1054                 		{
       
  1055                 				FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: set KOMAProvIsUserPin Failed" ) );
       
  1056                 		}
       
  1057                 	CleanupStack::PopAndDestroy(); // repository
  1050                 	result = KWPAuthResultPinRequired;
  1058                 	result = KWPAuthResultPinRequired;
  1051                 	FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultPinRequired" ) );
  1059                 	FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultPinRequired" ) );
  1052                 	}
  1060                 	}
  1053             	keyPtr.Copy( aPIN );
  1061             	keyPtr.Copy( aPIN );
  1054             	}
  1062             	}
  1087             FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KSECUSERPINMAC" ) );
  1095             FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KSECUSERPINMAC" ) );
  1088             if (EAuthNETWPINOnly != value)
  1096             if (EAuthNETWPINOnly != value)
  1089             	{
  1097             	{
  1090 	            if( aPIN.Length() == 0 )
  1098 	            if( aPIN.Length() == 0 )
  1091     	            {
  1099     	            {
       
  1100     	            TInt aSetAuthValue = 1;	
       
  1101                 	CRepository* repository = CRepository::NewLC( KOMAProvAuthenticationLV );	
       
  1102                 	TInt err = repository->Set(KOMAProvIsUserPin, aSetAuthValue);  
       
  1103                 	if(err != KErrNone)
       
  1104                 		{
       
  1105                 				FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: set KOMAProvIsUserPin Failed" ) );
       
  1106                 		}              	
       
  1107                 	CleanupStack::PopAndDestroy(); // repository	
  1092         	        result = KWPAuthResultPinRequired;
  1108         	        result = KWPAuthResultPinRequired;
  1093         	        FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultPinRequired" ) );
  1109         	        FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultPinRequired" ) );
  1094             	    }
  1110             	    }
  1095             	keyPtr.Copy( aPIN );
  1111             	keyPtr.Copy( aPIN );
  1096             	}
  1112             	}
  1110             	result = KWPAuthResultAuthenticationFailed;
  1126             	result = KWPAuthResultAuthenticationFailed;
  1111             	FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultAuthenticationFailed" ) );
  1127             	FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultAuthenticationFailed" ) );
  1112             	}
  1128             	}
  1113             else
  1129             else
  1114             	{
  1130             	{
       
  1131               TInt aSetAuthValue = 1;	
       
  1132               CRepository* repository = CRepository::NewLC( KOMAProvAuthenticationLV );	
       
  1133               TInt err = repository->Set(KOMAProvIsUserPin, aSetAuthValue);    
       
  1134               if(err != KErrNone)
       
  1135                  		{
       
  1136                 		FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: set KOMAProvIsUserPin Failed" ) );
       
  1137                 		}	            
       
  1138               CleanupStack::PopAndDestroy(); // repository
  1115             	result = KWPAuthResultNoAuthentication;	
  1139             	result = KWPAuthResultNoAuthentication;	
  1116             	FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultNoAuthentication" ) );
  1140             	FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultNoAuthentication" ) );
  1117             	}            	
  1141             	}            	
  1118             break;
  1142             break;
  1119             }
  1143             }