Update tcnative package names
Motivation: tcnative was moved into an internal package. Modifications: Update package for tcnative imports. Result: Use correct package names for tcnative.
This commit is contained in:
parent
5728e0eb2c
commit
b7acae03f2
@ -24,10 +24,10 @@ import io.netty.util.internal.NativeLibraryLoader;
|
||||
import io.netty.util.internal.SystemPropertyUtil;
|
||||
import io.netty.util.internal.logging.InternalLogger;
|
||||
import io.netty.util.internal.logging.InternalLoggerFactory;
|
||||
import io.netty.tcnative.jni.Buffer;
|
||||
import io.netty.tcnative.jni.Library;
|
||||
import io.netty.tcnative.jni.SSL;
|
||||
import io.netty.tcnative.jni.SSLContext;
|
||||
import io.netty.internal.tcnative.Buffer;
|
||||
import io.netty.internal.tcnative.Library;
|
||||
import io.netty.internal.tcnative.SSL;
|
||||
import io.netty.internal.tcnative.SSLContext;
|
||||
|
||||
import java.security.AccessController;
|
||||
import java.security.PrivilegedAction;
|
||||
@ -68,7 +68,7 @@ public final class OpenSsl {
|
||||
|
||||
// Test if netty-tcnative is in the classpath first.
|
||||
try {
|
||||
Class.forName("io.netty.tcnative.jni.SSL", false, OpenSsl.class.getClassLoader());
|
||||
Class.forName("io.netty.internal.tcnative.SSL", false, OpenSsl.class.getClassLoader());
|
||||
} catch (ClassNotFoundException t) {
|
||||
cause = t;
|
||||
logger.debug(
|
||||
|
@ -15,7 +15,7 @@
|
||||
*/
|
||||
package io.netty.handler.ssl;
|
||||
|
||||
import io.netty.tcnative.jni.CertificateVerifier;
|
||||
import io.netty.internal.tcnative.CertificateVerifier;
|
||||
|
||||
import java.security.cert.CertificateException;
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
*/
|
||||
package io.netty.handler.ssl;
|
||||
|
||||
import io.netty.tcnative.jni.SSL;
|
||||
import io.netty.internal.tcnative.SSL;
|
||||
|
||||
import java.io.File;
|
||||
import java.security.PrivateKey;
|
||||
|
@ -16,8 +16,8 @@
|
||||
package io.netty.handler.ssl;
|
||||
|
||||
import io.netty.buffer.ByteBufAllocator;
|
||||
import io.netty.tcnative.jni.CertificateRequestedCallback;
|
||||
import io.netty.tcnative.jni.SSL;
|
||||
import io.netty.internal.tcnative.CertificateRequestedCallback;
|
||||
import io.netty.internal.tcnative.SSL;
|
||||
|
||||
import javax.net.ssl.SSLException;
|
||||
import javax.net.ssl.X509KeyManager;
|
||||
|
@ -16,7 +16,7 @@
|
||||
package io.netty.handler.ssl;
|
||||
|
||||
import io.netty.handler.ssl.ReferenceCountedOpenSslServerContext.ServerContext;
|
||||
import io.netty.tcnative.jni.SSL;
|
||||
import io.netty.internal.tcnative.SSL;
|
||||
|
||||
import java.io.File;
|
||||
import java.security.PrivateKey;
|
||||
|
@ -15,8 +15,8 @@
|
||||
*/
|
||||
package io.netty.handler.ssl;
|
||||
|
||||
import io.netty.tcnative.jni.SSL;
|
||||
import io.netty.tcnative.jni.SSLContext;
|
||||
import io.netty.internal.tcnative.SSL;
|
||||
import io.netty.internal.tcnative.SSLContext;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -16,9 +16,9 @@
|
||||
package io.netty.handler.ssl;
|
||||
|
||||
import io.netty.util.internal.ObjectUtil;
|
||||
import io.netty.tcnative.jni.SSL;
|
||||
import io.netty.tcnative.jni.SSLContext;
|
||||
import io.netty.tcnative.jni.SessionTicketKey;
|
||||
import io.netty.internal.tcnative.SSL;
|
||||
import io.netty.internal.tcnative.SSLContext;
|
||||
import io.netty.internal.tcnative.SessionTicketKey;
|
||||
|
||||
import javax.net.ssl.SSLSession;
|
||||
import javax.net.ssl.SSLSessionContext;
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
package io.netty.handler.ssl;
|
||||
|
||||
import io.netty.tcnative.jni.SSLContext;
|
||||
import io.netty.internal.tcnative.SSLContext;
|
||||
|
||||
/**
|
||||
* Stats exposed by an OpenSSL session context.
|
||||
|
@ -15,7 +15,7 @@
|
||||
*/
|
||||
package io.netty.handler.ssl;
|
||||
|
||||
import io.netty.tcnative.jni.SessionTicketKey;
|
||||
import io.netty.internal.tcnative.SessionTicketKey;
|
||||
|
||||
/**
|
||||
* Session Ticket Key
|
||||
|
@ -17,9 +17,9 @@ package io.netty.handler.ssl;
|
||||
|
||||
import io.netty.util.internal.logging.InternalLogger;
|
||||
import io.netty.util.internal.logging.InternalLoggerFactory;
|
||||
import io.netty.tcnative.jni.CertificateRequestedCallback;
|
||||
import io.netty.tcnative.jni.SSL;
|
||||
import io.netty.tcnative.jni.SSLContext;
|
||||
import io.netty.internal.tcnative.CertificateRequestedCallback;
|
||||
import io.netty.internal.tcnative.SSL;
|
||||
import io.netty.internal.tcnative.SSLContext;
|
||||
|
||||
import java.security.KeyStore;
|
||||
import java.security.PrivateKey;
|
||||
|
@ -17,9 +17,9 @@ package io.netty.handler.ssl;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.buffer.ByteBufAllocator;
|
||||
import io.netty.tcnative.jni.CertificateVerifier;
|
||||
import io.netty.tcnative.jni.SSL;
|
||||
import io.netty.tcnative.jni.SSLContext;
|
||||
import io.netty.internal.tcnative.CertificateVerifier;
|
||||
import io.netty.internal.tcnative.SSL;
|
||||
import io.netty.internal.tcnative.SSLContext;
|
||||
import io.netty.util.AbstractReferenceCounted;
|
||||
import io.netty.util.ReferenceCounted;
|
||||
import io.netty.util.ResourceLeakDetector;
|
||||
|
@ -17,8 +17,8 @@ package io.netty.handler.ssl;
|
||||
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.buffer.ByteBufAllocator;
|
||||
import io.netty.tcnative.jni.Buffer;
|
||||
import io.netty.tcnative.jni.SSL;
|
||||
import io.netty.internal.tcnative.Buffer;
|
||||
import io.netty.internal.tcnative.SSL;
|
||||
import io.netty.util.AbstractReferenceCounted;
|
||||
import io.netty.util.ReferenceCounted;
|
||||
import io.netty.util.ResourceLeakDetector;
|
||||
|
@ -15,8 +15,8 @@
|
||||
*/
|
||||
package io.netty.handler.ssl;
|
||||
|
||||
import io.netty.tcnative.jni.SSL;
|
||||
import io.netty.tcnative.jni.SSLContext;
|
||||
import io.netty.internal.tcnative.SSL;
|
||||
import io.netty.internal.tcnative.SSLContext;
|
||||
|
||||
import java.security.KeyStore;
|
||||
import java.security.PrivateKey;
|
||||
|
@ -19,7 +19,7 @@ import org.junit.BeforeClass;
|
||||
|
||||
import javax.net.ssl.SSLException;
|
||||
|
||||
import static io.netty.tcnative.jni.SSL.SSL_CVERIFY_IGNORED;
|
||||
import static io.netty.internal.tcnative.SSL.SSL_CVERIFY_IGNORED;
|
||||
import static org.junit.Assume.assumeTrue;
|
||||
|
||||
public class JdkOpenSslEngineInteroptTest extends SSLEngineTest {
|
||||
|
@ -33,7 +33,7 @@ import javax.net.ssl.SSLEngine;
|
||||
import javax.net.ssl.SSLEngineResult;
|
||||
import javax.net.ssl.SSLException;
|
||||
|
||||
import static io.netty.tcnative.jni.SSL.SSL_CVERIFY_IGNORED;
|
||||
import static io.netty.internal.tcnative.SSL.SSL_CVERIFY_IGNORED;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertNull;
|
||||
|
2
pom.xml
2
pom.xml
@ -240,7 +240,7 @@
|
||||
<!-- Fedora-"like" systems. This is currently only used for the netty-tcnative dependency -->
|
||||
<os.detection.classifierWithLikes>fedora</os.detection.classifierWithLikes>
|
||||
<tcnative.artifactId>netty-tcnative</tcnative.artifactId>
|
||||
<tcnative.version>2.0.0.Final-SNAPSHOT</tcnative.version>
|
||||
<tcnative.version>2.0.0.Beta3</tcnative.version>
|
||||
<tcnative.classifier>${os.detected.classifier}</tcnative.classifier>
|
||||
<epoll.classifier>${os.detected.name}-${os.detected.arch}</epoll.classifier>
|
||||
<logging.config>${project.basedir}/../common/src/test/resources/logback-test.xml</logging.config>
|
||||
|
Loading…
Reference in New Issue
Block a user