class CTlsProviderImpl : public CActive |
Public Member Functions | |
---|---|
CTlsProviderImpl() | |
~CTlsProviderImpl() | |
CTlsCryptoAttributes * | Attributes() |
void | CancelRequest() |
void | CipherSuitesL(RArray< TTLSCipherSuite > &, TRequestStatus &) |
void | ClearSessionCacheL(TTLSSessionNameAndID &, TRequestStatus &) |
CTlsProviderImpl * | ConnectL() |
void | CreateL(CTLSSession *&, TRequestStatus &) |
void | GenerateRandom(TDes8 &) |
void | GetSessionL(TTLSServerAddr &, TTLSSessionId &, TRequestStatus &) |
MCTToken * | GetTokenHandle() |
CTlsSessionImpl * | TlsSessionPtr() |
void | VerifyServerCertificate(const TDesC8 &, CX509Certificate *&, TRequestStatus &) |
TBool | VerifySignatureL(const CSubjectPublicKeyInfo &, const TDesC8 &, const TDesC8 &) |
Private Member Functions | |
---|---|
TBool | CheckExtendedKeyUsageL(const CX509Certificate &) |
void | ConstructL() |
void | DoCancel() |
HBufC * | ExtractCertFieldL(const TDesC &, const CX500DistinguishedName &) |
void | GetAvailableKeyListL() |
void | GetX509CertL(HBufC8 *&, CX509Certificate *&) |
void | HandleBadCertificateL(const TValidationStatus) |
TBool | IsCipherAvailable(const TTLSCipherSuiteMapping &) |
TBool | NameIsInSubtree(CX509DNSName &, CX509DNSName &, TBool) |
void | NextOrEnd() |
void | OnEBrowseTokens() |
void | OnEGetSession() |
void | OnEGetSessionInterfaceL() |
void | OnEStartSession() |
void | OnEUserDialogL() |
void | OnQueryCacheL() |
void | RetrieveSession() |
void | ReturnCipherListL() |
void | ReturnResult() |
void | ReturnSession() |
TInt | RunError(TInt) |
void | RunL() |
TBool | SelectToken() |
void | ShowUntrustedDialogL(const TValidationStatus) |
TBool | ValidateDNSNameL(const CX509Certificate &) |
Private Member Enumerations | |
---|---|
enum | TStateLists { ENullState, ECreate, EGetCiphers, EValidateCertificate, EClearSessionCache, EOpenToken, EGetSession, EGetSessionInterface, EStartSession, EGetKeyAndSignExAlgrthm, EConstructResumed, EConstruct, EClientAuthenticate, EBrowseTokens, EQueryCache, EUserDialog, ENextOrEnd } |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Inherited Attributes | |
---|---|
CActive::iStatus |
TBool | CheckExtendedKeyUsageL | ( | const CX509Certificate & | aSource | ) | [private] |
const CX509Certificate & aSource |
void | CipherSuitesL | ( | RArray< TTLSCipherSuite > & | aUserCipherSuiteList, |
TRequestStatus & | aStatus | |||
) |
RArray< TTLSCipherSuite > & aUserCipherSuiteList | |
TRequestStatus & aStatus |
void | ClearSessionCacheL | ( | TTLSSessionNameAndID & | aServerNameAndId, |
TRequestStatus & | aStatus | |||
) |
TTLSSessionNameAndID & aServerNameAndId | |
TRequestStatus & aStatus |
void | CreateL | ( | CTLSSession *& | aTlsSession, |
TRequestStatus & | aStatus | |||
) |
CTLSSession *& aTlsSession | |
TRequestStatus & aStatus |
void | DoCancel | ( | ) | [private, virtual] |
Implements cancellation of an outstanding request.
This function is called as part of the active object's Cancel().
It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.
DoCancel() must not wait for event completion; this is handled by Cancel().
HBufC * | ExtractCertFieldL | ( | const TDesC & | aFieldName, |
const CX500DistinguishedName & | aDistinguishedName | |||
) | [private] |
const TDesC & aFieldName | |
const CX500DistinguishedName & aDistinguishedName |
void | GetSessionL | ( | TTLSServerAddr & | aServerName, |
TTLSSessionId & | aSessionId, | |||
TRequestStatus & | aStatus | |||
) |
TTLSServerAddr & aServerName | |
TTLSSessionId & aSessionId | |
TRequestStatus & aStatus |
void | GetX509CertL | ( | HBufC8 *& | aEncodedCert, |
CX509Certificate *& | aOutputX509 | |||
) | [private] |
HBufC8 *& aEncodedCert | |
CX509Certificate *& aOutputX509 |
void | HandleBadCertificateL | ( | const TValidationStatus | aResult | ) | [private] |
const TValidationStatus aResult |
TBool | IsCipherAvailable | ( | const TTLSCipherSuiteMapping & | aCipherSuiteMapping | ) | const [private] |
const TTLSCipherSuiteMapping & aCipherSuiteMapping |
TBool | NameIsInSubtree | ( | CX509DNSName & | aServerName, |
CX509DNSName & | aCertName, | |||
TBool | aIsWildcard | |||
) | [private] |
CX509DNSName & aServerName | |
CX509DNSName & aCertName | |
TBool aIsWildcard |
void | RunL | ( | ) | [private, virtual] |
Handles an active object's request completion event.
A derived class must provide an implementation to handle the completed request. If appropriate, it may issue another request.
The function is called by the active scheduler when a request completion event occurs, i.e. after the active scheduler's WaitForAnyRequest() function completes.
Before calling this active object's RunL() function, the active scheduler has:
1. decided that this is the highest priority active object with a completed request
2. marked this active object's request as complete (i.e. the request is no longer outstanding)
RunL() runs under a trap harness in the active scheduler. If it leaves, then the active scheduler calls RunError() to handle the leave.
Note that once the active scheduler's Start() function has been called, all user code is run under one of the program's active object's RunL() or RunError() functions.
CActiveScheduler::Start CActiveScheduler::Error CActiveScheduler::WaitForAnyRequest TRAPD
void | ShowUntrustedDialogL | ( | const TValidationStatus | aResult | ) | [private] |
const TValidationStatus aResult |
TBool | ValidateDNSNameL | ( | const CX509Certificate & | aSource | ) | [private] |
const CX509Certificate & aSource |
void | VerifyServerCertificate | ( | const TDesC8 & | aEncodedServerCerts, |
CX509Certificate *& | aServerCert, | |||
TRequestStatus & | aStatus | |||
) |
const TDesC8 & aEncodedServerCerts | |
CX509Certificate *& aServerCert | |
TRequestStatus & aStatus |
TBool | VerifySignatureL | ( | const CSubjectPublicKeyInfo & | aServerPublicKey, |
const TDesC8 & | aDigest, | |||
const TDesC8 & | aSig | |||
) |
const CSubjectPublicKeyInfo & aServerPublicKey | |
const TDesC8 & aDigest | |
const TDesC8 & aSig |
ENullState | |
ECreate | |
EGetCiphers | |
EValidateCertificate | |
EClearSessionCache | |
EOpenToken | |
EGetSession | |
EGetSessionInterface | |
EStartSession | |
EGetKeyAndSignExAlgrthm | |
EConstructResumed | |
EConstruct | |
EClientAuthenticate | |
EBrowseTokens | |
EQueryCache | |
EUserDialog | |
ENextOrEnd |
CPKIXValidationResult * | iCertVerificationResult | [private] |
RArray< CTokenTypesAndTokens > | iListAllTokensAndTypes | [private] |
RPointerArray< CCertificate > | iStoredIntermediatesCACertificates | [private] |
RArray< TTLSCipherSuite > | iSupportedCipherSuiteList | [private] |
RArray< TTLSCipherSuite > * | iUserCipherSuiteList | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.