equal
deleted
inserted
replaced
72 iEngine = CWPEngine::NewL(); |
72 iEngine = CWPEngine::NewL(); |
73 iDevDialog = NULL; |
73 iDevDialog = NULL; |
74 ibootstrap = NULL; |
74 ibootstrap = NULL; |
75 iMsg = new(ELeave)CpMessage(this); |
75 iMsg = new(ELeave)CpMessage(this); |
76 iWait = new( ELeave ) CActiveSchedulerWait; |
76 iWait = new( ELeave ) CActiveSchedulerWait; |
|
77 iPreAuthenticated = EFalse; |
77 FLOG( _L( "[ProvisioningBC] CWPBioControl::ConstructL: done" ) ); |
78 FLOG( _L( "[ProvisioningBC] CWPBioControl::ConstructL: done" ) ); |
78 } |
79 } |
79 |
80 |
80 // ----------------------------------------------------------------------------- |
81 // ----------------------------------------------------------------------------- |
81 // CWPBioControl::NewL |
82 // CWPBioControl::NewL |
132 if( result == KErrCorrupt ) |
133 if( result == KErrCorrupt ) |
133 { |
134 { |
134 //result = KErrMsgBioMessageNotValid; |
135 //result = KErrMsgBioMessageNotValid; |
135 } |
136 } |
136 FTRACE(RDebug::Print(_L("[ProvisioningBC] CWPBioControl::RestoreMsgL result (%d)"), result)); |
137 FTRACE(RDebug::Print(_L("[ProvisioningBC] CWPBioControl::RestoreMsgL result (%d)"), result)); |
137 User::LeaveIfError( result ); |
138 User::LeaveIfError( result ); |
|
139 |
|
140 // Get the value of the authentication before authenticating the message |
|
141 iPreAuthenticated = iMessage->Authenticated(); |
138 AuthenticateL( *iMessage ); |
142 AuthenticateL( *iMessage ); |
139 CleanupStack::PopAndDestroy(); |
143 CleanupStack::PopAndDestroy(); |
140 if(iAuth == KAUTENTICATIONCANCEL || iAuth == KAUTENTICATIONSUCCESS) |
144 if(iAuth == KAUTENTICATIONCANCEL || iAuth == KAUTENTICATIONSUCCESS) |
141 { |
145 { |
142 iSp->authenticationStatus(); |
146 iSp->authenticationStatus(); |
189 orig.Copy(iMessage->Originator()); |
193 orig.Copy(iMessage->Originator()); |
190 TRAPD(err, SetCenrepKeyL(orig)); |
194 TRAPD(err, SetCenrepKeyL(orig)); |
191 User::LeaveIfError(err); |
195 User::LeaveIfError(err); |
192 } |
196 } |
193 |
197 |
194 TBool preAuthenticated( iMessage->Authenticated() ); |
198 |
195 if( !iEntry.ReadOnly() && preAuthenticated != iMessage->Authenticated() ) |
199 if( !iEntry.ReadOnly() && iPreAuthenticated != iMessage->Authenticated() ) |
196 { |
200 { |
197 // If the entry can be written to, get its edit store and save |
201 // If the entry can be written to, get its edit store and save |
198 // authentication flag. Failing is not dangerous, as the only |
202 // authentication flag. Failing is not dangerous, as the only |
199 // effect is that the user has to re-enter the PIN. |
203 // effect is that the user has to re-enter the PIN. |
200 // FLOG( _L( "[ProvisioningBC] CWPBioControl::RestoreMsgL 4 " ) ); |
204 // FLOG( _L( "[ProvisioningBC] CWPBioControl::RestoreMsgL 4 " ) ); |