summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2011-08-19 16:22:18 -0700
committerJake Hamby <jhamby@google.com>2011-08-22 19:47:34 -0700
commitfa8d584ca7984bf7d73ff37c7c2bc1e0dfa5fb71 (patch)
treeb791f1b31b111a946a36f1f3384af0a002c92c36
parent2c8c96556ba797789b45ba2465ef892568c7312d (diff)
downloadplatform_hardware_ril-ics-mr0-release.tar.gz
platform_hardware_ril-ics-mr0-release.tar.bz2
platform_hardware_ril-ics-mr0-release.zip
- There is a new RIL request, RIL_REQUEST_ISIM_AUTHENTICATION, which is used to perform IMS AKA authentication using the algorithm on the ISIM application of the UICC. The challenge nonce and response are both encoded as Base64 strings. Change-Id: I072b43d2b66b2013f8e58d3bd8251d75a453f167
-rw-r--r--include/telephony/ril.h16
-rw-r--r--libril/ril.cpp1
-rw-r--r--libril/ril_commands.h3
3 files changed, 19 insertions, 1 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h
index e4dccd19..64667df1 100644
--- a/include/telephony/ril.h
+++ b/include/telephony/ril.h
@@ -3205,6 +3205,22 @@ typedef struct {
*/
#define RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE 104
+/**
+ * RIL_REQUEST_ISIM_AUTHENTICATION
+ *
+ * Request the ISIM application on the UICC to perform AKA
+ * challenge/response algorithm for IMS authentication
+ *
+ * "data" is a const char * containing the challenge string in Base64 format
+ * "response" is a const char * containing the response in Base64 format
+ *
+ * Valid errors:
+ * SUCCESS
+ * RADIO_NOT_AVAILABLE
+ * GENERIC_FAILURE
+ */
+#define RIL_REQUEST_ISIM_AUTHENTICATION 105
+
/***********************************************************************/
diff --git a/libril/ril.cpp b/libril/ril.cpp
index e45827a9..dec55073 100644
--- a/libril/ril.cpp
+++ b/libril/ril.cpp
@@ -3191,6 +3191,7 @@ requestToString(int request) {
case RIL_REQUEST_REPORT_SMS_MEMORY_STATUS: return "REPORT_SMS_MEMORY_STATUS";
case RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING: return "REPORT_STK_SERVICE_IS_RUNNING";
case RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE: return "CDMA_GET_SUBSCRIPTION_SOURCE";
+ case RIL_REQUEST_ISIM_AUTHENTICATION: return "ISIM_AUTHENTICATION";
case RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED: return "UNSOL_RESPONSE_RADIO_STATE_CHANGED";
case RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED: return "UNSOL_RESPONSE_CALL_STATE_CHANGED";
case RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED: return "UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED";
diff --git a/libril/ril_commands.h b/libril/ril_commands.h
index fbd2a69c..f5ef3284 100644
--- a/libril/ril_commands.h
+++ b/libril/ril_commands.h
@@ -118,4 +118,5 @@
{RIL_REQUEST_SET_SMSC_ADDRESS, dispatchString, responseVoid},
{RIL_REQUEST_REPORT_SMS_MEMORY_STATUS, dispatchInts, responseVoid},
{RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING, dispatchVoid, responseVoid},
- {RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE, dispatchVoid, responseInts}
+ {RIL_REQUEST_CDMA_GET_SUBSCRIPTION_SOURCE, dispatchVoid, responseInts},
+ {RIL_REQUEST_ISIM_AUTHENTICATION, dispatchString, responseString}