eapol/eapol_framework/eapol_symbian/am/include/EapTlsPeapNotifierStructs.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: %
    19 * %version: 6.1.2 %
    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"
       
    27 
    26 
    28 const TUint KIdentityFieldLength = 64;
    27 const TUint KIdentityFieldLength = 64;
    29 
    28 
    30 class TCertificateSelectionInfo
    29 struct TCertificateSelectionInfo
    31 {
    30 {
    32 
    31 	TInt iCount;
    33 public:
    32 	TFixedArray<SCertEntry, 32> iCertificates;
    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;
       
    54 };
    33 };
    55 
    34 
    56 class TIdentityInfo
    35 struct TIdentityInfo
    57 {
    36 {
    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 
       
    72 	TBool iUseManualUsername;
    37 	TBool iUseManualUsername;
    73 	TBuf<KIdentityFieldLength> iUsername;
    38 	TBuf<KIdentityFieldLength> iUsername;
    74 	TBuf<KIdentityFieldLength> iRealm;	
    39 	TBuf<KIdentityFieldLength> iRealm;	
    75 };
    40 };
    76 
    41