[RAPPS] RC of final commit
[reactos.git] / reactos / sdk / lib / 3rdparty / atlex / atleap.h
1 /*
2 Copyright 1991-2017 Amebis
3
4 This file is part of atlex.
5
6 atlex is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 atlex is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with atlex. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #pragma once
21
22 #include <eaptypes.h>
23
24
25 namespace ATL
26 {
27 namespace EAP
28 {
29 ///
30 /// \defgroup ATLEAPAPI Extensible Authentication Protocol API
31 /// Integrates ATL classes with Microsoft EAP API
32 ///
33 /// @{
34
35 ///
36 /// EAP_ATTRIBUTE wrapper class
37 ///
38 class CEAPAttribute : public EAP_ATTRIBUTE
39 {
40 public:
41 ///
42 /// Initializes a new EAP attribute set to eatReserved.
43 ///
44 CEAPAttribute()
45 {
46 eaType = eatReserved;
47 dwLength = 0;
48 pValue = NULL;
49 }
50
51 ///
52 /// Destroys the EAP attribute.
53 ///
54 ~CEAPAttribute()
55 {
56 if (pValue)
57 delete pValue;
58 }
59 };
60
61 /// @}
62 }
63 }