Update contrib.
2 * Copyright (c) 2007-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 * characteristicsetup.cpp
26 #include <cryptospi/cryptospidef.h>
27 #include "cryptopluginsloader.h"
29 using namespace CryptoSpi;
31 void CreatePropertiesL()
34 //Create plugin loader
36 CCryptoPluginsLoader* plugins=CCryptoPluginsLoader::NewLC();
39 //Create the plugin config property
41 plugins->CreatePluginConfigPropertyL();
44 //Create crypto interface property
46 TInt interfaceCount=sizeof(KInterfacesUids)/sizeof(KInterfacesUids[0]);
47 for (TInt i=0;i<interfaceCount;i++)
49 plugins->CreateInterfacePropertyL(KInterfacesUids[i].iUid);
55 CleanupStack::PopAndDestroy(plugins);
59 * @return KErrNone (0) if successful, KErrMemory if out of memory
60 * otherwise error result from calling RProperty::Define/Set
65 CTrapCleanup* trapCleanup=CTrapCleanup::New();
71 TRAPD(err, CreatePropertiesL());