1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
68 |
68 |
69 public: |
69 public: |
70 // Construct/destruct |
70 // Construct/destruct |
71 static CTLSTest *NewL(); |
71 static CTLSTest *NewL(); |
72 ~CTLSTest(); |
72 ~CTLSTest(); |
|
73 #ifdef HTTP_ALLOW_UNTRUSTED_CERTIFICATES |
73 void ConnectL( const TDesC &aAddress, |
74 void ConnectL( const TDesC &aAddress, |
74 const TInt aPortNum, |
75 const TInt aPortNum, |
75 const TDesC &aPage, |
76 const TDesC &aPage, |
76 const TDesC8 &aCipherSuite, |
77 const TDesC8 &aCipherSuite, |
77 const TInt aCipher, |
78 const TInt aCipher, |
78 const TInt aSimpleGet, |
79 const TInt aSimpleGet, |
79 const TInt aTestEndDelay, |
80 const TInt aTestEndDelay, |
80 const TDesC8& aDNSName, |
81 const TDesC8& aDNSName, |
81 const TDesC& aProtocol, |
82 const TDesC& aProtocol, |
82 TBool aUseGenericSocket, |
83 TBool aUseGenericSocket, |
83 TBool aEAPKeyDerivation ); |
84 TBool aEAPKeyDerivation, |
|
85 TBool aTLSDialogMode, |
|
86 TInt aTLSDialogModeValue, |
|
87 TInt aExpectedErrorCode ); |
|
88 #else |
|
89 void ConnectL( const TDesC &aAddress, |
|
90 const TInt aPortNum, |
|
91 const TDesC &aPage, |
|
92 const TDesC8 &aCipherSuite, |
|
93 const TInt aCipher, |
|
94 const TInt aSimpleGet, |
|
95 const TInt aTestEndDelay, |
|
96 const TDesC8& aDNSName, |
|
97 const TDesC& aProtocol, |
|
98 TBool aUseGenericSocket, |
|
99 TBool aEAPKeyDerivation ); |
|
100 #endif // HTTP_ALLOW_UNTRUSTED_CERTIFICATES |
84 |
101 |
85 void SetConsole( CTestStepTls * aTestStep ); |
102 void SetConsole( CTestStepTls * aTestStep ); |
86 TBool InUse(); |
103 TBool InUse(); |
87 TBool TestingSite( const TDesC &aAddress, const TInt aPortNum ); |
104 TBool TestingSite( const TDesC &aAddress, const TInt aPortNum ); |
88 TInt RunError( TInt aError ); |
105 TInt RunError( TInt aError ); |
117 TInt iTestEndDelay; |
134 TInt iTestEndDelay; |
118 TBool iTestPassed; // true if the test completed successfully |
135 TBool iTestPassed; // true if the test completed successfully |
119 TBool iCiphersMatch; // true if expected cipher was selected by the server |
136 TBool iCiphersMatch; // true if expected cipher was selected by the server |
120 TBool iUseGenericSocket; |
137 TBool iUseGenericSocket; |
121 TBool iEAPKeyDerivation; |
138 TBool iEAPKeyDerivation; |
122 |
139 #ifdef HTTP_ALLOW_UNTRUSTED_CERTIFICATES |
|
140 TBool iTLSDialogMode; |
|
141 TInt iTLSDialogModeValue; |
|
142 TInt iExpectedErrorCode; |
|
143 #endif // HTTP_ALLOW_UNTRUSTED_CERTIFICATES |
123 TSockXfrLength iBytesRead; |
144 TSockXfrLength iBytesRead; |
124 TBuf8<5000> iRcvBuffer; |
145 TBuf8<5000> iRcvBuffer; |
125 TBuf8<256> iSndBuffer; |
146 TBuf8<256> iSndBuffer; |
126 TSockXfrLength iBytesSent; |
147 TSockXfrLength iBytesSent; |
127 TInt iTotalBytesRead; |
148 TInt iTotalBytesRead; |