xref: /aosp_15_r20/external/aws-crt-java/src/native/http_proxy_options.h (revision 3c7ae9de214676c52d19f01067dc1a404272dc11)
1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #ifndef AWS_JNI_CRT_HTTP_PROXY_OPTIONS_H
7 #define AWS_JNI_CRT_HTTP_PROXY_OPTIONS_H
8 
9 #include <jni.h>
10 
11 struct aws_http_proxy_options;
12 struct aws_tls_connection_options;
13 struct aws_tls_ctx;
14 
15 void aws_http_proxy_options_jni_init(
16     JNIEnv *env,
17     struct aws_http_proxy_options *options,
18     jint proxy_connection_type,
19     struct aws_tls_connection_options *tls_options,
20     jbyteArray proxy_host,
21     jint proxy_port,
22     jbyteArray proxy_authorization_username,
23     jbyteArray proxy_authorization_password,
24     int proxy_authorization_type,
25     struct aws_tls_ctx *proxy_tls_ctx);
26 
27 void aws_http_proxy_options_jni_clean_up(
28     JNIEnv *env,
29     struct aws_http_proxy_options *options,
30     jbyteArray proxy_host,
31     jbyteArray proxy_authorization_username,
32     jbyteArray proxy_authorization_password);
33 
34 #endif /* AWS_JNI_CRT_HTTP_PROXY_OPTIONS_H */
35