eapol/eapol_framework/eapol_symbian/am/type/tls_peap/symbian/plugin/src/EapTlsPeapUtils.cpp
equal
deleted
inserted
replaced
14 * Description: EAP and WLAN authentication protocols. |
14 * Description: EAP and WLAN authentication protocols. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 76.1.1.1.5 % |
19 * %version: 76.1.1.1.6 % |
20 */ |
20 */ |
21 |
21 |
22 // This is enumeration of EAPOL source code. |
22 // This is enumeration of EAPOL source code. |
23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
24 #undef EAP_FILE_NUMBER_ENUM |
24 #undef EAP_FILE_NUMBER_ENUM |
1984 TUint aTunnelingVendorType = static_cast<TUint>(aTunnelingType); |
1984 TUint aTunnelingVendorType = static_cast<TUint>(aTunnelingType); |
1985 |
1985 |
1986 #endif //#ifdef USE_EAP_EXPANDED_TYPES |
1986 #endif //#ifdef USE_EAP_EXPANDED_TYPES |
1987 |
1987 |
1988 EAP_TRACE_DEBUG_SYMBIAN((_L("EapTlsPeapUtils::ReadCertRowsToArrayL -Start")) ); |
1988 EAP_TRACE_DEBUG_SYMBIAN((_L("EapTlsPeapUtils::ReadCertRowsToArrayL -Start")) ); |
|
1989 |
|
1990 CleanupClosePushL( aArray ); |
1989 |
1991 |
1990 HBufC* buf = HBufC::NewLC(512); |
1992 HBufC* buf = HBufC::NewLC(512); |
1991 TPtr sqlStatement = buf->Des(); |
1993 TPtr sqlStatement = buf->Des(); |
1992 |
1994 |
1993 _LIT(KSQLQueryRow, "SELECT * FROM %S WHERE %S=%d AND %S=%d AND %S=%d"); |
1995 _LIT(KSQLQueryRow, "SELECT * FROM %S WHERE %S=%d AND %S=%d AND %S=%d"); |
2033 } |
2035 } |
2034 |
2036 |
2035 // Close database |
2037 // Close database |
2036 CleanupStack::PopAndDestroy(colSet); |
2038 CleanupStack::PopAndDestroy(colSet); |
2037 CleanupStack::PopAndDestroy(2); // view, buf |
2039 CleanupStack::PopAndDestroy(2); // view, buf |
|
2040 CleanupStack::Pop( &aArray ); |
2038 } |
2041 } |
2039 |
2042 |
2040 void EapTlsPeapUtils::ReadUintRowsToArrayL( |
2043 void EapTlsPeapUtils::ReadUintRowsToArrayL( |
2041 RDbNamedDatabase& aDatabase, |
2044 RDbNamedDatabase& aDatabase, |
2042 eap_am_tools_symbian_c * const /*aTools*/, |
2045 eap_am_tools_symbian_c * const /*aTools*/, |
2056 TUint aTunnelingVendorType = static_cast<TUint>(aTunnelingType); |
2059 TUint aTunnelingVendorType = static_cast<TUint>(aTunnelingType); |
2057 |
2060 |
2058 #endif //#ifdef USE_EAP_EXPANDED_TYPES |
2061 #endif //#ifdef USE_EAP_EXPANDED_TYPES |
2059 |
2062 |
2060 EAP_TRACE_DEBUG_SYMBIAN((_L("EapTlsPeapUtils::ReadUintRowsToArrayL -Start")) ); |
2063 EAP_TRACE_DEBUG_SYMBIAN((_L("EapTlsPeapUtils::ReadUintRowsToArrayL -Start")) ); |
|
2064 |
|
2065 CleanupClosePushL( aArray ); |
2061 |
2066 |
2062 HBufC* buf = HBufC::NewLC(512); |
2067 HBufC* buf = HBufC::NewLC(512); |
2063 TPtr sqlStatement = buf->Des(); |
2068 TPtr sqlStatement = buf->Des(); |
2064 |
2069 |
2065 _LIT(KSQLQueryRow, "SELECT %S FROM %S WHERE %S=%d AND %S=%d AND %S=%d"); |
2070 _LIT(KSQLQueryRow, "SELECT %S FROM %S WHERE %S=%d AND %S=%d AND %S=%d"); |
2093 } while (view.NextL() != EFalse); |
2098 } while (view.NextL() != EFalse); |
2094 } |
2099 } |
2095 |
2100 |
2096 // Close database |
2101 // Close database |
2097 CleanupStack::PopAndDestroy(2); // view, buf |
2102 CleanupStack::PopAndDestroy(2); // view, buf |
|
2103 CleanupStack::Pop( &aArray ); |
2098 } |
2104 } |
2099 |
2105 |
2100 // Don't use this finction as Label is not saved for certificates saved by SetConfigurationL(). |
2106 // Don't use this finction as Label is not saved for certificates saved by SetConfigurationL(). |
2101 // Provisioning (OMA DM etc) use SetConfigurationL() to save certificate details. |
2107 // Provisioning (OMA DM etc) use SetConfigurationL() to save certificate details. |
2102 |
2108 |