diff -r ece3df019add -r cf642210ecb7 cryptoservices/certificateandkeymgmt/x500/x520ava.cpp --- a/cryptoservices/certificateandkeymgmt/x500/x520ava.cpp Tue Nov 24 09:06:03 2009 +0200 +++ b/cryptoservices/certificateandkeymgmt/x500/x520ava.cpp Thu Dec 17 09:28:34 2009 +0200 @@ -231,6 +231,12 @@ type = decoderGeneric.Tag(); break; } + case EX520Description: + { + ptr.Set(KX520Description); + maxlen = KX520MaxDescriptionLength; + break; + } default: User::Leave(KErrArgument); } @@ -397,6 +403,10 @@ { maxLength = KRFC2256StreetLength; } + if (iType->Des() == KX520Description) + { + maxLength = KX520MaxDescriptionLength; + } if (maxLength == 0) { User::Leave(KErrNotSupported); @@ -410,7 +420,7 @@ TBool CX520AttributeTypeAndValue::IsCaseInSensitiveL(const TDesC8& aSource) const { TPtr attribute = iType->Des(); - TBool caseInsensitiveAttr = (attribute == KPKCS9EmailAddress || attribute == KPKCS9UnstructuredName); + TBool caseInsensitiveAttr = (attribute == KPKCS9EmailAddress || attribute == KPKCS9UnstructuredName || attribute == KX520Description); TASN1DecGeneric gen(aSource); gen.InitL(); return ((gen.Tag() == EASN1PrintableString) || caseInsensitiveAttr);