class CTlsSessionImpl : public CActive |
Private Member Functions | |
---|---|
CTlsSessionImpl() | |
void | BuildClientIntermediateCertChainL(RPointerArray< CCertificate > &, const CX509Certificate *) |
void | DoCancel() |
void | GenerateFinishedMessageL(CMessageDigest *, CMessageDigest *, HBufC8 *&, TBool) |
void | GenerateKeysL() |
void | GetX509CertL(HBufC8 *&, CX509Certificate *&) |
TBool | MatchRequestedIssuerDN(const CCertificate *) |
TInt | RunError(TInt) |
void | RunL() |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Inherited Attributes | |
---|---|
CActive::iStatus |
void | BuildClientIntermediateCertChainL | ( | RPointerArray< CCertificate > & | aCertChain, |
const CX509Certificate * | aClientCert | |||
) | const [private] |
RPointerArray< CCertificate > & aCertChain | |
const CX509Certificate * aClientCert |
void | CertificateVerifySignatureL | ( | CMessageDigest * | aMd5DigestInput, |
CMessageDigest * | aShaDigestInput, | |||
HBufC8 *& | aOutput, | |||
TRequestStatus & | aStatus | |||
) |
CMessageDigest * aMd5DigestInput | |
CMessageDigest * aShaDigestInput | |
HBufC8 *& aOutput | |
TRequestStatus & aStatus |
void | ClientCertificate | ( | HBufC8 *& | aEncodedClientCert, |
TRequestStatus & | aStatus | |||
) |
HBufC8 *& aEncodedClientCert | |
TRequestStatus & aStatus |
void | ClientCertificate | ( | CX509Certificate *& | aX509ClientCert, |
TRequestStatus & | aStatus | |||
) |
CX509Certificate *& aX509ClientCert | |
TRequestStatus & aStatus |
void | ClientCertificate | ( | RPointerArray< HBufC8 > * | aClientCertArray, |
TRequestStatus & | aStatus | |||
) |
RPointerArray< HBufC8 > * aClientCertArray | |
TRequestStatus & aStatus |
void | ClientFinishedMsgL | ( | CMessageDigest * | aMd5DigestInput, |
CMessageDigest * | aShaDigestInput, | |||
HBufC8 *& | aOutput, | |||
TRequestStatus & | aStatus | |||
) |
CMessageDigest * aMd5DigestInput | |
CMessageDigest * aShaDigestInput | |
HBufC8 *& aOutput | |
TRequestStatus & aStatus |
void | ClientKeyExchange | ( | HBufC8 *& | aClientKeyExch, |
TRequestStatus & | aStatus | |||
) |
HBufC8 *& aClientKeyExch | |
TRequestStatus & aStatus |
void | ConstructL | ( | CTlsCryptoAttributes * | aTlsCryptoAttributes, |
HBufC8 * | aEncodedServerCerts, | |||
TRequestStatus & | aStatus | |||
) |
CTlsCryptoAttributes * aTlsCryptoAttributes | |
HBufC8 * aEncodedServerCerts | |
TRequestStatus & aStatus |
void | ConstructResumedL | ( | CTlsCryptoAttributes * | aTlsCryptoAttributes, |
TRequestStatus & | aStatus | |||
) |
CTlsCryptoAttributes * aTlsCryptoAttributes | |
TRequestStatus & aStatus |
TInt | DecryptAndVerifyL | ( | const TDesC8 & | aInput, |
HBufC8 *& | aOutput, | |||
TInt64 & | aSeqNumber, | |||
TRecordProtocol & | aType | |||
) |
const TDesC8 & aInput | |
HBufC8 *& aOutput | |
TInt64 & aSeqNumber | |
TRecordProtocol & aType |
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().
TInt | EncryptL | ( | const TDesC8 & | aInput, |
HBufC8 *& | aOutput, | |||
TInt64 & | aSeqNumber, | |||
TRecordProtocol & | aType | |||
) |
const TDesC8 & aInput | |
HBufC8 *& aOutput | |
TInt64 & aSeqNumber | |
TRecordProtocol & aType |
void | GenerateFinishedMessageL | ( | CMessageDigest * | aMd5DigestInput, |
CMessageDigest * | aShaDigestInput, | |||
HBufC8 *& | aOutput, | |||
TBool | aIsServer | |||
) | [private] |
This asynchronous method generates a SSL/TLS protocol's Client 'Finished' message. This input for this message is a hash of the concatenation of all the handshake messages exchanged thus far (as specified by RFC2246 and SSL3.0 specification). In order to create the required output, TLS Protocol: "client finished" + iMd5DigestInput + iShaDigestInput
SSL Protocol: (iMd5DigestInput +"CLNT") + (iShaDigestInput +"CLNT")
CMessageDigest * aMd5DigestInput | Md5 hash of Handshake message |
CMessageDigest * aShaDigestInput | Md5 hash of Handshake message |
HBufC8 *& aOutput | Client's 'Finished' message |
TBool aIsServer | asynchronous request status set on the completion |
void | GetX509CertL | ( | HBufC8 *& | aEncodedCert, |
CX509Certificate *& | aOutputX509 | |||
) | [private] |
HBufC8 *& aEncodedCert | |
CX509Certificate *& aOutputX509 |
TInt | KeyDerivation | ( | const TDesC8 & | aLabel, |
const TTLSMasterSecretInput & | aMasterSecretInput, | |||
TDes8 & | aKeyingMaterial | |||
) |
const TDesC8 & aLabel | |
const TTLSMasterSecretInput & aMasterSecretInput | |
TDes8 & aKeyingMaterial |
TBool | MatchRequestedIssuerDN | ( | const CCertificate * | aCert | ) | const [private] |
const CCertificate * aCert |
CTlsSessionImpl * | NewL | ( | MTLSSession * | aSessionInterface, |
CCTCertInfo * | aSelectedCertInfo, | |||
CCTKeyInfo * | aSelectedKeyInfo, | |||
RPointerArray< CCertificate > * | aStoredIntermediatesCACertificates | |||
) | [static] |
MTLSSession * aSessionInterface | |
CCTCertInfo * aSelectedCertInfo | |
CCTKeyInfo * aSelectedKeyInfo | |
RPointerArray< CCertificate > * aStoredIntermediatesCACertificates |
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 | ServerCertificate | ( | CX509Certificate *& | aX509ServerCert, |
TRequestStatus & | aStatus | |||
) |
CX509Certificate *& aX509ServerCert | |
TRequestStatus & aStatus |
void | VerifyServerFinishedMsgL | ( | CMessageDigest * | aMd5DigestInput, |
CMessageDigest * | aShaDigestInput, | |||
const TDesC8 & | aActualFinishedMsg, | |||
TRequestStatus & | aStatus | |||
) |
CMessageDigest * aMd5DigestInput | |
CMessageDigest * aShaDigestInput | |
const TDesC8 & aActualFinishedMsg | |
TRequestStatus & aStatus |
ENullState | |
EConstruct | |
EGetClientCerificate | |
EGetClientKeyExchange | |
EGetServerCertificate | |
EKeyGeneration | |
EClientFinishedMsg | |
EVerifyServerFinishedMsg | |
EComputeDigitalSignature | |
EConnectionEstablished | |
EGetClientCerificateX509 | |
ECertificateVerifyMsg | |
EReturnCert | |
EGetClientCertificateArray |
RPointerArray< CCertificate > * | iStoredIntermediatesCACertificates | [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.