Commit 4f52943a authored by Daniel Lenski's avatar Daniel Lenski

add Java wrapper function for setPassTOS()

Signed-off-by: default avatarDaniel Lenski <dlenski@gmail.com>
parent c391ff7a
...@@ -128,6 +128,7 @@ public abstract class LibOpenConnect { ...@@ -128,6 +128,7 @@ public abstract class LibOpenConnect {
public synchronized native void setCertExpiryWarning(int seconds); public synchronized native void setCertExpiryWarning(int seconds);
public synchronized native void setDPD(int minSeconds); public synchronized native void setDPD(int minSeconds);
public synchronized native void setTrojanInterval(int seconds); public synchronized native void setTrojanInterval(int seconds);
public synchronized native void setPassTOS(boolean isEnabled);
public synchronized native int setProxyAuth(String methods); public synchronized native int setProxyAuth(String methods);
public synchronized native int setHTTPProxy(String proxy); public synchronized native int setHTTPProxy(String proxy);
public synchronized native void setXMLSHA1(String hash); public synchronized native void setXMLSHA1(String hash);
......
...@@ -1051,6 +1051,16 @@ JNIEXPORT void JNICALL Java_org_infradead_libopenconnect_LibOpenConnect_setTroja ...@@ -1051,6 +1051,16 @@ JNIEXPORT void JNICALL Java_org_infradead_libopenconnect_LibOpenConnect_setTroja
openconnect_set_trojan_interval(ctx->vpninfo, arg); openconnect_set_trojan_interval(ctx->vpninfo, arg);
} }
JNIEXPORT void JNICALL Java_org_infradead_libopenconnect_LibOpenConnect_setPassTOS(
JNIEnv *jenv, jobject jobj, jboolean arg)
{
struct libctx *ctx = getctx(jenv, jobj);
if (!ctx)
return;
openconnect_set_pass_tos(ctx->vpninfo, arg);
}
JNIEXPORT void JNICALL Java_org_infradead_libopenconnect_LibOpenConnect_setPFS( JNIEXPORT void JNICALL Java_org_infradead_libopenconnect_LibOpenConnect_setPFS(
JNIEnv *jenv, jobject jobj, jboolean arg) JNIEnv *jenv, jobject jobj, jboolean arg)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment