/**
* @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
/**
* @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
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}
};
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;
}
{
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;
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");
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);
*/
/**
-* @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();
}
/**
-* @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();
#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
#define SMDATA_SIZE_MAX 160
#define FAIL 0x00
-#define SUCCESS 0x01
+#define SUCCESS 0x01
//////////////////////////////////TPDU type////////////////////////////////
typedef enum {
/* 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*/
+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
<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.
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
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;
//...
}
#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*/
/** 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
}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
TAPI_SIM_FTYPE_INVALID_TYPE = 0xFF /**< Invalid type */
} TelSimFileType_t;
-
/**
* @enum TelSimLockType_t
* This structure gives security lock type enum values
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
#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
#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
* 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
* - 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
* 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
* 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
* -
*
* @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
* -
*
* @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
* 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
* 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
* -
*
* @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
* 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
* 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
* 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
* - -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
* - -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
* - 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
* - 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
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
* -
*
* @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
* -
*
* @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
* -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
*
*
* @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
*
*
* @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
* 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
* - None.
*
*
- *
*/
/*================================================================================================*/
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
* - None.
*
*
- *
*/
/*================================================================================================*/
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
* - None.
*
*
- *
*/
/*================================================================================================*/
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
* 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
* - None.
*
*
- *
*/
/*================================================================================================*/
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
* - None.
*
*
- *
*/
/*================================================================================================*/
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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
*
*
* @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
*
*
* @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
* 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
/*================================================================================================*/
/**
- * @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
/**
- * @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.
* - 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.
* - -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.
*
*
* #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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
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) {
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;
}
/** 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);
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;
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!");
/*
TEST_DEBUG("TAPI API FAIL: Error Code [0x%x]",err_code);
}
*/
-
+#endif
}
else if (memcmp(buf, "sapcon", sizeof("sapcon") - 1) == 0) {