vpnengine/pkiservice/inc/pkisupport.h
changeset 4 29b591713d44
parent 1 c9c2ad51f972
child 22 9f4e37332ce5
equal deleted inserted replaced
3:2df28d7a2299 4:29b591713d44
    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 TDesC8 &aBufferPtr, TRequestStatus& aStatus);
    97             const TDesC8 &aBufferPtr, TRequestStatus& aStatus);
    98         
    98         
    99         void RetrieveCertificateL(const TDesC &aLabel, 
    99         void RetrieveCertificateL(const TDesC &aLabel,             
   100             const TPKIKeyIdentifier& aCertificateKeyId,
       
   101             TPtr8 &aBufferPtr, const TPKICertificateOwnerType& aType, 
   100             TPtr8 &aBufferPtr, const TPKICertificateOwnerType& aType, 
   102             TRequestStatus& aStatus);
   101             TRequestStatus& aStatus);
   103                     
   102                     
   104         void RemoveCertificateL(const TDesC &aLabel, 
   103         void RemoveCertificateL(const TDesC &aLabel, 
   105             const TPKIKeyIdentifier& aCertificateKeyId,
       
   106             TRequestStatus& aStatus);
   104             TRequestStatus& aStatus);
   107                         
   105                         
   108         void SelectCertificateL(const TDesC &aLabel, 
   106         void SelectCertificateL(const TDesC &aLabel, 
   109                                 const TPKIKeyIdentifier& aCertificateKeyId,
       
   110                                 const TPKICertificateOwnerType& aType = EPKICACertificate);
   107                                 const TPKICertificateOwnerType& aType = EPKICACertificate);
   111         
   108         
   112         // Asynchronous sertificate store request
   109         // Asynchronous sertificate store request
   113         void GetCertificateStoreListAsync();
   110         void GetCertificateStoreListAsync();
   114         
   111         
   115         // Helper methods
   112         // Helper methods
   116         TInt GetRequiredBufferSize();
   113         TInt GetRequiredBufferSize();
   117         void SetCallerStatusPending(TRequestStatus& aStatus);
   114         void SetCallerStatusPending(TRequestStatus& aStatus);
   118         void CompleteCallerStatus(TInt aError);
   115         void CompleteCallerStatus(TInt aError);
   119         void SetTrustL(const TDesC &aLabel, const TPKIKeyIdentifier& aCertificateKeyId,
   116         void SetTrustL(const TDesC &aLabel,
   120                        TBool aTrusted, TRequestStatus& aStatus);
   117                        TBool aTrusted, TRequestStatus& aStatus);
   121         void TrustedL(const TDesC &aLabel, const TPKIKeyIdentifier& aCertificateKeyId,
   118         void TrustedL(const TDesC &aLabel,
   122                       TRequestStatus& aStatus);
   119                       TRequestStatus& aStatus);
   123         void SetApplicabilityL(const TDesC &aLabel, 
   120         void SetApplicabilityL(const TDesC &aLabel,  
   124                                const TPKIKeyIdentifier& aCertificateKeyId, 
       
   125                                const RArray<TUid>& aApplUids, 
   121                                const RArray<TUid>& aApplUids, 
   126                                TRequestStatus& Status);
   122                                TRequestStatus& Status);
   127         void ApplicationsL(const TDesC &aLabel, const TPKIKeyIdentifier& aCertificateKeyId,
   123         void ApplicationsL(const TDesC &aLabel,
   128                            TRequestStatus& Status);
   124                            TRequestStatus& Status);
   129                     
   125                     
   130         inline void SetCertStoreType(TPkiServiceStoreType aStoreType) 
   126         inline void SetCertStoreType(TPkiServiceStoreType aStoreType) 
   131             {
   127             {
   132             iCertStoreType = aStoreType;
   128             iCertStoreType = aStoreType;