Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions source/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,14 @@ int aws_http_client_connect_internal(
AWS_LOGF_ERROR(AWS_LS_HTTP_CONNECTION, "static: http connection options are null.");
return aws_raise_error(AWS_ERROR_INVALID_ARGUMENT);
}

#if defined(AWS_USE_SECITEM) && defined(AWS_OS_APPLE)
Comment thread
xiazhvera marked this conversation as resolved.
Outdated
if (proxy_request_transform) {
AWS_LOGF_ERROR(AWS_LS_HTTP_PROXY_NEGOTIATION, "HTTP proxy is not supported on Apple Network Framework.");
return aws_raise_error(AWS_ERROR_PLATFORM_NOT_SUPPORTED);
}
#endif

struct aws_http_client_bootstrap *http_bootstrap = NULL;
struct aws_string *host_name = NULL;
int err = 0;
Expand Down
7 changes: 7 additions & 0 deletions source/proxy_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1565,6 +1565,13 @@ int aws_http_options_validate_proxy_configuration(const struct aws_http_client_c
return aws_raise_error(AWS_ERROR_INVALID_ARGUMENT);
}

#if defined(AWS_USE_SECITEM) && defined(AWS_OS_APPLE)
if ((options->proxy_options || options->proxy_ev_settings)) {
AWS_LOGF_ERROR(AWS_LS_HTTP_PROXY_NEGOTIATION, "HTTP proxy is not supported on Apple Network Framework.");
return aws_raise_error(AWS_ERROR_PLATFORM_NOT_SUPPORTED);
}
#endif

enum aws_http_proxy_connection_type proxy_type = options->proxy_options->connection_type;
if (proxy_type == AWS_HPCT_HTTP_FORWARD && options->tls_options != NULL) {
return aws_raise_error(AWS_ERROR_INVALID_STATE);
Expand Down