|
1 /* |
|
2 * Copyright (c) 2001-2006 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 the License "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: EAP and WLAN authentication protocols. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #if !defined(_ABS_SIMPLE_CONFIG_MESSAGE_HASH_H_) |
|
22 #define _ABS_SIMPLE_CONFIG_MESSAGE_HASH_H_ |
|
23 |
|
24 #include "eap_am_export.h" |
|
25 |
|
26 /// This class declares the functions message classes of SIMPLE_CONFIG |
|
27 /// requires from the SIMPLE_CONFIG. |
|
28 class EAP_EXPORT abs_simple_config_message_hash_c |
|
29 { |
|
30 private: |
|
31 //-------------------------------------------------- |
|
32 |
|
33 //-------------------------------------------------- |
|
34 protected: |
|
35 //-------------------------------------------------- |
|
36 |
|
37 //-------------------------------------------------- |
|
38 public: |
|
39 //-------------------------------------------------- |
|
40 |
|
41 /// Destructor does nothing. |
|
42 virtual ~abs_simple_config_message_hash_c() |
|
43 { |
|
44 } |
|
45 |
|
46 /// Constructor does nothing. |
|
47 abs_simple_config_message_hash_c() |
|
48 { |
|
49 } |
|
50 |
|
51 /** |
|
52 * This function saves MD5 and SHA hashes for certificate verify message to |
|
53 * member attributes m_message_hash_md5_certificate_verify and m_message_hash_sha1_certificate_verify. |
|
54 */ |
|
55 virtual eap_status_e message_hash_save_certificate_verify() = 0; |
|
56 |
|
57 /** |
|
58 * This function saves MD5 and SHA hashes for finished message to |
|
59 * member attributes message_hash_md5_finished and message_hash_sha1_finished. |
|
60 */ |
|
61 virtual eap_status_e message_hash_save_finished( |
|
62 const bool client_originated) = 0; |
|
63 |
|
64 /** |
|
65 * This function creates finished message hash. |
|
66 * @param signed_message_hash is pointer to buffer of the message hash. |
|
67 */ |
|
68 virtual eap_status_e message_hash_create_finished( |
|
69 const bool client_originated_message, |
|
70 eap_variable_data_c * const signed_message_hash) = 0; |
|
71 |
|
72 //-------------------------------------------------- |
|
73 }; // class abs_simple_config_message_hash_c |
|
74 |
|
75 #endif //#if !defined(_ABS_SIMPLE_CONFIG_MESSAGE_HASH_H_) |
|
76 |
|
77 //-------------------------------------------------- |
|
78 |
|
79 |
|
80 |
|
81 // End. |