Closed Bug 325615 Opened 19 years ago Closed 17 years ago

Make SSLSocket.setSSLDefaultOption public

Categories

(JSS Graveyard :: Library, defect)

4.2.3
x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 208193

People

(Reporter: nkwan, Assigned: rrelyea)

Details

Can we make SSLSocket.setSSLDefaultOption a public function? 
Currently, there is no way enable or disable TLS via 
JSS's SSL interface.
This is a reasonable request. But if we were to make SSLSocket.setDefaultOption public, then 

[1] I am not sure if this needs to be static.
[2] If we use the SSL options listed in SocketBase.java, this needs to be converted from protected to public as well.

Listed below is the build error seen when accessing public setDefaultOption.

./org/mozilla/jss/tests/SSLClientAuth.java:136: org.mozilla.jss.ssl.SocketBase is not public in org.mozilla.jss.ssl; cannot be accessed from outside package
           org.mozilla.jss.ssl.SSLSocket.setSSLDefaultOption(SocketBase.SSL_BYPASS_PKCS11,true);
                                                             ^
Thomas opened this bug to have a way to enable or disable TLS via 
JSS's SSL interface. Bug 208193 implemented this feature. 
I am marking this bug as a duplicate of 208193. 
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.