Skip to content

Commit 1b50693

Browse files
committed
fail http proxy if use secitem
1 parent dbab6a9 commit 1b50693

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

source/connection.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,12 +1058,10 @@ int aws_http_client_connect_internal(
10581058
return aws_raise_error(AWS_ERROR_INVALID_ARGUMENT);
10591059
}
10601060

1061-
#if defined(AWS_OS_IOS) || defined(AWS_OS_TVOS)
10621061
if (aws_is_using_secitem() && proxy_request_transform) {
10631062
AWS_LOGF_ERROR(AWS_LS_HTTP_PROXY_NEGOTIATION, "HTTP proxy is not supported on iOS and tvOS platforms");
10641063
return aws_raise_error(AWS_ERROR_PLATFORM_NOT_SUPPORTED);
10651064
}
1066-
#endif
10671065

10681066
struct aws_http_client_bootstrap *http_bootstrap = NULL;
10691067
struct aws_string *host_name = NULL;

source/proxy_connection.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,12 +1566,10 @@ int aws_http_options_validate_proxy_configuration(const struct aws_http_client_c
15661566
return aws_raise_error(AWS_ERROR_INVALID_ARGUMENT);
15671567
}
15681568

1569-
#if defined(AWS_OS_IOS) || defined(AWS_OS_TVOS)
15701569
if (aws_is_using_secitem() && (options->proxy_options || options->proxy_ev_settings)) {
15711570
AWS_LOGF_ERROR(AWS_LS_HTTP_PROXY_NEGOTIATION, "HTTP proxy is not supported on iOS and tvOS platforms");
15721571
return aws_raise_error(AWS_ERROR_PLATFORM_NOT_SUPPORTED);
15731572
}
1574-
#endif
15751573

15761574
enum aws_http_proxy_connection_type proxy_type = options->proxy_options->connection_type;
15771575
if (proxy_type == AWS_HPCT_HTTP_FORWARD && options->tls_options != NULL) {

0 commit comments

Comments
 (0)