diff -r 000000000000 -r 2c201484c85f cryptoservices/certificateandkeymgmt/tcertstore/t_certstoredefs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cryptoservices/certificateandkeymgmt/tcertstore/t_certstoredefs.h Wed Jul 08 11:25:26 2009 +0100 @@ -0,0 +1,303 @@ +/* +* Copyright (c) 2004-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: +* +*/ + + + + +/** + @file + @internalTechnology +*/ + +#ifndef __T_TCERTSTOREDEFS_H__ +#define __T_TCERTSTOREDEFS_H__ + +#include +#include + +//script file.Removed the hardcoded refernce c: from KCertStoreTestScript. +//Currently not refernced by any file.System drive to be appended when +//KCertStoreTestScript is used. +_LIT(KCertStoreTestScript, "\\t_certstore.txt"); + +//output file,Removed the hardcoded refernce c: from KCertStoreOutput. +//Currently not refernced by any file.System drive to be appended when +//KCertStoreOutput is used. +_LIT(KCertStoreOutput, "\\t_certstoreout.txt"); + +//action types +_LIT8(KCreateFileCertStore, "createfilecertstore"); +_LIT8(KTestConcurrentCertStore, "testconcurrent"); +_LIT8(KInitStore, "init"); +_LIT8(KOnlyCreateStore, "onlycreate"); +_LIT8(KDeleteStore, "delete"); +_LIT8(KImportKey, "importkey"); +_LIT8(KAddCert, "addcert"); +_LIT8(KDeleteCert, "deletecert"); +_LIT8(KDeleteRetrieveCACert, "deleteandretrievecacert"); +_LIT8(KDeleteRetrieveUserCert, "deleteandretrieveusercert"); +_LIT8(KListCert, "listcert"); +_LIT8(KRetrieveCert, "retrieve"); +_LIT8(KLoadUniqueCACert, "loaduniquecacert"); +_LIT8(KLoadUniqueUserCert, "loaduniqueusercert"); +_LIT8(KGetApplications, "getapplications"); +_LIT8(KSetApplications, "setapplications"); +_LIT8(KSetTruster, "settrust"); +_LIT8(KGetTrusters, "gettrusters"); +_LIT8(KInitAppManager, "initappmanager"); +_LIT8(KDeleteAppManager, "deleteappmanager"); +_LIT8(KAddClient, "addclient"); +_LIT8(KGetClients, "getclients"); +_LIT8(KRemoveClient, "removeclient"); +_LIT8(KMemFail, "memfail"); +_LIT8(KCUnifiedCertStoreGetCert, "CUnifiedCertStore GetCert"); +_LIT8(KSetCapabilities, "setcapabilities"); +_LIT8(KGetCapabilities, "getcapabilities"); +_LIT8(KSetMandatory, "setmandatory"); +_LIT8(KGetMandatory, "getmandatory"); +_LIT8(KGetSystemUpgrade, "getsystemupgrade"); +_LIT8(KSetDeletable, "setdeletable"); +_LIT8(KGetDeletable, "getdeletable"); +_LIT8(KInitSWICertStore, "initswicertstore"); +_LIT8(KMultipleReaders, "multiplereaders"); + +// Action types for the key store +_LIT8(KUnifiedKeyStoreInit, "UnifiedKeyStore Init"); +_LIT8(KUnifiedKeyStoreDelete, "UnifiedKeyStore Delete"); +_LIT8(KUnifiedKeyStoreKeyStoreCount, "UnifiedKeyStore KeyStoreCount"); +_LIT8(KUnifiedKeyStoreList, "UnifiedKeyStore List"); +_LIT8(KCUnifiedCertStoreReadOnlyCertStoreCount, "CUnifiedCertStore ReadOnlyCertStoreCount"); +_LIT8(KCUnifiedCertStoreWritableCertStoreCount, "CUnifiedCertStore WritableCertStoreCount"); +_LIT8(KCUnifiedCertStoreCertStoreCount, "CUnifiedCertStore CertStoreCount"); + +_LIT8(KNumberOfStoresStart, ""); +_LIT8(KNumberOfStoresEnd, ""); + +_LIT8(KCCTTokenTypeInfoAttributes, "CCTTokenTypeInfo Attributes"); + +_LIT8(KStoreIndexStart, ""); +_LIT8(KStoreIndexEnd, ""); + +// Action types for CCTCertInfo +_LIT8(KCCTCertInfoHandle, "CCTCertInfo Handle"); +_LIT8(KCTestCertForDeletable, "testcertfordeletable"); + +//tags + +//tags for adding cert +_LIT8(KModeStart, ""); +_LIT8(KModeEnd, ""); +_LIT8(KCertFormatStart, ""); +_LIT8(KCertFormatEnd, ""); +_LIT8(KCertTypeStart,""); +_LIT8(KCertTypeEnd,""); +_LIT8(KReadOnlyStart, ""); +_LIT8(KReadOnlyEnd, ""); +_LIT8(KIssuerKeyStart, ""); +_LIT8(KIssuerKeyEnd, ""); +_LIT8(KSubjectKeyStart, ""); +_LIT8(KSubjectKeyEnd, ""); +_LIT8(KCertFileStart, ""); +_LIT8(KCertFileEnd, ""); +_LIT8(KCertOwnerTypeStart, "");//ca or user +_LIT8(KCertOwnerTypeEnd, ""); +_LIT8(KStoreToUseStart, ""); +_LIT8(KStoreToUseEnd, ""); +_LIT8(KDeletableStart, ""); +_LIT8(KDeletableEnd, ""); +_LIT8(KSubActionStart, ""); +_LIT8(KSubActionEnd, ""); +_LIT8(KTestNewCSClasswDeletable, "TestNewCSClasswDeletable"); +_LIT8(KTestOldCSClasswoDeletable, "TestOldCSClasswoDeletable"); +_LIT8(KTestSerialization, "TestSerialization"); +_LIT8(KTrue, "True"); +_LIT8(KFalse, "False"); +_LIT8(KOrderingFilterStart, ""); +_LIT8(KOrderingFilterEnd, ""); + + +// tags for filter implementation +_LIT8(KFilterStart,""); +_LIT8(KFilterEnd,""); +_LIT8(KCertLabelStart, ""); +_LIT8(KUidStart,""); +_LIT8(KUidEnd,""); +_LIT8(KOwnerTypeStart,""); +_LIT8(KOwnerTypeEnd,""); +_LIT8(KKeyUsageDescStart, ""); +_LIT8(KKeyUsageDescEnd, ""); +_LIT8(KKeyUsageSchemeStart,""); +_LIT8(KKeyUsageSchemeEnd,""); +_LIT8(KKeyUsageStart, ""); +_LIT8(KKeyUsageEnd, ""); +_LIT8(KKeyTypeStart, ""); +_LIT8(KKeyTypeEnd, ""); +_LIT8(KKeyUsagePKCS,"pkcs15"); +_LIT8(KKeyUsageX509,"x509"); +_LIT8(KSubjectKeyIdStart,""); +_LIT8(KSubjectKeyIdEnd,""); +_LIT8(KIssuerKeyIdStart,""); +_LIT8(KIssuerKeyIdEnd,""); + +// tag for Notification of Change +_LIT8(KChangeNotifiedStart, ""); +_LIT8(KChangeNotifiedEnd, ""); + +// tag for delete all certificates +_LIT8(KDeleteAllStart, ""); +_LIT8(KDeleteAllEnd, ""); +//cert owner type +_LIT8(KCACert, "ca"); +_LIT8(KUserCert, "user"); +_LIT8(KPeerCert, "peer"); +//cert format +_LIT8(KX509, "X509"); +_LIT8(KWTLS, "WTLS"); +_LIT8(KX968, "X968"); +_LIT8(KX509URL, "X509URL"); +_LIT8(KWTLSURL, "WTLSURL"); +_LIT8(KX968URL, "X968URL"); +_LIT8(KUnknown, "unknown"); + +//tags for showing certs +_LIT8(KUIDStart, ""); +_LIT8(KUIDEnd, ""); +_LIT8(KFormatFlagsStart, ""); +_LIT8(KFormatFlagsEnd, ""); +_LIT8(KIssuerDNStart, ""); +_LIT8(KIssuerDNEnd, ""); + +//tags for adding clients +_LIT8(KNameStart, ""); +_LIT8(KNameEnd, ""); + +//tags for expected result +_LIT(KReturnStart, ""); +_LIT(KReturnEnd, ""); +_LIT8(KTrustersStart, ""); +_LIT8(KTrustersEnd, ""); +_LIT8(KOrderingResultStart, ""); +_LIT8(KOrderingResultEnd, ""); + +//tags for filecertstore creation +_LIT8(KFileNameStart, ""); +_LIT8(KFileNameEnd, ""); + +_LIT8(KTokenTypeStart, ""); +_LIT8(KTokenTypeEnd, ""); +_LIT8(KTokenStart, ""); +_LIT8(KTokenEnd, ""); +_LIT8(KObjectStart, ""); +_LIT8(KObjectEnd, ""); + +_LIT8(KCCTCertInfoStart, ""); +_LIT8(KCCTCertInfoEnd, ""); + +_LIT8(KMandatoryStart, ""); +_LIT8(KMandatoryEnd, ""); + +_LIT8(KSystemUpgradeStart, ""); +_LIT8(KSystemUpgradeEnd, ""); + + +_LIT8(KDeletionStart, ""); +_LIT8(KDeletionEnd, ""); + +///////////////////// +// Keystore defs +//////////////////// +// Used for generating filters based on the key usage for X509 certificate scheme +_LIT8(KAllKeyUsages, "allusages"); +_LIT8(KDigitalSignature, "DigitalSignature"); +_LIT8(KDS, "DS"); +_LIT8(KNonRepudiation, "NonRepudiation"); +_LIT8(KNR, "NR"); +_LIT8(KKeyEncipherment, "KeyEncipherment"); +_LIT8(KKE, "KE"); +_LIT8(KDataEncipherment, "DataEncipherment"); +_LIT8(KDE, "DE"); +_LIT8(KKeyAgreement, "KeyAgreement"); +_LIT8(KKA, "KA"); +_LIT8(KKeyCertSign, "KeyCertSign"); +_LIT8(KKCS, "KCS"); +_LIT8(KCRLSign, "CRLSign"); +_LIT8(KCRLS, "CRLS"); +_LIT8(KEncipherOnly, "EncipherOnly"); +_LIT8(KE, "E"); +_LIT8(KDecipherOnly, "DecipherOnly"); +_LIT8(KD, "D"); + +// Used for generating filters based on the key usage for PKCS15 scheme +_LIT8(KPublic, "public"); +_LIT8(KPrivate, "private"); +_LIT8(KAll, "all"); + +// key usage for public keys for PKCS15 scheme +_LIT8(KEncrypt, "Encrypt"); +_LIT8(KVerify, "Verify"); +_LIT8(KVerifyRecover, "VerifyRecover"); +_LIT8(KDerive, "Derive"); +_LIT8(KWrap, "Wrap"); +// the last usage is for non-repudiation which has already been defined(KNonRepudiation). + +// key usage for private keys for PKCS15 scheme +_LIT8(KDecrypt, "Decrypt"); +_LIT8(KSign, "Sign"); +_LIT8(KSignRecover, "SignRecover"); +// usage for derive has already been defined (KDerived). +_LIT8(KUnwrap, "Unwrap"); +// the last usage is for non-repudiation which has already been defined(KNonRepudiation). + +// common combinations for private key usage +_LIT8(KSigning, "Signing"); +_LIT8(KEncipherAndSign, "EncipherAndSign"); +_LIT8(KAllKeyUsagesButNR, "AllUsagesButNR"); + +_LIT8(KDSAUsage, "DSAUsage"); + + + +_LIT8(KImportEncrypted, ""); +_LIT8(KImportEncryptedEnd, ""); +_LIT8(KImportDataFile, ""); +_LIT8(KImportDataFileEnd, ""); +_LIT8(KKeySizeStart, ""); +_LIT8(KKeySizeEnd, ""); +_LIT8(KKeyLabelStart, ""); +_LIT8(KKeyLabelEnd, ""); +_LIT8(KKeyAlgorithmStart, ""); +_LIT8(KKeyAlgorithmEnd, ""); +_LIT8(KKeyPassphraseStart, ""); +_LIT8(KKeyPassphraseEnd, ""); +_LIT8(KAlgRSA, "RSA"); +_LIT8(KAlgDSA, "DSA"); +_LIT8(KAlgDH, "DH"); +_LIT8(KAlgBAD, "BAD"); +_LIT8(KKeyExportableStart, ""); +_LIT8(KKeyExportableEnd, ""); +_LIT8(KIsExportable, "IsExportable"); +_LIT8(KIsNotExportable, "IsNotExportable"); +_LIT8(KKeyAccessTypeStart, ""); +_LIT8(KKeyAccessTypeEnd, ""); +_LIT8(KExtractable, "Extractable"); +_LIT8(KSensitive, "Sensitive"); +_LIT8(KAlwaysSensitive, "AlwaysSensitive"); +_LIT8(KNeverExtractable, "NeverExtractable"); +_LIT8(KLocal, "Local"); + +#endif