diff -r 675a964f4eb5 -r 35751d3474b7 crypto/weakcryptospi/source/spi/cryptospistateapi.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/crypto/weakcryptospi/source/spi/cryptospistateapi.cpp Thu Sep 10 14:01:51 2009 +0300 @@ -0,0 +1,89 @@ +/* +* Copyright (c) 2006-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: +* cryptospistate client API implemetation +* crypto spi API implementation +* +*/ + + +/** + @file +*/ + +#include +#include +#include +#include "cryptospiutil.h" +#include + +using namespace CryptoSpi; + +// +// Implementation of CryptoSpiStateApi +// + +EXPORT_C void CCryptoSpiStateApi::SetSelector(MPluginSelector* aSelector) + { + Dll::SetTls(aSelector); + } + +EXPORT_C void CCryptoSpiStateApi::UnsetSelector() + { + Dll::SetTls(0); + } + +EXPORT_C void CCryptoSpiStateApi::EnumerateCharacteristicsL(RPointerArray& aCharacteristicsDll, TInt32 aInterface, TBool aExtended) + { + if (aInterface==0) + { + TInt interfaceCount=sizeof(KInterfacesUids)/sizeof(KInterfacesUids[0]); + for (TInt i=0;iiDllName); + GetExtendedCharacteristicsFuncL getExtendedCharFuncL=(GetExtendedCharacteristicsFuncL)lib.Lookup(EGetExtendedCharacteristicOrdinal); + if (getExtendedCharFuncL) + { + TUid implementationUid={aCharacteristicsDll[i]->iCharacteristic->iImplementationUid}; + getExtendedCharFuncL(implementationUid, aCharacteristicsDll[i]->iExtendedCharacteristic); + } + CleanupStack::PopAndDestroy(&lib); + } + } + } + + + + + + + + + + +