60 class eap_file_config_c; |
60 class eap_file_config_c; |
61 #endif |
61 #endif |
62 |
62 |
63 const TInt KMaxLabelLength = 64; |
63 const TInt KMaxLabelLength = 64; |
64 const TInt KMaxDatabaseTableName = 64; |
64 const TInt KMaxDatabaseTableName = 64; |
|
65 const TInt KOffsetCorrection = 1; |
65 |
66 |
66 #if defined(USE_FAST_EAP_TYPE) |
67 #if defined(USE_FAST_EAP_TYPE) |
67 const char KEapFastPacProvisResultKey[] = "eap_am_type_tls_peap_symbian_c prov. result"; |
68 const char KEapFastPacProvisResultKey[] = "eap_am_type_tls_peap_symbian_c prov. result"; |
68 const TInt KEapFastPacProvisResultType = 1; |
69 const TInt KEapFastPacProvisResultType = 1; |
69 const u32_t KEapFastPacProvisResultDefaultTimeout = 10000; // in milliseconds = 10 seconds |
70 const u32_t KEapFastPacProvisResultDefaultTimeout = 10000; // in milliseconds = 10 seconds |
70 #endif |
71 #endif |
71 |
72 |
72 /// This class is interface to adaptation module of EAP/TLS and PEAP. |
73 /// This class is interface to adaptation module of EAP/TLS and PEAP. |
73 class EAP_EXPORT eap_am_type_tls_peap_symbian_c |
74 class EAP_EXPORT eap_am_type_tls_peap_symbian_c |
74 : public CActive, public eap_am_type_tls_peap_c |
75 : public CActive |
75 ,public abs_eap_base_timer_c |
76 , public eap_am_type_tls_peap_c |
76 , public MNotificationCallback |
77 , public abs_eap_base_timer_c |
77 |
78 , public MNotificationCallback |
78 |
|
79 { |
79 { |
80 |
80 |
81 public: |
81 public: |
82 |
82 |
83 #if defined(USE_FAST_EAP_TYPE) |
83 #if defined(USE_FAST_EAP_TYPE) |
417 const TBool use_manual_realm, |
419 const TBool use_manual_realm, |
418 TDesC& manual_realm); |
420 TDesC& manual_realm); |
419 |
421 |
420 void send_error_notification(const eap_status_e error); |
422 void send_error_notification(const eap_status_e error); |
421 |
423 |
422 eap_status_e show_certificate_selection_dialog(); |
|
423 |
|
424 eap_status_e show_manual_identity_dialog(); |
|
425 |
|
426 void ResetSessionIdL(); |
424 void ResetSessionIdL(); |
427 |
425 |
428 /** |
426 /** |
429 * Returns true if the full authenticated session is valid. |
427 * Returns true if the full authenticated session is valid. |
430 * It finds the difference between current time and the |
428 * It finds the difference between current time and the |
470 |
468 |
471 eap_status_e CompletePasswordQueryL(); |
469 eap_status_e CompletePasswordQueryL(); |
472 |
470 |
473 eap_status_e CompleteFilePasswordQueryL(); |
471 eap_status_e CompleteFilePasswordQueryL(); |
474 |
472 |
475 eap_status_e CompleteNotifierL(); |
|
476 |
|
477 eap_status_e CompleteFilePasswordQuery(); |
473 eap_status_e CompleteFilePasswordQuery(); |
478 |
474 |
479 eap_status_e FinalCompleteReadPACStoreDataL(eap_status_e status); |
475 eap_status_e FinalCompleteReadPACStoreDataL(eap_status_e status); |
480 |
476 |
481 void ConvertUnicodeToAsciiL(const TDesC16& aFromUnicode, TDes8& aToAscii); |
477 void ConvertUnicodeToAsciiL(const TDesC16& aFromUnicode, TDes8& aToAscii); |
569 eap_status_e CreateDeviceSeedAsync(); |
565 eap_status_e CreateDeviceSeedAsync(); |
570 |
566 |
571 void CompleteCreateDeviceSeedL( TInt aStatus ); |
567 void CompleteCreateDeviceSeedL( TInt aStatus ); |
572 #endif |
568 #endif |
573 |
569 |
|
570 eap_status_e select_cipher_suite( |
|
571 const bool select_all_cipher_suites, |
|
572 const tls_cipher_suites_e test_cipher_suite, |
|
573 const TAlgorithmId testcertAlgorithm, |
|
574 const TAlgorithmId certAlgorithm, |
|
575 eap_array_c<u16_t> * cipher_suites); |
|
576 |
574 //-------------------------------------------------- |
577 //-------------------------------------------------- |
575 protected: // methods |
578 protected: // methods |
576 //-------------------------------------------------- |
579 //-------------------------------------------------- |
577 |
580 |
578 |
581 |
822 const RPointerArray<CX509Certificate>& aCertChain, eap_status_e aStatus); |
825 const RPointerArray<CX509Certificate>& aCertChain, eap_status_e aStatus); |
823 |
826 |
824 eap_status_e complete_read_ca_certificate( |
827 eap_status_e complete_read_ca_certificate( |
825 const RPointerArray<CX509Certificate>& aCertChain, eap_status_e aStatus); |
828 const RPointerArray<CX509Certificate>& aCertChain, eap_status_e aStatus); |
826 |
829 |
827 void complete_validate_chain(CPKIXValidationResult& aValidationResult, eap_status_e aStatus); |
830 void complete_validate_chain(const CPKIXValidationResult * const aValidationResult, const eap_status_e aStatus); |
828 |
831 |
829 void complete_get_matching_certificates(RPointerArray<EapCertificateEntry>& aMatchingCerts, eap_status_e aStatus); |
832 void complete_get_matching_certificates(RPointerArray<EapCertificateEntry>& aMatchingCerts, eap_status_e aStatus); |
830 |
833 |
831 void complete_sign(const RInteger& aR, const RInteger& aS, eap_status_e aStatus); |
834 void complete_sign(const RInteger& aR, const RInteger& aS, eap_status_e aStatus); |
832 |
835 |