vpnengine/pkiservice/inc/pkisupport.h
changeset 1 c9c2ad51f972
parent 0 33413c0669b9
child 4 29b591713d44
equal deleted inserted replaced
0:33413c0669b9 1:c9c2ad51f972
    92         void StoreCertificateL(const TDesC &aLabel, 
    92         void StoreCertificateL(const TDesC &aLabel, 
    93             TCertificateOwnerType aOwnerType, const TDesC8 &aBufferPtr, 
    93             TCertificateOwnerType aOwnerType, const TDesC8 &aBufferPtr, 
    94             const TBool& aIsDeletable, TRequestStatus& aStatus);
    94             const TBool& aIsDeletable, TRequestStatus& aStatus);
    95         
    95         
    96         void AttachCertificateL(const TDesC &aLabel, 
    96         void AttachCertificateL(const TDesC &aLabel, 
    97             const TPKIKeyIdentifier &aKeyId, 
       
    98             const TDesC8 &aBufferPtr, TRequestStatus& aStatus);
    97             const TDesC8 &aBufferPtr, TRequestStatus& aStatus);
    99         
    98         
   100         void RetrieveCertificateL(const TDesC &aLabel, 
    99         void RetrieveCertificateL(const TDesC &aLabel, 
       
   100             const TPKIKeyIdentifier& aCertificateKeyId,
   101             TPtr8 &aBufferPtr, const TPKICertificateOwnerType& aType, 
   101             TPtr8 &aBufferPtr, const TPKICertificateOwnerType& aType, 
   102             TRequestStatus& aStatus);
   102             TRequestStatus& aStatus);
   103                     
   103                     
   104         void RemoveCertificateL(const TDesC &aLabel, 
   104         void RemoveCertificateL(const TDesC &aLabel, 
       
   105             const TPKIKeyIdentifier& aCertificateKeyId,
   105             TRequestStatus& aStatus);
   106             TRequestStatus& aStatus);
   106                         
   107                         
   107         void SelectCertificateL(const TDesC &aLabel, 
   108         void SelectCertificateL(const TDesC &aLabel, 
       
   109                                 const TPKIKeyIdentifier& aCertificateKeyId,
   108                                 const TPKICertificateOwnerType& aType = EPKICACertificate);
   110                                 const TPKICertificateOwnerType& aType = EPKICACertificate);
   109         
   111         
   110         // Asynchronous sertificate store request
   112         // Asynchronous sertificate store request
   111         void GetCertificateStoreListAsync();
   113         void GetCertificateStoreListAsync();
   112         
   114         
   113         // Helper methods
   115         // Helper methods
   114         TInt GetRequiredBufferSize();
   116         TInt GetRequiredBufferSize();
   115         void SetCallerStatusPending(TRequestStatus& aStatus);
   117         void SetCallerStatusPending(TRequestStatus& aStatus);
   116         void CompleteCallerStatus(TInt aError);
   118         void CompleteCallerStatus(TInt aError);
   117         void SetTrustL(
   119         void SetTrustL(const TDesC &aLabel, const TPKIKeyIdentifier& aCertificateKeyId,
   118             const TDesC &aLabel, TBool aTrusted, TRequestStatus& aStatus);
   120                        TBool aTrusted, TRequestStatus& aStatus);
   119         void TrustedL(const TDesC &aLabel, TRequestStatus& aStatus);
   121         void TrustedL(const TDesC &aLabel, const TPKIKeyIdentifier& aCertificateKeyId,
   120         void SetApplicabilityL(
   122                       TRequestStatus& aStatus);
   121             const TDesC &aLabel, const RArray<TUid>& aApplUids, 
   123         void SetApplicabilityL(const TDesC &aLabel, 
   122             TRequestStatus& Status);
   124                                const TPKIKeyIdentifier& aCertificateKeyId, 
   123         void ApplicationsL(const TDesC &aLabel, TRequestStatus& Status);
   125                                const RArray<TUid>& aApplUids, 
       
   126                                TRequestStatus& Status);
       
   127         void ApplicationsL(const TDesC &aLabel, const TPKIKeyIdentifier& aCertificateKeyId,
       
   128                            TRequestStatus& Status);
   124                     
   129                     
   125         inline void SetCertStoreType(TPkiServiceStoreType aStoreType) 
   130         inline void SetCertStoreType(TPkiServiceStoreType aStoreType) 
   126             {
   131             {
   127             iCertStoreType = aStoreType;
   132             iCertStoreType = aStoreType;
   128             };
   133             };
   201         TInt                        iSupportStatus;
   206         TInt                        iSupportStatus;
   202         TPtr8                       *iOutBufferPtr;        
   207         TPtr8                       *iOutBufferPtr;        
   203         TInt                        iCurrentFunction;
   208         TInt                        iCurrentFunction;
   204         TInitPhaseState             iInitState;
   209         TInitPhaseState             iInitState;
   205         TSubState                   iSubState;        
   210         TSubState                   iSubState;        
   206         RMPointerArray<CCTCertInfo> *iCerts;
   211         RMPointerArray<CCTCertInfo> iCerts;
   207         CCertAttributeFilter        *iCertFilter;        
   212         CCertAttributeFilter        *iCertFilter;        
   208         RMessage2                   iMessage;
   213         RMessage2                   iMessage;
   209         TKeyIdentifier              iKeyId;
   214         TKeyIdentifier              iKeyId;
   210         TInt                        iRequiredBufferLength;
   215         TInt                        iRequiredBufferLength;
   211         TBool                       iTrusted;
   216         TBool                       iTrusted;
   212         RArray<TUid>                iApplUids;
   217         RArray<TUid>                iApplUids;
   213         TInt                        iImportCounter;
   218         TInt                        iImportCounter;
   214         CMapDescriptor              *iImportCertMapping;
       
   215         HBufC8                      *iImportCertData;
   219         HBufC8                      *iImportCertData;
   216 		TBool						iToggleSwitch;		
   220 		TBool						iToggleSwitch;		
   217 		
   221 		
   218 		TPkiServiceStoreType        iCertStoreType;
   222 		TPkiServiceStoreType        iCertStoreType;
   219 		TInt                        iDeviceCertStoreIndex;
   223 		TInt                        iDeviceCertStoreIndex;
   220         MCTWritableCertStore*       iWritableDeviceCertStore;
   224         MCTWritableCertStore*       iWritableDeviceCertStore;
   221                 
   225                 
   222         REventMediator              iEventMediator; // for logging
   226         REventMediator              iEventMediator; // for logging
   223         HBufC8*                     iCertInfoForLogging;
   227         HBufC8*                     iCertInfoForLogging;
   224 
       
   225 };
   228 };
   226 #endif
   229 #endif