|
1 /** |
|
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Hello Request message class header file. |
|
16 * Describes a concrete class for SSL3.0/TLS1.0 Hello Request message (event). |
|
17 * This message may be sent by the server at any time. |
|
18 * |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @file HelloRequest.h |
|
26 */ |
|
27 |
|
28 #include <comms-infras/statemachine.h> |
|
29 #include <comms-infras/asynchevent.h> |
|
30 #include "handshakereceiveevents.h" |
|
31 #include "tlsconnection.h" |
|
32 #include "tlshandshakeitem.h" |
|
33 #include "recordprotocolevents.h" |
|
34 |
|
35 #ifndef _HELLOREQUEST_H_ |
|
36 #define _HELLOREQUEST_H_ |
|
37 |
|
38 class CTlsConnection; |
|
39 class CHelloRequest : public CHandshakeReceive, public MStateMachineNotify |
|
40 /** |
|
41 * Describes a Hello Request message. |
|
42 * This (empty) message is a simple notification that the client should begin |
|
43 * the negotiation process anew, by sending a client hello message when convenient. |
|
44 */ |
|
45 { |
|
46 public: |
|
47 CHelloRequest( CTlsConnection& aTlsConnection, CStateMachine& aStateMachine ); |
|
48 |
|
49 // CHandshakeReceive virtuals |
|
50 virtual TBool AcceptMessage( const TUint8 aHandshakeType ) const; |
|
51 virtual CAsynchEvent* ProcessL( TRequestStatus& aStatus ); |
|
52 |
|
53 // MStateMachineNotify virtuals |
|
54 virtual TBool OnCompletion( CStateMachine* aStateMachine ); |
|
55 |
|
56 private: |
|
57 CTlsConnection& iTlsConnection; |
|
58 }; |
|
59 |
|
60 #endif |