Bug 56423

Summary: Implement "fipsModeGet" method stub in case TCN is compiled without OpenSSL
Product: Tomcat Native Reporter: Konstantin Kolinko <knst.kolinko>
Component: LibraryAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 1.1.30   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: 2014-04-17_tcn_56423_fipsModeStub.patch

Description Konstantin Kolinko 2014-04-17 12:06:15 UTC
In native/src/ssl.c there is #else part, where each of java methods is implemented as a stub. That is for the case when the library is compiled without OpenSSL.

There is no stub for the new "fipsModeGet" method.
Comment 1 Konstantin Kolinko 2014-04-17 12:10:59 UTC
Created attachment 31537 [details]
2014-04-17_tcn_56423_fipsModeStub.patch

A patch that
a) implements fipsModeGet
b) changes fipsModeSet to throw an exception

(There exist other stub methods that throw exceptions: see TCN_IMPLEMENT_CALL(jint, SSL, initialize))

The patch is untested.
Comment 2 Konstantin Kolinko 2014-07-02 07:40:00 UTC
The patch was applied to native trunk and 1.1.x (r1607264).
It will be in 1.1.31 onwards.