First public contribution.
2 * Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * This file contains the implemenation of the General String ASN1 object.
16 * The general string can contain the following characters:
17 * <character set unknown pending arrival of ITU spec>
24 EXPORT_C TASN1DecGeneralString::TASN1DecGeneralString(void)
28 EXPORT_C TInt TASN1DecGeneralString::CheckValid(const TDesC8& /*aSource*/)
34 EXPORT_C HBufC* TASN1DecGeneralString::DecodeDERL(const TDesC8& aSource,TInt& aPos)
37 TPtrC8 Source=aSource.Mid(aPos);
38 TASN1DecGeneric gen(Source);
40 HBufC* res = DecodeContentsL(gen.GetContentDER());
44 HBufC* TASN1DecGeneralString::DecodeContentsL(const TDesC8& aSource)
46 HBufC* res = HBufC::NewL(aSource.Length());
47 TPtr pRes = res->Des();