Update contrib.
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 implementation of the visible string ASN1 object.
16 * The visible string can contain the following characters:
17 * <character set currently unknown, awaiting arrival of ITU specs>
24 EXPORT_C TASN1DecVisibleString::TASN1DecVisibleString(void)
28 EXPORT_C TInt TASN1DecVisibleString::CheckValid(const TDesC8& /*aSource*/)
33 EXPORT_C HBufC* TASN1DecVisibleString::DecodeDERL(const TDesC8& aSource,TInt& aPos)
35 TPtrC8 Source=aSource.Mid(aPos);
36 TASN1DecGeneric gen(Source);
38 HBufC* res = DecodeContentsL(gen.GetContentDER());
39 aPos+=gen.LengthDER();
43 HBufC* TASN1DecVisibleString::DecodeContentsL(const TDesC8& aSource)
45 HBufC* res = HBufC::NewL(aSource.Length());
46 TPtr pRes = res->Des();