add @Deprecated to SSLv3 methods

pull/6/head
Chris Conlon 2015-10-15 13:59:58 -06:00
parent 26b0925408
commit 11cb95d261
4 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,8 @@ import com.wolfssl.WolfSSLException;
import com.wolfssl.WolfSSLIOSendCallback;
import com.wolfssl.WolfSSLIORecvCallback;
/* suppress SSLv3 deprecation warnings, meant for end user not examples */
@SuppressWarnings("deprecation")
public class Client {
public static Charset charset = Charset.forName("UTF-8");

View File

@ -33,6 +33,8 @@ import com.wolfssl.WolfSSLException;
import com.wolfssl.WolfSSLIOSendCallback;
import com.wolfssl.WolfSSLIORecvCallback;
/* suppress SSLv3 deprecation warnings, meant for end user not examples */
@SuppressWarnings("deprecation")
public class Server {
public static Charset charset = Charset.forName("UTF-8");

View File

@ -264,7 +264,9 @@ public class WolfSSL {
* @return A pointer to the created WOLFSSL_METHOD structure if
* successful, null on failure.
* @see WolfSSLContext#newContext(long)
* @deprecated SSL 3.0 is now considered insecure.
*/
@Deprecated
public final static native long SSLv3_ServerMethod();
/**
@ -277,7 +279,9 @@ public class WolfSSL {
* @return A pointer to the created WOLFSSL_METHOD structure if
* successful, null on failure.
* @see WolfSSLContext#newContext(long)
* @deprecated SSL 3.0 is now considered insecure.
*/
@Deprecated
public final static native long SSLv3_ClientMethod();
/**

View File

@ -29,6 +29,8 @@ import static org.junit.Assert.*;
import com.wolfssl.WolfSSL;
/* suppress SSLv3 deprecation warnings, meant for end user not tests */
@SuppressWarnings("deprecation")
public class WolfSSLTest {
@BeforeClass