eapol/eapol_framework/eapol_symbian/am/include/EapTlsPeapNotifierStructs.h
branchRCL_3
changeset 18 bad0cc58d154
parent 2 1c7bc153c08e
child 19 c74b3d9f6b9e
equal deleted inserted replaced
17:30e048a7b597 18:bad0cc58d154
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 6.1.2 %
    19 * %version: %
    20 */
    20 */
    21 
    21 
    22 #ifndef _CERTIFICATESELECTIONINFO_H_
    22 #ifndef _CERTIFICATESELECTIONINFO_H_
    23 #define _CERTIFICATESELECTIONINFO_H_
    23 #define _CERTIFICATESELECTIONINFO_H_
    24 
    24 
    25 #include "EapTlsPeapUtils.h"
    25 #include "EapTlsPeapUtils.h"
       
    26 #include "EapTraceSymbian.h"
    26 
    27 
    27 const TUint KIdentityFieldLength = 64;
    28 const TUint KIdentityFieldLength = 64;
    28 
    29 
    29 struct TCertificateSelectionInfo
    30 class TCertificateSelectionInfo
    30 {
    31 {
    31 	TInt iCount;
    32 
    32 	TFixedArray<SCertEntry, 32> iCertificates;
    33 public:
       
    34 
       
    35 	TCertificateSelectionInfo()
       
    36 	{
       
    37 		EAP_TRACE_DEBUG_SYMBIAN((_L("TCertificateSelectionInfo::TCertificateSelectionInfo()\n")));
       
    38 		EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: TCertificateSelectionInfo::TCertificateSelectionInfo()\n"));
       
    39 	}
       
    40 
       
    41 	virtual ~TCertificateSelectionInfo()
       
    42 	{
       
    43 		EAP_TRACE_DEBUG_SYMBIAN((_L("TCertificateSelectionInfo::~TCertificateSelectionInfo()\n")));
       
    44 		EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: TCertificateSelectionInfo::~TCertificateSelectionInfo()\n"));
       
    45 
       
    46 		EAP_TRACE_DEBUG_SYMBIAN((_L("TCertificateSelectionInfo::~TCertificateSelectionInfo(): calls iCertificates.ResetAndDestroy()")));
       
    47 		iCertificates.ResetAndDestroy(); // ResetAndDestroy() function must be called because the objects represented by the array need to be deleted before the array object is destroyed.
       
    48 
       
    49 		EAP_TRACE_DEBUG_SYMBIAN((_L("TCertificateSelectionInfo::~TCertificateSelectionInfo(): calls iCertificates.Close()")));
       
    50 		iCertificates.Close(); // The Close() function must be called before RPointerArray object is destroyed.
       
    51 	}
       
    52 
       
    53 	RPointerArray<EapCertificateEntry> iCertificates;
    33 };
    54 };
    34 
    55 
    35 struct TIdentityInfo
    56 class TIdentityInfo
    36 {
    57 {
       
    58 public:
       
    59 
       
    60 	TIdentityInfo()
       
    61 	{
       
    62 		EAP_TRACE_DEBUG_SYMBIAN((_L("TIdentityInfo::TIdentityInfo()\n")));
       
    63 		EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: TIdentityInfo::TIdentityInfo()\n"));
       
    64 	}
       
    65 
       
    66 	virtual ~TIdentityInfo()
       
    67 	{
       
    68 		EAP_TRACE_DEBUG_SYMBIAN((_L("TIdentityInfo::~TIdentityInfo()\n")));
       
    69 		EAP_TRACE_RETURN_STRING_SYMBIAN(_L("returns: TIdentityInfo::~TIdentityInfo()\n"));
       
    70 	}
       
    71 
    37 	TBool iUseManualUsername;
    72 	TBool iUseManualUsername;
    38 	TBuf<KIdentityFieldLength> iUsername;
    73 	TBuf<KIdentityFieldLength> iUsername;
    39 	TBuf<KIdentityFieldLength> iRealm;	
    74 	TBuf<KIdentityFieldLength> iRealm;	
    40 };
    75 };
    41 
    76