add @Deprecated to SSLv3 methods
parent
26b0925408
commit
11cb95d261
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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();
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue