eapol/eapol_framework/eapol_symbian/am/type/tls_peap/symbian/EapTlsPeapCertInterface.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: 42 % |
19 * %version: 43 % |
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 |
141 delete iDataIn; |
141 delete iDataIn; |
142 delete iDataOut; |
142 delete iDataOut; |
143 delete iSignature; |
143 delete iSignature; |
144 delete iPtrOut; |
144 delete iPtrOut; |
145 delete iSignaturePtr; |
145 delete iSignaturePtr; |
146 |
146 delete iRSASignature; |
|
147 delete iDSASignature; |
|
148 delete iKeyFilter; |
|
149 |
147 iFs.Close(); |
150 iFs.Close(); |
148 |
151 |
149 EAP_TRACE_DEBUG( |
152 EAP_TRACE_DEBUG( |
150 m_am_tools, |
153 m_am_tools, |
151 TRACE_FLAGS_DEFAULT, |
154 TRACE_FLAGS_DEFAULT, |
2310 CleanupStack::PushL(R); |
2313 CleanupStack::PushL(R); |
2311 |
2314 |
2312 iParent->complete_sign(R, reinterpret_cast<const RInteger&>(iRSASignature->S()), eap_status_ok); |
2315 iParent->complete_sign(R, reinterpret_cast<const RInteger&>(iRSASignature->S()), eap_status_ok); |
2313 |
2316 |
2314 CleanupStack::PopAndDestroy(); |
2317 CleanupStack::PopAndDestroy(); |
|
2318 |
|
2319 delete iRSASignature; |
|
2320 iRSASignature = 0; |
2315 |
2321 |
2316 iRSASigner->Release(); // This seems to be needed. |
2322 iRSASigner->Release(); // This seems to be needed. |
2317 } |
2323 } |
2318 else |
2324 else |
2319 { |
2325 { |
2320 iParent->complete_sign(reinterpret_cast<const RInteger&>(iDSASignature->R()), |
2326 iParent->complete_sign(reinterpret_cast<const RInteger&>(iDSASignature->R()), |
2321 reinterpret_cast<const RInteger&>(iDSASignature->S()), eap_status_ok); |
2327 reinterpret_cast<const RInteger&>(iDSASignature->S()), eap_status_ok); |
|
2328 |
|
2329 delete iDSASignature; |
|
2330 iDSASignature = 0; |
2322 |
2331 |
2323 iDSASigner->Release(); // This seems to be needed. |
2332 iDSASigner->Release(); // This seems to be needed. |
2324 } |
2333 } |
2325 } |
2334 } |
2326 break; |
2335 break; |