You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by sc...@apache.org on 2013/01/22 19:27:47 UTC

svn commit: r1437081 - /tomcat/native/trunk/native/src/sslcontext.c

Author: schultz
Date: Tue Jan 22 18:27:46 2013
New Revision: 1437081

URL: http://svn.apache.org/viewvc?rev=1437081&view=rev
Log:
Added clearOptions function to support OpenSSL SSL_CTX_clear_options function.

Modified:
    tomcat/native/trunk/native/src/sslcontext.c

Modified: tomcat/native/trunk/native/src/sslcontext.c
URL: http://svn.apache.org/viewvc/tomcat/native/trunk/native/src/sslcontext.c?rev=1437081&r1=1437080&r2=1437081&view=diff
==============================================================================
--- tomcat/native/trunk/native/src/sslcontext.c (original)
+++ tomcat/native/trunk/native/src/sslcontext.c Tue Jan 22 18:27:46 2013
@@ -243,6 +243,16 @@ TCN_IMPLEMENT_CALL(void, SSLContext, set
     SSL_CTX_set_options(c->ctx, opt);
 }
 
+TCN_IMPLEMENT_CALL(void, SSLContext, clearOptions)(TCN_STDARGS, jlong ctx,
+                                                   jint opt)
+{
+    tcn_ssl_ctxt_t *c = J2P(ctx, tcn_ssl_ctxt_t *);
+
+    UNREFERENCED_STDARGS;
+    TCN_ASSERT(ctx != 0);
+    SSL_CTX_clear_options(c->ctx, opt);
+}
+
 TCN_IMPLEMENT_CALL(void, SSLContext, setQuietShutdown)(TCN_STDARGS, jlong ctx,
                                                        jboolean mode)
 {
@@ -637,6 +647,14 @@ TCN_IMPLEMENT_CALL(void, SSLContext, set
     UNREFERENCED(opt);
 }
 
+TCN_IMPLEMENT_CALL(void, SSLContext, clearOptions)(TCN_STDARGS, jlong ctx,
+                                                   jint opt)
+{
+    UNREFERENCED_STDARGS;
+    UNREFERENCED(ctx);
+    UNREFERENCED(opt);
+}
+
 TCN_IMPLEMENT_CALL(void, SSLContext, setQuietShutdown)(TCN_STDARGS, jlong ctx,
                                                        jboolean mode)
 {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org