equal
deleted
inserted
replaced
473 //serialize TCertInfo and decode it to base64 format |
473 //serialize TCertInfo and decode it to base64 format |
474 TPckg<TCertInfo> pck( iSessionCertInfo); |
474 TPckg<TCertInfo> pck( iSessionCertInfo); |
475 TBase64 base64; |
475 TBase64 base64; |
476 HBufC8 * base64coded = HBufC8::NewLC( pck.Length() * 3); |
476 HBufC8 * base64coded = HBufC8::NewLC( pck.Length() * 3); |
477 TPtr8 base64Ptr = base64coded->Des(); |
477 TPtr8 base64Ptr = base64coded->Des(); |
478 User::LeaveIfError( base64.Encode( pck, base64Ptr)); |
478 User::LeaveIfError( base64.PortableEncode( pck, base64Ptr)); |
479 |
479 |
480 CAttributeValue * aliasValue = CAttributeValue::NewL( base64Ptr, PolicyLanguage::NativeLanguage::AttributeValues::StringDataType); |
480 CAttributeValue * aliasValue = CAttributeValue::NewL( base64Ptr, PolicyLanguage::NativeLanguage::AttributeValues::StringDataType); |
481 CleanupStack::PopAndDestroy( base64coded); |
481 CleanupStack::PopAndDestroy( base64coded); |
482 |
482 |
483 match->AddElementL( 0, aliasValue); |
483 match->AddElementL( 0, aliasValue); |