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 ASN1 Null class.
22 EXPORT_C TASN1DecNull::TASN1DecNull(void)
26 EXPORT_C void TASN1DecNull::DecodeDERL(const TDesC8& aSource,TInt& aPos)
29 TPtrC8 Source=aSource.Mid(aPos);
30 TASN1DecGeneric gen(Source);
32 aPos+=gen.LengthDER();
36 EXPORT_C void TASN1DecNull::DecodeDERL(const TASN1DecGeneric& aSource)
38 TPtrC8 contents(aSource.Encoding());
39 if ((contents.Length() != 2) ||
40 (contents[1] & 0xff) ||
41 (!(contents[0] & 0x05)))
43 User::Leave(KErrArgument);