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.
21 EXPORT_C TASN1DecBoolean::TASN1DecBoolean(void)
25 EXPORT_C TBool TASN1DecBoolean::DecodeDERL(const TDesC8& aSource,TInt& aPos)
28 TPtrC8 Ptr=aSource.Right(aSource.Length()-aPos);
29 TASN1DecGeneric gen(Ptr);
31 aPos+=gen.LengthDER();
32 TBool res = DecodeDERL(gen);
36 EXPORT_C TBool TASN1DecBoolean::DecodeDERL(const TASN1DecGeneric& aSource)
39 TPtrC8 content = aSource.GetContentDER();
40 if (content.Length() != 1)
42 User::Leave(KErrArgument);
48 if (content[0] == 0xFF)
52 User::Leave(KErrArgument);
53 return ETrue;//never gets to here