omaprovisioning/provisioning/ProvisioningEngine/Src/CWPPushMessage.cpp
branchRCL_3
changeset 76 3cdbd92ee07b
parent 65 5cc2995847ea
equal deleted inserted replaced
69:a082c848c9a9 76:3cdbd92ee07b
  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
       
  1058                 	result = KWPAuthResultPinRequired;
  1050                 	result = KWPAuthResultPinRequired;
  1059                 	FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultPinRequired" ) );
  1051                 	FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultPinRequired" ) );
  1060                 	}
  1052                 	}
  1061             	keyPtr.Copy( aPIN );
  1053             	keyPtr.Copy( aPIN );
  1062             	}
  1054             	}
  1095             FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KSECUSERPINMAC" ) );
  1087             FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KSECUSERPINMAC" ) );
  1096             if (EAuthNETWPINOnly != value)
  1088             if (EAuthNETWPINOnly != value)
  1097             	{
  1089             	{
  1098 	            if( aPIN.Length() == 0 )
  1090 	            if( aPIN.Length() == 0 )
  1099     	            {
  1091     	            {
  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	
       
  1108         	        result = KWPAuthResultPinRequired;
  1092         	        result = KWPAuthResultPinRequired;
  1109         	        FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultPinRequired" ) );
  1093         	        FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultPinRequired" ) );
  1110             	    }
  1094             	    }
  1111             	keyPtr.Copy( aPIN );
  1095             	keyPtr.Copy( aPIN );
  1112             	}
  1096             	}
  1126             	result = KWPAuthResultAuthenticationFailed;
  1110             	result = KWPAuthResultAuthenticationFailed;
  1127             	FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultAuthenticationFailed" ) );
  1111             	FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultAuthenticationFailed" ) );
  1128             	}
  1112             	}
  1129             else
  1113             else
  1130             	{
  1114             	{
  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
       
  1139             	result = KWPAuthResultNoAuthentication;	
  1115             	result = KWPAuthResultNoAuthentication;	
  1140             	FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultNoAuthentication" ) );
  1116             	FLOG( _L( "[Provisioning] CWPPushMessage::AuthenticateL: KWPAuthResultNoAuthentication" ) );
  1141             	}            	
  1117             	}            	
  1142             break;
  1118             break;
  1143             }
  1119             }