code clean up and update SIM -authentication feature
authorKyeongchul Kim <kyeongchul.kim@samsung.com>
Thu, 16 Feb 2012 11:50:00 +0000 (20:50 +0900)
committerKyeongchul Kim <kyeongchul.kim@samsung.com>
Thu, 16 Feb 2012 11:50:00 +0000 (20:50 +0900)
17 files changed:
TC/telephony_TC/sim/unit/uts_tel_req_sim_isim_authentication.c
TC/telephony_TC/sim/unit/uts_tel_req_sim_isim_authentication.h
TC/telephony_TC/sms/unit/sms_util.h
TC/telephony_TC/ss/unit/tet_tapi_util.c
debian/changelog
include/SLP_TelephonyFW_PG.h
include/common/TapiEvent.h
include/common/TelSim.h
include/common/tel_cs_conn.h
include/tapi/ITapiCall.h
include/tapi/ITapiNetwork.h
include/tapi/ITapiPS.h
include/tapi/ITapiSat.h
include/tapi/ITapiSim.h
include/tapi/ITapiSs.h
src/tapi_proxy_sim.c
src/test_apps/tapi_sim_test.c

index fbee581..d12049a 100644 (file)
 
 /**
 * @ingroup  UTS_SIM_SAT
-* @addtogroup UTS_TAPI_SIM_SAP_AUTH tel_req_sim_isim_authentication
+* @addtogroup UTS_TAPI_SIM_SAP_AUTH tel_req_sim_authentication
 *
-* @brief Unit test code for tel_req_sim_isim_authentication()
+* @brief Unit test code for tel_req_sim_authentication()
 * @par Test function Prototype:
-*      TapiResult_t tel_req_sim_isim_authentication(TelSimIsimAuthenticationData_t* AuthReqData, int *pRequestId);
+*      TapiResult_t tel_req_sim_authentication(TelSimAuthenticationData_t* AuthReqData, int *pRequestId);
 * @par Test function description:
 *      This function is a used to do the authentication proceedure of ISIM for IMS application
 * @par Important Notes:
 // This is used for IMS Authentication proceedure.
 typedef struct
 {
-       UINT8 RandomAccessLength;       // ISIM random access length
-       UINT8 AuthDataLength; // ISIM Boot straping transaction ID len
-       UINT8 RandomAccessData[TAPI_SIM_ISIM_AUTH_MAX_REQ_DATA_LEN];    // ISIM random data
-       UINT8 AuthData[TAPI_SIM_ISIM_AUTH_MAX_REQ_DATA_LEN];    // ISIM autherisation data
-}TelSimIsimAuthenticationData_t;
+       UINT8 rand_length;      // ISIM random access length
+       UINT8 autn_length; // ISIM Boot straping transaction ID len
+       UINT8 rand_data[TAPI_SIM_AUTH_MAX_REQ_DATA_LEN];        // random data
+       UINT8 autn_data[TAPI_SIM_AUTH_MAX_REQ_DATA_LEN];        // autherisation data
+}TelSimAuthenticationData_t;
 * @endcode
 * @param [out] pRequestId
 *   - Unique identifier for a particular request.
 *   - request_id value can be any value from 0 to 255 if the API is returned successfully
 *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
 * @par Async Response Message:
-* The event associated is below and the event data is #TelSimIsimAuthenticationResponse_t. \n
-*      - TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF
+* The event associated is below and the event data is #TelSimAuthenticationResponse_t. \n
+*      - TAPI_EVENT_SIM_AUTHENTICATION_CNF
 * @pre
 *      SAP supported sim used to testing
 * @post
@@ -73,7 +73,7 @@ typedef struct
 
 /**
 * @file                uts_tel_req_sim_isim_authentication.c
-* @brief       Test for the tel_req_sim_isim_authentication() API that is used to isim authentication request
+* @brief       Test for the tel_req_sim_authentication() API that is used to isim authentication request
 * @author      
 * @version     Initial Creation V0.1
 * @date                2008.07.30
@@ -96,8 +96,8 @@ static void cleanup();
 void (*tet_startup) () = startup;
 void (*tet_cleanup) () = cleanup;
 struct tet_testlist tet_testlist[] = {
-       {utc_tel_req_sim_isim_authentication_01, 1},
-       {utc_tel_req_sim_isim_authentication_02, 2},
+       {utc_tel_req_sim_authentication_01, 1},
+       {utc_tel_req_sim_authentication_02, 2},
        {NULL, 0}
 };
 
@@ -155,9 +155,9 @@ static int  sim_app_callback  (TelTapiEvent_t *sim_event)
     switch(sim_event->EventType)
       {
 
-       case TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF:
+       case TAPI_EVENT_SIM_AUTHENTICATION_CNF:
        {
-            tet_printf("\n[SIM APP]*****************TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF***************************\n");
+            tet_printf("\n[SIM APP]*****************TAPI_EVENT_SIM_AUTHENTICATION_CNF***************************\n");
             gAsyncResult = TRUE;
             bReceived = TRUE;
         }
@@ -167,7 +167,7 @@ static int  sim_app_callback  (TelTapiEvent_t *sim_event)
         {
             bReceived = TRUE;
             gAsyncResult = FALSE;
-            tet_printf(" TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF = %d", TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF);
+            tet_printf(" TAPI_EVENT_SIM_AUTHENTICATION_CNF = %d", TAPI_EVENT_SIM_AUTHENTICATION_CNF);
             tet_printf("[SIM APP]***************** Undhandled event type [%d] *****************\n",sim_event->EventType);
             tet_printf("[SIM APP]Undhandled event state [%d]\n",sim_event->Status);
             break;
@@ -189,10 +189,10 @@ static unsigned int subscription_id = 0;
 
 static void startup()
 {
-    tet_infoline("uts_tel_req_sim_isim_authentication Test Start");
+    tet_infoline("uts_tel_req_sim_authentication Test Start");
        if ( tel_init() == TAPI_API_SUCCESS)
        {
-               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )
+               if (TAPI_API_SUCCESS == tel_register_event(TAPI_EVENT_SIM_AUTHENTICATION_CNF,&subscription_id,(TelAppCallback)sim_app_callback,NULL) )
                        gStartupSuccess = TRUE;
                else
                        tet_infoline("startup fail. tel_register_event() failed");
@@ -206,7 +206,7 @@ static void startup()
 
 static void cleanup()
 {
-    tet_infoline("uts_tel_req_sim_isim_authentication Finished");
+    tet_infoline("uts_tel_req_sim_authentication Finished");
     if (gStartupSuccess == TRUE)
        {
                tel_deregister_event(subscription_id);
@@ -221,27 +221,27 @@ static void cleanup()
 */
 
 /**
-* @brief tel_req_sim_isim_authentication() API : Negative condition(Parameter is Null)
+* @brief tel_req_sim_authentication() API : Negative condition(Parameter is Null)
 * @par ID: UTC_TEL_REQ_SIM_ISIM_AUTHENTICATION_01
 * @param [in] pAuthenticationData
 * @param [out] &pRequestId = NULL
 * @return TAPI_API_INVALID_PTR
 */
-void utc_tel_req_sim_isim_authentication_01()
+void utc_tel_req_sim_authentication_01()
 {
     TET_STAMP_START("NULL Test 1");
-    TelSimIsimAuthenticationData_t pAuthenticationData;
+    TelSimAuthenticationData_t pAuthenticationData;
 
     tet_printf(" Enter  RAND data \n");
-    strcpy((char*)pAuthenticationData.RandomAccessData, "username@operator.com");
-    pAuthenticationData.RandomAccessLength= strlen("username@operator.com");
+    strcpy((char*)pAuthenticationData.rand_data, "username@operator.com");
+    pAuthenticationData.rand_length= strlen("username@operator.com");
 
     tet_printf(" Enter Authentication  data \n");
-    strcpy((char*)pAuthenticationData.AuthData,  "+1-212-555-12345");
-    pAuthenticationData.AuthDataLength = strlen("+1-212-555-12345");
+    strcpy((char*)pAuthenticationData.autn_data,  "+1-212-555-12345");
+    pAuthenticationData.autn_length = strlen("+1-212-555-12345");
 
     /* Calling TAPI API */
-    TapiResult_t err = tel_req_sim_isim_authentication(&pAuthenticationData,NULL);
+    TapiResult_t err = tel_req_sim_authentication(&pAuthenticationData,NULL);
     tet_printf("%s[%d] %s(): error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) );
     if (err == TAPI_API_INVALID_PTR )
         TET_STAMP_PASS();
@@ -252,19 +252,19 @@ void utc_tel_req_sim_isim_authentication_01()
 }
 
 /**
-* @brief tel_req_sim_isim_authentication() API : Negative condition(Parameter is Null)
+* @brief tel_req_sim_authentication() API : Negative condition(Parameter is Null)
 * @par ID: UTC_TEL_REQ_SIM_ISIM_AUTHENTICATION_02
 * @param [in] pAuthenticationData = NULL
 * @param [out] &pRequestId
 * @return TAPI_API_INVALID_PTR
 */
-void utc_tel_req_sim_isim_authentication_02()
+void utc_tel_req_sim_authentication_02()
 {
     TET_STAMP_START("NULL Test 2");
     int pRequestId=0;
 
     /* Calling TAPI API */
-    TapiResult_t err = tel_req_sim_isim_authentication(NULL,&pRequestId);
+    TapiResult_t err = tel_req_sim_authentication(NULL,&pRequestId);
     tet_printf("%s[%d] %s(): error code =%d [%s] ",__FILE__,__LINE__,__FUNCTION__, err, TET_ERROR_TO_STRING(err) );
     if (err == TAPI_API_INVALID_PTR )
         TET_STAMP_PASS();
index 749a7f0..697ca63 100644 (file)
@@ -22,8 +22,8 @@
 #ifndef _uts_tapi_isim_auth_req_H_
 #define _uts_tapi_isim_auth_req_H_
 
-       static void utc_tel_req_sim_isim_authentication_01();
-       static void utc_tel_req_sim_isim_authentication_02();
+       static void utc_tel_req_sim_authentication_01();
+       static void utc_tel_req_sim_authentication_02();
 
 #endif
 
index 8f3dd39..e0940d0 100644 (file)
@@ -39,7 +39,7 @@
 #define SMDATA_SIZE_MAX 160
 
 #define FAIL                   0x00
-#define SUCCESS                        0x01
+#define SUCCESS                0x01
 
 //////////////////////////////////TPDU type////////////////////////////////
 typedef enum {
index 5d973e5..ebb6461 100644 (file)
@@ -213,7 +213,7 @@ TAPI_Event_String g_TAPI_EventString[TAPI_EVENT_MAX] = {
 
        /* Extensions */
        {TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF,"TAPI_EVENT_SIM_PB_CAPABILITY_INFO_CNF "}, /** < 3G SIM PB capability Info */
-       {TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF,"TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF "}, /**< ISIM authentication confirmation*/
+       {TAPI_EVENT_SIM_AUTHENTICATION_CNF,"TAPI_EVENT_SIM_AUTHENTICATION_CNF "}, /**< ISIM authentication confirmation*/
        {TAPI_EVENT_SIM_SAP_CONNECT_NOTI,"TAPI_EVENT_SIM_SAP_CONNECT_NOTI "}, /**<SAP connect notification */
        {TAPI_EVENT_SIM_SAP_CONNECT_CNF,"TAPI_EVENT_SIM_SAP_CONNECT_CNF "}, /**< SAP connect confirmation */
        {TAPI_EVENT_SIM_SAP_CONNECT_STATUS_CNF," TAPI_EVENT_SIM_SAP_CONNECT_STATUS_CNF"}, /**< SAP connection status confirmation*/
index 07a3066..956d667 100644 (file)
@@ -1,3 +1,11 @@
+libslp-tapi (0.5.79) unstable; urgency=low
+
+  * code clean up and update SIM-authentication feature 
+  * Git: pkgs/l/libslp-tapi
+  * Tag: libslp-tapi_0.5.79
+
+ -- Kyeongchul Kim <kyeongchul.kim@samsung.com>  Thu, 16 Feb 2012 20:48:35 +0900
+
 libslp-tapi (0.5.78) unstable; urgency=low
 
   * Removed fast dormancy api
index c2ea8f6..cef60f4 100644 (file)
@@ -7804,7 +7804,7 @@ static void app_callback (TelTapiEvent_t *event)
 <strong>[Note] Telephony Emulator does not support this feature.</strong>
 
 @code
-int tel_req_sim_isim_authentication( TelSimIsimAuthenticationData_t *authentication_data, int *req_id);
+int tel_req_sim_authentication( TelSimAuthenticationData_t *authentication_data, int *req_id);
 @endcode
 
 Application uses this API to send the ISIM authentication request to telephony.
@@ -7819,14 +7819,14 @@ SAMPLE CODE
 void isimauthreq()
 {
        int ret_status;
-       TelSimIsimAuthenticationData_t authenticationData;
-       authenticationData.RandomAccessLength = 100;
-       authenticationData.RandomAccessLength = 100;
-       authenticationData.RandomAccessData = "test data";
-       authenticationData.AuthData = "test data";
+       TelSimAuthenticationData_t authenticationData;
+       authenticationData.rand_length = 100;
+       authenticationData.rand_length = 100;
+       authenticationData.rand_data = "test data";
+       authenticationData.autn_data = "test data";
        int pRequestId = 0;
 
-       ret_status = tel_req_sim_isim_authentication (&authenticationData, &pRequestId);
+       ret_status = tel_req_sim_authentication (&authenticationData, &pRequestId);
        if (ret_status == TAPI_API_SUCCESS)
                printf("successful\n");
        else
@@ -7855,8 +7855,8 @@ static void app_callback (TelTapiEvent_t *event)
 
        switch (EventType)
        {
-               case TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF:
-                       printf("TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF");
+               case TAPI_EVENT_SIM_AUTHENTICATION_CNF:
+                       printf("TAPI_EVENT_SIM_AUTHENTICATION_CNF");
                        break;
                        //...
        }
index cba2372..0213085 100644 (file)
@@ -173,7 +173,7 @@ extern "C" {
 #define TAPI_EVENT_SIM_SET_MAILBOX_CNF                 (TAPI_EVENT_SIM_CONFIRMATION + 13)              /**<    update sim mailbox information*/
 #define TAPI_EVENT_SIM_SET_LANGUAGE_CNF                        (TAPI_EVENT_SIM_CONFIRMATION + 14)              /**<    update sim language information*/
 #define TAPI_EVENT_SIM_RSIM_ACCESS_CNF                 (TAPI_EVENT_SIM_CONFIRMATION + 15)              /**<    rsim operation*/
-#define TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF (TAPI_EVENT_SIM_CONFIRMATION + 16)              /**<    ISIM authentication confirmation*/
+#define TAPI_EVENT_SIM_AUTHENTICATION_CNF      (TAPI_EVENT_SIM_CONFIRMATION + 16)              /**<    ISIM authentication confirmation*/
 #define TAPI_EVENT_SIM_PB_STORAGE_COUNT_CNF            (TAPI_EVENT_SIM_CONFIRMATION + 17)              /**<    Phonebook storage count*/
 #define TAPI_EVENT_SIM_PB_ENTRY_INFO_CNF               (TAPI_EVENT_SIM_CONFIRMATION + 18)              /**<    Phonebook entry information*/
 #define TAPI_EVENT_SIM_PB_ACCESS_READ_CNF              (TAPI_EVENT_SIM_CONFIRMATION + 19)              /**<    Phonebook access read*/
index 809e53b..4a2004e 100644 (file)
@@ -105,11 +105,11 @@ extern "C"
 /** CSP profile entry count max length */
 #define TAPI_SIM_CPHS_CUSTOMER_SERVICE_PROFILE_ENTRY_COUNT_MAX 11
 
-/** ISIM authentication code max length */
-#define TAPI_SIM_ISIM_AUTH_MAX_REQ_DATA_LEN 256
+/** Authentication code max length */
+#define TAPI_SIM_AUTH_MAX_REQ_DATA_LEN 256
 
-/** ISIM authentication response data max length */
-#define TAPI_SIM_ISIM_AUTH_MAX_RESP_DATA_LEN 128
+/** Authentication response data max length */
+#define TAPI_SIM_AUTH_MAX_RESP_DATA_LEN 128
 
 /** SAP Answer to Reset data max length */
 #define TAPI_SIM_SAP_ATR_DATA  256
@@ -829,17 +829,30 @@ typedef enum
 }TelSimSapProtocol_t;
 
 /**
- * @enum TelSimIsimAuthenticationResult_t
- * This is used for IMS Authentication Procedure.
+ * @enum TelSimAuthenticationType_t
+ * This is used for Authentication Procedure by using SIM.
  */
-typedef enum
-{
-       TAPI_SIM_ISIM_NO_ERROR,                                                                 /**< ISIM no error */
-       TAPI_SIM_ISIM_AUTH_CAN_NOT_PERFORM_AUTHENTICATION,      /**< status - can't perform authentication */
-       TAPI_SIM_ISIM_AUTH_SKIP_AUTHENTICATION_RESPONSE,                /**< status - skip authentication response */
-       TAPI_SIM_ISIM_AUTH_SQN_FAILURE                                                  /**< status - authentication SQN failure */
-}TelSimIsimAuthenticationResult_t;
+typedef enum {
+       TAPI_SIM_AUTH_TYPE_IMS = 0x00, /**< IMS Authentication */
+       TAPI_SIM_AUTH_TYPE_GSM, /**< GSM Authentication */
+       TAPI_SIM_AUTH_TYPE_3G, /**< 3G Authentication */
+       TAPI_SIM_AUTH_TYPE_MAX /**< TBD */
+} TelSimAuthenticationType_t;
 
+/**
+ * @enum TelSimAuthenticationResult_t
+ * This is used for Authentication Procedure.
+ */
+typedef enum {
+       TAPI_SIM_AUTH_NO_ERROR = 0x00, /**< ISIM no error */
+       TAPI_SIM_AUTH_CANNOT_PERFORM, /**< status - can't perform authentication */
+       TAPI_SIM_AUTH_SKIP_RESPONSE, /**< status - skip authentication response */
+       TAPI_SIM_AUTH_MAK_CODE_FAILURE, /**< status - MAK(Multiple Activation Key) code failure */
+       TAPI_SIM_AUTH_SQN_FAILURE, /**< status - SQN(SeQuenceNumber) failure */
+       TAPI_SIM_AUTH_SYNCH_FAILURE, /**< status - synch failure */
+       TAPI_SIM_AUTH_UNSUPPORTED_CONTEXT, /**< status - unsupported context */
+       TAPI_SIM_AUTH_MAX /**< TBD */
+} TelSimAuthenticationResult_t;
 
 /**
  * @enum TelSimFileType_t
@@ -853,7 +866,6 @@ typedef enum {
        TAPI_SIM_FTYPE_INVALID_TYPE = 0xFF /**< Invalid type */
 } TelSimFileType_t;
 
-
 /**
  * @enum TelSimLockType_t
  *     This structure gives security lock type enum values
@@ -1879,35 +1891,32 @@ typedef struct
        char name[TAPI_SIM_XDN_ALPHA_ID_MAX_LEN+1]; /**< MSISDN name. If not exist, Null string will be returned*/
 }TelSimSubscriberInfo_t;
 
-
 /**
-*GBA - Generic Bootstrapping architecture.
-*This is used for IMS Authentication Procedure.
-*/
-typedef struct
-{
-       unsigned char RandomAccessLength;       /**< AKA Random access length*/
-       unsigned char AuthDataLength; /**< Bootstrapping transaction ID length*/
-       unsigned char RandomAccessData[TAPI_SIM_ISIM_AUTH_MAX_REQ_DATA_LEN];    /**< Random access data */
-       unsigned char   AuthData[TAPI_SIM_ISIM_AUTH_MAX_REQ_DATA_LEN];          /**< Authorized data */
-}TelSimIsimAuthenticationData_t;
+ *This is used for authentication request procedure.
+ */
+typedef struct {
+       TelSimAuthenticationType_t auth_type; /**< Authentication type */
+       int rand_length; /**< the length of RAND */
+       int autn_length; /**< the length of AUTN. it is not used in case of GSM AUTH */
+       char rand_data[TAPI_SIM_AUTH_MAX_REQ_DATA_LEN]; /**< RAND data */
+       char autn_data[TAPI_SIM_AUTH_MAX_REQ_DATA_LEN]; /**< AUTN data. it is not used in case of GSM AUTH */
+} TelSimAuthenticationData_t;
 
 /**
-* This struct gives input data for ISIM authentication
-*/
-typedef struct
-{
-       unsigned char AuthenticationResult;                                     /**< authentication result */
-       unsigned char ResponseLength;                                                   /**< response length*/
-       unsigned char   ResponeData[TAPI_SIM_ISIM_AUTH_MAX_RESP_DATA_LEN];      /**< response data */
-       unsigned char AuthenticationStringLenght;                                                                       /**< authentication string length*/
-       unsigned char AuthenticationString[TAPI_SIM_ISIM_AUTH_MAX_RESP_DATA_LEN];       /**< authentication string */
-       unsigned char CipherKeyLength;                                                                          /**< cipher key length */
-       unsigned char CipherKey[TAPI_SIM_ISIM_AUTH_MAX_RESP_DATA_LEN];          /**< cipher key */
-       unsigned char IntegrityKeyLength;                                                                                               /**< integrity key length */
-       unsigned char IntegrityKey[TAPI_SIM_ISIM_AUTH_MAX_RESP_DATA_LEN];                       /**< integrity key */
-}TelSimIsimAuthenticationResponse_t;
-
+ * This is used for result data of authentication.
+ */
+typedef struct {
+       TelSimAuthenticationType_t auth_type; /**< authentication type */
+       TelSimAuthenticationResult_t auth_result; /**< authentication result */
+       int resp_length; /**< response length. IMS and 3G case, it stands for RES_AUTS. GSM case, it stands for SRES. */
+       char resp_data[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< response data. IMS and 3G case, it stands for RES_AUTS. GSM case, it stands for SRES. */
+       int authentication_key_length; /**< the length of authentication key, Kc*/
+       char authentication_key[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< the data of of authentication key, Kc*/
+       int cipher_length; /**< the length of cipher key length */
+       char cipher_data[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< cipher key */
+       int integrity_length; /**< the length of integrity key length */
+       char integrity_data[TAPI_SIM_AUTH_MAX_RESP_DATA_LEN]; /**< integrity key */
+} TelSimAuthenticationResponse_t;
 
 /**OPLMN list**/
 typedef struct
index cbd74cc..47ad0ab 100644 (file)
@@ -79,7 +79,7 @@ extern "C" {
 #define        TAPI_CS_CALL_GETCONFERENCELIST          (TAPI_CS_TYPE_SYNC+TAPI_EVENT_CALL_CNF_MAX + 5)
 
 // SIM Service
-#define        TAPI_CS_SIM_EVENT_MAX                           TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF
+#define        TAPI_CS_SIM_EVENT_MAX                           TAPI_EVENT_SIM_AUTHENTICATION_CNF
 #define        TAPI_CS_SIM_GETINDICATIONINFO           TAPI_EVENT_SIM_GET_INDICATION_CNF
 #define        TAPI_CS_SIM_SETINDICATIONINFO           TAPI_EVENT_SIM_SET_INDICATION_CNF
 #define        TAPI_CS_SIM_GETMAILBOXINFO                      TAPI_EVENT_SIM_GET_MAILBOX_CNF
@@ -109,7 +109,7 @@ extern "C" {
 #define        TAPI_CS_SIM_SAPSETPROTOCOL                      TAPI_EVENT_SIM_SAP_SET_PROTOCOL_CNF
 #define        TAPI_CS_SIM_SAPSETSIMPOWER                      TAPI_EVENT_SIM_SAP_SET_SIM_POWER_CNF
 #define        TAPI_CS_SIM_SAPCARDREADERSTATUS         TAPI_EVENT_SIM_SAP_CARD_READER_STATUS_CNF
-#define        TAPI_CS_SIM_ISIMAUTHENTICATION          TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF
+#define        TAPI_CS_SIM_AUTHENTICATION              TAPI_EVENT_SIM_AUTHENTICATION_CNF
 #define TAPI_CS_SIM_APDU                                       TAPI_EVENT_SIM_APDU_CNF
 #define TAPI_CS_SIM_ATR                                                TAPI_EVENT_SIM_ATR_CNF
 
index 2b0313c..8903a4d 100644 (file)
@@ -120,7 +120,7 @@ extern "C"
  * Various asynchronous indications are described in the unsolicited notifications section . [Refer, \ref page8]
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -197,7 +197,7 @@ int tel_exe_call_mo(const TelCallSetupParams_t *pParams,  unsigned int  *pCallHa
  * - TAPI_EVENT_CALL_CONNECTED_IND / TAPI_EVENT_CALL_END_IND event will be notified in case of call is accepted/rejected.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -276,7 +276,7 @@ int tel_answer_call(unsigned int CallHandle, TelCallAnswerType_t AnsType, int *
  *    Asynchronous return status is indicated by #TelCallCause_t.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -346,7 +346,7 @@ int tel_release_call(unsigned int  CallHandle, int * pRequestId);
  *    associated event data.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -410,7 +410,7 @@ int tel_release_call_all (int * pRequestId);
  * -
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -473,7 +473,7 @@ int tel_release_call_all_active(int *pRequestId);
  * -
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -542,7 +542,7 @@ int tel_release_call_all_active(int *pRequestId);
  *    indicated by #TelCallCause_t and call handle is sent in the event data.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -612,7 +612,7 @@ int tel_release_call_all_active(int *pRequestId);
  *    by #TelCallCause_t and call handle is sent in the event data.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -686,7 +686,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
  * -
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -761,7 +761,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
  *    is indicated by #TelCallCause_t and call handle is sent in the event data.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -838,7 +838,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
  *    status is indicated by #TelCallCause_t and call handle of the MPTY call is sent in the event data.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -913,7 +913,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
  *    is indicated by #TelCallCause_t and call handle for the split call is sent in the event data.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -986,7 +986,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
  *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -1046,7 +1046,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
  *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -1190,7 +1190,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
  *   - None.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -1261,7 +1261,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
  *  - None.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -1300,7 +1300,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
  int tel_get_call_duration(unsigned int CallHandle, unsigned int * pDurationInSecs) ;
 
  /**
-  * \breif Deflect the incoming call to other subscriber
+  *@brief Deflect the incoming call to other subscriber
   *
   * If informed about an incoming call this call may be redirected to an another destination by
   * entering the destination Number. The cleint spcifies the dstiantion number to which the current
@@ -1332,7 +1332,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
   * -
   *
   * @pre
-  *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+  *  - Initialize Dbus connection with #tel_init
   *  - Register caller's application name with #tel_register_app_name
   *  - Register telephony events to listen
   *  - A event loop is running to listen events
@@ -1412,7 +1412,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
   * -
   *
   * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -1480,7 +1480,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
  *  -None.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -1550,7 +1550,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
  *
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -1625,7 +1625,7 @@ int tel_retrieve_call(unsigned int CallHandle, int * pRequestId);
  *
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
index 3549457..9aadf49 100644 (file)
@@ -92,9 +92,9 @@ extern "C"
  * is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -124,7 +124,6 @@ extern "C"
  *  - None.
  *
  *
- *
  */
 /*================================================================================================*/
 int tel_select_network_automatic(int *pRequestId);
@@ -159,9 +158,9 @@ int tel_select_network_automatic(int *pRequestId);
  * is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -192,7 +191,6 @@ int tel_select_network_automatic(int *pRequestId);
  *  - None.
  *
  *
- *
  */
 /*================================================================================================*/
 int tel_select_network_manual(unsigned int Plmn, int *pRequestId);
@@ -225,9 +223,9 @@ int tel_select_network_manual(unsigned int Plmn, int *pRequestId);
  * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -256,7 +254,6 @@ int tel_select_network_manual(unsigned int Plmn, int *pRequestId);
  *  - None.
  *
  *
- *
  */
 /*================================================================================================*/
 int tel_search_network(int *pRequestId);
@@ -288,9 +285,9 @@ int tel_search_network(int *pRequestId);
  * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -355,9 +352,9 @@ int tel_get_network_selection_mode(int *pRequestId);
  * and asynchronous return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -389,7 +386,6 @@ int tel_get_network_selection_mode(int *pRequestId);
  *  - None.
  *
  *
- *
  */
 /*================================================================================================*/
 int tel_set_network_service_domain(TelNetworkServiceDomain_t ServiceDomain,
@@ -422,9 +418,9 @@ int tel_set_network_service_domain(TelNetworkServiceDomain_t ServiceDomain,
  * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -454,7 +450,6 @@ int tel_set_network_service_domain(TelNetworkServiceDomain_t ServiceDomain,
  *  - None.
  *
  *
- *
  */
 /*================================================================================================*/
 int tel_get_network_service_domain(int *pRequestId);
@@ -489,9 +484,9 @@ int tel_get_network_service_domain(int *pRequestId);
  * return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -553,9 +548,9 @@ int tel_set_network_mode(TelNetworkMode_t NwMode, int *pRequestId);
  * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -621,9 +616,9 @@ int tel_get_network_mode(int *pRequestId);
  * return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -689,9 +684,9 @@ int tel_set_network_band(TelNetworkBandPreferred_t BandMode,
  * Asynchronous return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -757,9 +752,9 @@ int tel_get_network_band(int *pRequestId);
  * return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -832,9 +827,9 @@ int tel_set_network_preferred_plmn(TelNetworkPrefferedPlmnOp_t Operation,
  * and asynchronous  return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -900,9 +895,9 @@ int tel_get_network_preferred_plmn(int *pRequestId);
  * and asynchronous  return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -970,9 +965,9 @@ int tel_set_network_roaming(TelNetworkRoamingMode_t *RoamingMode,
  * and asynchronous  return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -1038,9 +1033,9 @@ int tel_get_network_roaming(int *pRequestId);
  * and asynchronous  return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -1107,9 +1102,9 @@ int tel_set_network_hybrid_in_cdma(TelNetworkCDMAHybridMode_t CDMAHybridMode,
  * and asynchronous  return status is indicated by #TelNetworkOperationCause_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
index e522ff6..1b9f312 100644 (file)
@@ -394,9 +394,9 @@ typedef struct {
  *
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -461,9 +461,9 @@ int tel_activate_gprs_pdp(const tapi_ps_net_start_req_t *pNet_start_req_info, in
  *
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
@@ -530,9 +530,9 @@ int tel_deactivate_gprs_pdp(const tapi_ps_net_stop_req_t *net_stop_req_info, int
  *   In fail, the event associated is TAPI_EVENT_PS_ERROR_IND  and the event data is #tapi_gprs_error_info_t.
  *
  * @pre
- *  - A dbus connection is established with #tel_init or #tel_init_at_ecore_loop
+ *  - A dbus connection is established with #tel_init
  *  - The application name is registered with #tel_register_app_name
- *  - The application is registered events to listen asynchronous response with #tel_register_event or #tel_register_event_at_ecore_loop
+ *  - The application is registered events to listen asynchronous response with #tel_register_event
  *  - A event loop is running to listen events
  *
  * @post
index ed9126a..06f409b 100644 (file)
@@ -80,7 +80,7 @@ extern "C"
 /*================================================================================================*/
 
  /**
- * @breif Sends the user choice of the main menu options to the USIM.
+ * @brief Sends the user choice of the main menu options to the USIM.
  *
  * @par Notes:
  * A set of possible menu options is supplied by the USIM
index 8b3e003..ff2fd1b 100644 (file)
@@ -2711,11 +2711,12 @@ int tel_req_sap_cardreader_status(int *req_id);
 
 
 /**
- * @brief  This API is used to execute ISIM verification.
+ * @brief  This API is used to execute the authentication procedure by using SIM.
  *
  * This function makes Dbus method call to Telephony Sever and returns immediate value.
  * However it just means that the API request has been transfered to the CP successfully.
  * The actual operation result is being delivered in the corresponding event asynchronously.
+ * This function supports IMS, 3G and GSM authentication.
  *
  * @par Sync (or) Async:
  * This is an Asynchronous API.
@@ -2727,7 +2728,7 @@ int tel_req_sap_cardreader_status(int *req_id);
  * - None.
  *
  * @param[in] authentication_data
- * - This input has the authentication code to be validated by ISIM application in the SIM card. #TelSimIsimAuthenticationData_t
+ * - This input has the authentication code to be validated by ISIM,3G and GSM application in the SIM card. #TelSimAuthenticationData_t
  *
  * @param [out] req_id
  *   - Unique identifier for a particular request.
@@ -2735,7 +2736,7 @@ int tel_req_sap_cardreader_status(int *req_id);
  *   - -1 (INVALID_REQUEST_ID) will be sent in case of failure.
  *
  * @par Async Response Message:
- * -The event associated is TAPI_SIM_EVENT_ISIM_AUTHENTICATION_CNF  and the event data is #TelSimIsimAuthenticationResponse_t.
+ * -The event associated is TAPI_SIM_EVENT_AUTHENTICATION_CNF  and the event data is #TelSimAuthenticationResponse_t.
  * Asynchronous return status is indicated by #TelSimAccessResult_t.
  *
  *
@@ -2761,19 +2762,19 @@ int tel_req_sap_cardreader_status(int *req_id);
  * #include <ITapiSim.h>
  * int err_code = 0;
  * int request_id = 0;
- * TelSimIsimAuthenticationData_t pAuthenticationData;
- * strcpy((char*)pAuthenticationData.RandomAccessData, "username@operator.com"); //access data
- * pAuthenticationData.RandomAccessLength= strlen("username@operator.com");
- * strcpy((char*)pAuthenticationData.AuthData,  "+1-212-555-12345"); // auth data
- * pAuthenticationData.AuthDataLength = strlen("+1-212-555-12345");
- * err_code = tel_req_sim_isim_authentication(&pAuthenticationData,&request_id);
+ * TelSimAuthenticationData_t pAuthenticationData;
+ * strcpy((char*)pAuthenticationData.rand_data, "username@operator.com"); //access data
+ * pAuthenticationData.rand_length= strlen("username@operator.com");
+ * strcpy((char*)pAuthenticationData.autn_data,  "+1-212-555-12345"); // auth data
+ * pAuthenticationData.autn_length = strlen("+1-212-555-12345");
+ * err_code = tel_req_sim_authentication(&pAuthenticationData,&request_id);
  * @endcode
  *
  * @remarks None
  *
  */
 /*================================================================================================*/
-int tel_req_sim_isim_authentication( TelSimIsimAuthenticationData_t *authentication_data, int *req_id);
+int tel_req_sim_authentication( TelSimAuthenticationData_t *authentication_data, int *req_id);
 
 
 #ifdef __cplusplus
index 5c06dc2..ddbbe67 100644 (file)
@@ -103,7 +103,7 @@ extern "C"
  *  The event data is #TelSsBarringStatusInfo_t. \n
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -182,7 +182,7 @@ int   tel_set_ss_barring(const  TelSsCallBarringInfo_t *pBarringInfo,int * req_i
  *  The event data is #TelSsBarringStatusInfo_t.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -267,7 +267,7 @@ int   tel_get_ss_barring_status(TelSsCallBarType_t  BarType, TelSsCallType_t  Ca
  *  There is no event data with this event.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -347,7 +347,7 @@ int   tel_change_ss_barring_password(const char*  pOldPassword, const char*  pNe
  *  The event data will be #TelSsForwardingStatusInfo_t.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -443,7 +443,7 @@ int   tel_set_ss_forward( const  TelSsForwardInfo_t *pForwardInfo,int * req_id);
  *  The event data is #TelSsForwardingStatusInfo_t.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -516,7 +516,7 @@ int   tel_get_ss_forward_status(TelSsForwardType_t Type, TelSsForwardWhen_t  Con
  *  The event data is #TelSsWaitingStatusInfo_t.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -591,7 +591,7 @@ int   tel_set_ss_waiting( const TelSsWaitingInfo_t *waitInfo, int * req_id);
  *  The event data is #TelSsWaitingInfo_t.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -681,7 +681,7 @@ int   tel_get_ss_waiting_status( const TelSsCallType_t CallType,int * req_id);
  *  The event data is #TelCliStatusInfo_t.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -764,7 +764,7 @@ int   tel_get_ss_cli_status(TelSsCliType_t CliType,int * req_id);
  *  is #TelSsUssdMsgInfo_t.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -848,7 +848,7 @@ int tel_send_ss_ussd_request(const TelSsUssdMsgInfo_t *ussd_info, int *req_id);
  *  is #TelSsUssdMsgInfo_t.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
@@ -929,7 +929,7 @@ int  tel_send_ss_ussd_response(const TelSsUssdMsgInfo_t *ussd_info, int *req_id)
  *  is #TelSsUssdMsgInfo_t.
  *
  * @pre
- *  - Initialize Dbus connection with #tel_init or #tel_init_at_ecore_loop
+ *  - Initialize Dbus connection with #tel_init
  *  - Register caller's application name with #tel_register_app_name
  *  - Register telephony events to listen
  *  - A event loop is running to listen events
index 8d26dfa..6066dae 100644 (file)
@@ -2088,15 +2088,24 @@ EXPORT_API int tel_req_sap_cardreader_status(int *req_id)
        return api_err;
 }
 
-EXPORT_API int tel_req_sim_isim_authentication(TelSimIsimAuthenticationData_t *authentication_data, int *req_id)
+EXPORT_API int tel_req_sim_authentication(TelSimAuthenticationData_t *authentication_data, int *req_id)
 {
        TS_BOOL ret = FALSE;
        int api_err = TAPI_API_SUCCESS;
 
-       TAPI_RETURN_VAL_IF_FAIL(req_id , TAPI_API_INVALID_PTR);
-       TAPI_RETURN_VAL_IF_FAIL(authentication_data , TAPI_API_INVALID_PTR);
+       TAPI_RETURN_VAL_IF_FAIL(req_id, TAPI_API_INVALID_PTR);
+       TAPI_RETURN_VAL_IF_FAIL(authentication_data, TAPI_API_INVALID_PTR);
 
-       if(_tel_check_tapi_state() != 0 )
+       if (authentication_data->auth_type < TAPI_SIM_AUTH_TYPE_IMS || authentication_data->auth_type > TAPI_SIM_AUTH_TYPE_3G)
+               return TAPI_API_INVALID_INPUT;
+
+       if (authentication_data->rand_length == 0)
+               return TAPI_API_INVALID_INPUT;
+
+       if (authentication_data->auth_type != TAPI_SIM_AUTH_TYPE_GSM    && authentication_data->autn_length == 0)
+               return TAPI_API_INVALID_INPUT;
+
+       if (_tel_check_tapi_state() != 0)
                return TAPI_API_SERVICE_NOT_READY;
 
        if (conn_name.length_of_name == 0) {
@@ -2106,32 +2115,32 @@ EXPORT_API int tel_req_sim_isim_authentication(TelSimIsimAuthenticationData_t *a
 
        TAPI_GLIB_INIT_PARAMS();
 
-       TAPI_LIB_DEBUG(LEVEL_INFO, " AuthDataLength [%d]", authentication_data->AuthDataLength);
-       TAPI_LIB_DEBUG(LEVEL_INFO, " AuthData [%s]", authentication_data->AuthData);
-       TAPI_LIB_DEBUG(LEVEL_INFO, " RandomAccessLength [%d]", authentication_data->RandomAccessLength);
-       TAPI_LIB_DEBUG(LEVEL_INFO, " RandomAccessData [%s]", authentication_data->RandomAccessData);
+       TAPI_LIB_DEBUG(LEVEL_INFO, "rand_length[%d]", authentication_data->rand_length);
+       TAPI_LIB_DEBUG(LEVEL_INFO, "rand_data[0][0x%x]", authentication_data->rand_data[0]);
 
-       if (FALSE == tapi_check_dbus_status()) {
-               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
+       if (authentication_data->autn_length) {
+               TAPI_LIB_DEBUG(LEVEL_INFO, "autn_length [%d]", authentication_data->autn_length);
+               TAPI_LIB_DEBUG(LEVEL_INFO, "autn_data[0][0x%x]", authentication_data->autn_data[0]);
        }
 
+       if (FALSE == tapi_check_dbus_status())
+               return TAPI_API_SYSTEM_RPC_LINK_DOWN;
+
        TAPI_GLIB_ALLOC_PARAMS(in_param1,in_param2,in_param3,in_param4,out_param1,out_param2,out_param3,out_param4);
 
-       g_array_append_vals(in_param1, authentication_data, sizeof(TelSimIsimAuthenticationData_t));
+       g_array_append_vals(in_param1, authentication_data, sizeof(TelSimAuthenticationData_t));
        g_array_append_vals(in_param4, &conn_name, sizeof(tapi_dbus_connection_name));
 
-       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_ISIMAUTHENTICATION, in_param1, in_param2, in_param3,
+       ret = tapi_send_request(TAPI_CS_SERVICE_SIM, TAPI_CS_SIM_AUTHENTICATION, in_param1, in_param2, in_param3,
                        in_param4, &out_param1, &out_param2, &out_param3, &out_param4);
 
        if (TRUE == ret) {
                api_err = g_array_index(out_param1, int ,0);
                *req_id = g_array_index(out_param2, int ,0);
 
-               if (api_err != TAPI_API_SUCCESS) {
+               if (api_err != TAPI_API_SUCCESS)
                        *req_id = INVALID_REQUEST_ID;
-               }
-       }
-       else {
+       } else {
                api_err = TAPI_API_SYSTEM_RPC_LINK_DOWN;
        }
 
index d9cbe79..b84c57a 100644 (file)
@@ -1306,10 +1306,11 @@ void sim_async_event_callback(TelTapiEvent_t* sim_event)
 
                        /** will be tested later **/
 #if 1
-               case TAPI_EVENT_SIM_ISIM_AUTHENTICATION_CNF: {
+               case TAPI_EVENT_SIM_AUTHENTICATION_CNF: {
                        TEST_DEBUG("*****************IMS Authentication **********************");
-                       TelSimIsimAuthenticationResponse_t *auth_resp =
-                                       (TelSimIsimAuthenticationResponse_t*) sim_event->pData;
+#if 0
+                       TelSimAuthenticationResponse_t *auth_resp =
+                                       (TelSimAuthenticationResponse_t*) sim_event->pData;
 
                        TEST_DEBUG("SIM ISIM authentication event status = [0x%x]", sim_event->Status);
 
@@ -1317,6 +1318,7 @@ void sim_async_event_callback(TelTapiEvent_t* sim_event)
                        TEST_DEBUG("  auth string [%s]",auth_resp->AuthenticationString);
                        TEST_DEBUG(" auth cipher key [%s]",auth_resp->CipherKey);
                        TEST_DEBUG(" auth integrity key [%s]",auth_resp->IntegrityKey);
+#endif
                }
                        break;
 
@@ -3597,23 +3599,23 @@ int sim_read_key_input(void) {
 
        else if (memcmp(buf, "isimauth", sizeof("isimauth") - 1) == 0) {
                TEST_DEBUG("ISIM Authentication ");
-
+#if 0
                getchar();
 
-               TelSimIsimAuthenticationData_t auth_req = { 0, };
+               TelSimAuthenticationData_t auth_req = { 0, };
 
-               memset(&auth_req, 0, sizeof(TelSimIsimAuthenticationData_t));
+               memset(&auth_req, 0, sizeof(TelSimAuthenticationData_t));
 
                TEST_DEBUG(" Enter  RAND data ");
-               _fgets((char *) &auth_req.RandomAccessData, 20);
+               _fgets((char *) &auth_req.rand_data, 20);
 
-               auth_req.RandomAccessLength
-                               = strlen((char *) auth_req.RandomAccessData);
+               auth_req.rand_length
+                               = strlen((char *) auth_req.rand_data);
 
                TEST_DEBUG(" Enter Authentication  data ");
-               _fgets((char *) &auth_req.AuthData, 20);
+               _fgets((char *) &auth_req.autn_data, 20);
 
-               auth_req.AuthDataLength = strlen((char *) auth_req.AuthData);
+               auth_req.autn_length = strlen((char *) auth_req.autn_data);
 
                TEST_DEBUG("TelTapiSimIsimAuthenticationRequest is not tested yet!");
                /*
@@ -3628,7 +3630,7 @@ int sim_read_key_input(void) {
                 TEST_DEBUG("TAPI API FAIL: Error Code [0x%x]",err_code);
                 }
                 */
-
+#endif
        }
 
        else if (memcmp(buf, "sapcon", sizeof("sapcon") - 1) == 0) {