diff options
| author | 2019-10-10 11:57:06 +0300 | |
|---|---|---|
| committer | 2020-02-20 01:58:42 +0100 | |
| commit | e52ef954be27fb5a4bf6f7e769c33851483d0e80 (patch) | |
| tree | 8b13ae05bb5643bf54106cdab276141210c2b109 /include/libimobiledevice | |
| parent | 56527f070cefbbddf392ba3897e3318fc2f2db9f (diff) | |
| download | libimobiledevice-e52ef954be27fb5a4bf6f7e769c33851483d0e80.tar.gz libimobiledevice-e52ef954be27fb5a4bf6f7e769c33851483d0e80.tar.bz2 | |
introduces optional `idevice_connection_disable_ssl` with ability not to send SSL shutdown message. As in debugserver this message will be considered as GDB server communication and break things
Diffstat (limited to 'include/libimobiledevice')
| -rw-r--r-- | include/libimobiledevice/libimobiledevice.h | 14 | ||||
| -rw-r--r-- | include/libimobiledevice/service.h | 11 |
2 files changed, 25 insertions, 0 deletions
diff --git a/include/libimobiledevice/libimobiledevice.h b/include/libimobiledevice/libimobiledevice.h index 8bf022a..e0aa518 100644 --- a/include/libimobiledevice/libimobiledevice.h +++ b/include/libimobiledevice/libimobiledevice.h | |||
| @@ -311,6 +311,20 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection); | |||
| 311 | idevice_error_t idevice_connection_disable_ssl(idevice_connection_t connection); | 311 | idevice_error_t idevice_connection_disable_ssl(idevice_connection_t connection); |
| 312 | 312 | ||
| 313 | /** | 313 | /** |
| 314 | * Disable bypass SSL for the given connection without sending out terminate messages. | ||
| 315 | * | ||
| 316 | * @param connection The connection to disable SSL for. | ||
| 317 | * @param sslBypass if true ssl connection will not be terminated but just cleaned up, allowing | ||
| 318 | * plain text data going on underlying connection | ||
| 319 | * | ||
| 320 | * @return IDEVICE_E_SUCCESS on success, IDEVICE_E_INVALID_ARG when connection | ||
| 321 | * is NULL. This function also returns IDEVICE_E_SUCCESS when SSL is not | ||
| 322 | * enabled and does no further error checking on cleanup. | ||
| 323 | */ | ||
| 324 | idevice_error_t idevice_connection_disable_bypass_ssl(idevice_connection_t connection, uint8_t sslBypass); | ||
| 325 | |||
| 326 | |||
| 327 | /** | ||
| 314 | * Get the underlying file descriptor for a connection | 328 | * Get the underlying file descriptor for a connection |
| 315 | * | 329 | * |
| 316 | * @param connection The connection to get fd of | 330 | * @param connection The connection to get fd of |
diff --git a/include/libimobiledevice/service.h b/include/libimobiledevice/service.h index 84c5092..13d0e15 100644 --- a/include/libimobiledevice/service.h +++ b/include/libimobiledevice/service.h | |||
| @@ -168,6 +168,17 @@ service_error_t service_enable_ssl(service_client_t client); | |||
| 168 | */ | 168 | */ |
| 169 | service_error_t service_disable_ssl(service_client_t client); | 169 | service_error_t service_disable_ssl(service_client_t client); |
| 170 | 170 | ||
| 171 | /** | ||
| 172 | * Disable SSL for the given service client without sending SSL terminate messages. | ||
| 173 | * | ||
| 174 | * @param client The connected service client for that SSL should be disabled. | ||
| 175 | * | ||
| 176 | * @return SERVICE_E_SUCCESS on success, | ||
| 177 | * SERVICE_E_INVALID_ARG if client or client->connection is | ||
| 178 | * NULL, or SERVICE_E_UNKNOWN_ERROR otherwise. | ||
| 179 | */ | ||
| 180 | service_error_t service_disable_bypass_ssl(service_client_t client, uint8_t sslBypass); | ||
| 181 | |||
| 171 | #ifdef __cplusplus | 182 | #ifdef __cplusplus |
| 172 | } | 183 | } |
| 173 | #endif | 184 | #endif |
