Skip to content

Commit dbab6a9

Browse files
committed
add on secitem
1 parent 31e50d5 commit dbab6a9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

source/connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ int aws_http_client_connect_internal(
10591059
}
10601060

10611061
#if defined(AWS_OS_IOS) || defined(AWS_OS_TVOS)
1062-
if (proxy_request_transform) {
1062+
if (aws_is_using_secitem() && proxy_request_transform) {
10631063
AWS_LOGF_ERROR(AWS_LS_HTTP_PROXY_NEGOTIATION, "HTTP proxy is not supported on iOS and tvOS platforms");
10641064
return aws_raise_error(AWS_ERROR_PLATFORM_NOT_SUPPORTED);
10651065
}

source/proxy_connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ int aws_http_options_validate_proxy_configuration(const struct aws_http_client_c
15671567
}
15681568

15691569
#if defined(AWS_OS_IOS) || defined(AWS_OS_TVOS)
1570-
if (options->proxy_options || options->proxy_ev_settings) {
1570+
if (aws_is_using_secitem() && (options->proxy_options || options->proxy_ev_settings)) {
15711571
AWS_LOGF_ERROR(AWS_LS_HTTP_PROXY_NEGOTIATION, "HTTP proxy is not supported on iOS and tvOS platforms");
15721572
return aws_raise_error(AWS_ERROR_PLATFORM_NOT_SUPPORTED);
15731573
}

0 commit comments

Comments
 (0)