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:
Norman Maurer 2017-02-10 16:25:47 +01:00
parent 5728e0eb2c
commit b7acae03f2
16 changed files with 30 additions and 30 deletions

View File

@ -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(

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;
/**

View File

@ -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;

View File

@ -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.

View File

@ -15,7 +15,7 @@
*/
package io.netty.handler.ssl;
import io.netty.tcnative.jni.SessionTicketKey;
import io.netty.internal.tcnative.SessionTicketKey;
/**
* Session Ticket Key

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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 {

View File

@ -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;

View File

@ -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>