diff -r 675a964f4eb5 -r 35751d3474b7 cryptoservices/certificateandkeymgmt/asn1/printstrdec.cpp --- a/cryptoservices/certificateandkeymgmt/asn1/printstrdec.cpp Tue Jul 21 01:04:32 2009 +0100 +++ b/cryptoservices/certificateandkeymgmt/asn1/printstrdec.cpp Thu Sep 10 14:01:51 2009 +0300 @@ -1,85 +1,85 @@ -/* -* Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* This file contains the implementation of the Printable String ASN1 object. -* The characters included in this string type are: -* AB...Zab...z01...9'()+,-./:? -* -*/ - - -#include - -const TInt8 PrintableStringValid[256]= - { -// 0 1 2 3 4 5 6 7 8 9 a b c d e f - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 0 - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 1 - 0,0,0,0,0,0,0,1,1,1,0,1,1,1,1,1, // 2 - 1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1, // 3 - 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // 4 - 1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, // 5 - 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // 6 - 1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, // 7 - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 8 - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 9 - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // a - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // b - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // c - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // d - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // e - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // f - }; - -EXPORT_C TASN1DecPrintableString::TASN1DecPrintableString(void) - { - } - -TInt TASN1DecPrintableString::CheckValid(const TDesC8& aString) - - { - TInt i; - for (i=0;iDes(); - pRes.Copy(aSource); - return res; - } +/* +* Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* This file contains the implementation of the Printable String ASN1 object. +* The characters included in this string type are: +* AB...Zab...z01...9'()+,-./:? +* +*/ + + +#include + +const TInt8 PrintableStringValid[256]= + { +// 0 1 2 3 4 5 6 7 8 9 a b c d e f + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 0 + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 1 + 0,0,0,0,0,0,0,1,1,1,0,1,1,1,1,1, // 2 + 1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1, // 3 + 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // 4 + 1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, // 5 + 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // 6 + 1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, // 7 + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 8 + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 9 + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // a + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // b + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // c + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // d + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // e + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // f + }; + +EXPORT_C TASN1DecPrintableString::TASN1DecPrintableString(void) + { + } + +TInt TASN1DecPrintableString::CheckValid(const TDesC8& aString) + + { + TInt i; + for (i=0;iDes(); + pRes.Copy(aSource); + return res; + }