Skip to content

Commit

Permalink
Clean-up
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1672058 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Apr 8, 2015
1 parent 7a7fb86 commit b2a0f81
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions java/org/apache/tomcat/jni/SSLExt.java
Expand Up @@ -21,7 +21,7 @@
*
* The methods are separated to make it easier for java code to
* support existing native library - it can check if this class can
* be loaded in order to use the exensions.
* be loaded in order to use the extensions.
*
* @author Costin Manolache
*/
Expand All @@ -41,7 +41,7 @@ public final class SSLExt {
*
* Not supported in 1.0.0, seems to be in 1.0.1 and after
*/
public static native int setNPN(long tcctx, byte[] proto, int len);
public static native int setNPN(long ctx, byte[] proto, int len);

/**
* Get other side's advertised protocols.
Expand Down Expand Up @@ -121,9 +121,9 @@ public final class SSLExt {
*/
public static native long sslSetMode(long tcsock, long mode);

public static int setNPN(long sslContext, byte[] spdyNPN) {
public static int setNPN(long ctx, byte[] spdyNPN) {
try {
return SSLExt.setNPN(sslContext, spdyNPN, spdyNPN.length);
return SSLExt.setNPN(ctx, spdyNPN, spdyNPN.length);
} catch (Throwable t) {
t.printStackTrace();
return -1;
Expand Down Expand Up @@ -153,7 +153,4 @@ public static boolean checkNPN(long tcsocket, byte[] expected) {
}
return true;
}



}

0 comments on commit b2a0f81

Please sign in to comment.