equal
deleted
inserted
replaced
175 TBase64 B64Coder; |
175 TBase64 B64Coder; |
176 delete iB64Nonce; |
176 delete iB64Nonce; |
177 iB64Nonce = NULL; |
177 iB64Nonce = NULL; |
178 iB64Nonce = HBufC8::NewL( iNonce->Length() * 2 + 1 ); |
178 iB64Nonce = HBufC8::NewL( iNonce->Length() * 2 + 1 ); |
179 TPtr8 B64NoncePtr( iB64Nonce->Des() ); |
179 TPtr8 B64NoncePtr( iB64Nonce->Des() ); |
180 User::LeaveIfError( B64Coder.Encode( *iNonce, B64NoncePtr ) ); |
180 User::LeaveIfError( B64Coder.PortableEncode( *iNonce, B64NoncePtr ) ); |
181 return *iB64Nonce; |
181 return *iB64Nonce; |
182 } |
182 } |
183 |
183 |
184 // --------------------------------------------------------- |
184 // --------------------------------------------------------- |
185 // CNSmlAuth::ChallengeNeeded() |
185 // CNSmlAuth::ChallengeNeeded() |
270 if ( iFormat->Des() != KNSmlAgentBase64Format ) |
270 if ( iFormat->Des() != KNSmlAgentBase64Format ) |
271 { |
271 { |
272 TBase64 B64Coder; |
272 TBase64 B64Coder; |
273 B64Cred = HBufC8::NewLC( iCredential->Length() * 2 + 1 ); |
273 B64Cred = HBufC8::NewLC( iCredential->Length() * 2 + 1 ); |
274 TPtr8 B64CredPtr( B64Cred->Des() ); |
274 TPtr8 B64CredPtr( B64Cred->Des() ); |
275 User::LeaveIfError( B64Coder.Encode( *iCredential, B64CredPtr ) ); |
275 User::LeaveIfError( B64Coder.PortableEncode( *iCredential, B64CredPtr ) ); |
276 } |
276 } |
277 else |
277 else |
278 { |
278 { |
279 B64Cred = iCredential->AllocLC(); |
279 B64Cred = iCredential->AllocLC(); |
280 } |
280 } |