diff options
author | pkanwar <pkanwar@google.com> | 2017-03-17 12:49:34 -0700 |
---|---|---|
committer | Pankaj Kanwar <pkanwar@google.com> | 2017-04-27 16:10:58 +0000 |
commit | c61837ecc3551dc84f7649e0a4030365d273a7af (patch) | |
tree | 3d2faaa53f1552c85573fad710198d5c9f3fca4f /include | |
parent | 27d62c6e870bd31ba71227198ff43c234cd0913d (diff) | |
download | android_hardware_ril-c61837ecc3551dc84f7649e0a4030365d273a7af.tar.gz android_hardware_ril-c61837ecc3551dc84f7649e0a4030365d273a7af.tar.bz2 android_hardware_ril-c61837ecc3551dc84f7649e0a4030365d273a7af.zip |
Radio Interface changes to allow the modem to query the framework
for the key.
This CL adds the 1.1 version of the HAL interface. It also introduces
support for 2 new messags:
1. setCarrierInfoForImsiEncryption
2. carrierInfoForImsiEncryption
BUG: 35606429
Test: manual
Change-Id: Iad02a20081e8bd1b8daaac396d20d888f8567252
Merged-In: I1d953914c23f8a1d94cc85e023ead3fd3c036ec5
Diffstat (limited to 'include')
-rw-r--r-- | include/telephony/ril.h | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h index 5bf5e17..2012403 100644 --- a/include/telephony/ril.h +++ b/include/telephony/ril.h @@ -75,7 +75,9 @@ extern "C" { * RIL_VERSION = 15 : New commands added: * RIL_REQUEST_SEND_DEVICE_STATE, * RIL_REQUEST_SET_UNSOLICITED_RESPONSE_FILTER, - * RIL_REQUEST_SET_SIM_CARD_POWER + * RIL_REQUEST_SET_SIM_CARD_POWER, + * RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION, + * RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION * The new parameters for RIL_REQUEST_SETUP_DATA_CALL, * Updated data structures: RIL_DataProfileInfo_v15, RIL_InitialAttachApn_v15 * New data structure RIL_DataRegistrationStateResponse, @@ -731,6 +733,16 @@ typedef struct { */ } RIL_CarrierRestrictions; +typedef struct { + const uint8_t * carrierKey; /* Public Key from the Carrier used to encrypt the + * IMSI/IMPI. + */ + const char * KeyIdentifier; /* The keyIdentifier Attribute value pair that helps + * a server locate the private key to decrypt the + * permanent identity. + */ +} RIL_CarrierInfoForImsiEncryption; + /* See RIL_REQUEST_LAST_CALL_FAIL_CAUSE */ typedef enum { CALL_FAIL_UNOBTAINABLE_NUMBER = 1, @@ -5329,6 +5341,28 @@ typedef struct { * INVALID_ARGUMENTS */ #define RIL_REQUEST_SET_SIM_CARD_POWER 140 + +/** + * RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION + * + * Provide Carrier specific information to the modem that will be used to + * encrypt the IMSI and IMPI. Sent by the framework during boot, carrier + * switch and everytime we receive a new certificate. + * + * "data" is the RIL_CarrierInfoForImsiEncryption * structure. + * + * "response" is NULL + * + * Valid errors: + * RIL_E_SUCCESS + * RIL_E_RADIO_NOT_AVAILABLE + * SIM_ABSENT + * RIL_E_REQUEST_NOT_SUPPORTED + * INVALID_ARGUMENTS + * MODEM_INTERNAL_FAILURE + */ +#define RIL_REQUEST_SET_CARRIER_INFO_IMSI_ENCRYPTION 141 + /***********************************************************************/ /** @@ -5960,6 +5994,17 @@ typedef struct { */ #define RIL_UNSOL_PCO_DATA 1046 +/** + * RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION + * + * Called when the modem needs Carrier specific information that will + * be used to encrypt IMSI and IMPI. + * + * "data" is NULL + * + */ +#define RIL_UNSOL_CARRIER_INFO_IMSI_ENCRYPTION 1047 + /***********************************************************************/ |