Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Dev
Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c)
 

Index | Next | Previous | View Flat


httpd-dev.2012 at velox

Aug 5, 2012, 1:10 AM


Views: 1117
Permalink
Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c)

On 08.07.2012 10:30, Kaspar Brand wrote:
> On 06.07.2012 14:41, ben [at] apache wrote:
>> Author: ben
>> Date: Fri Jul 6 12:41:10 2012
>> New Revision: 1358167
>>
>> URL: http://svn.apache.org/viewvc?rev=1358167&view=rev
>> Log:
>> Work correctly with a development version of OpenSSL. I suspect
>> something similar is needed when there are two OpenSSL installations,
>> one in a default location.

I had another look at this, since it has been proposed for backporting
to 2.4 in the meantime, and still think the following is true:

> If I'm understanding correctly, then this
> patch tries to support building against an OpenSSL source tree (or
> perhaps a build directory where only "make libs" has been executed)?

(should have read "make build_libs" instead)

It's a useful enhancement if mod_ssl can be linked with a specific
OpenSSL version in a non-default location, but the current approach has
at least one problem, AFAICT: it will only work if the directory pointed
to by --with-ssl does not include shared libraries for OpenSSL (by
default, OpenSSL only builds libssl.a and libcrypto.a, so the issue
might not be obvious at first sight).

> I would suggest to use a separate
> configure argument to support this build option, e.g. --with-ssl-srcdir.

I gave it a try, see the attached "work-in-progress" patch. While we're
at it, I think we should also fix a flaw in the handling of the
--with-ssl argument: in
http://svn.apache.org/viewvc?view=revision&revision=730926, acinclude.m4
was modified to always give pkg-config precedence over any argument
specified through --with-ssl. While the rationale for this change
becomes clear from the commit log, I consider it an unfortunate side
effect that pkg-config always trumps any --with-ssl directory argument.

My suggestion would be to handle OpenSSL paths in configure arguments
like this, instead:

1) use --with-ssl-builddir for linking with the static OpenSSL libraries
in that directory (and ignore --with-ssl in this case)

2) use --with-ssl for linking against an installed version of OpenSSL

3) use pkg-config to locate OpenSSL

Does that sound like a reasonable proposal? Comments welcome, and test
feedback would be much appreciated (remember to run "buildconf" after
applying the patch to acinclude.m4, and before calling configure).

Kaspar
Attachments: mod_ssl-configure-options.patch (7.97 KB)

Subject User Time
Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c) httpd-dev.2012 at velox Aug 5, 2012, 1:10 AM
    Re: Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c) httpd-dev.2012 at velox Aug 5, 2012, 2:36 AM
    Re: Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c) fuankg at apache Aug 5, 2012, 5:38 AM
        Re: Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c) httpd-dev.2012 at velox Aug 5, 2012, 10:10 PM
            Re: Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c) wrowe at rowe-clan Aug 6, 2012, 1:08 PM
                Re: Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c) httpd-dev.2012 at velox Aug 7, 2012, 10:39 PM
                    Re: Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c) fuankg at apache Aug 8, 2012, 2:47 AM
                        Re: Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c) ben at links Aug 8, 2012, 4:45 AM
    Re: Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c) rainer.jung at kippdata Aug 6, 2012, 2:36 PM
        Re: Linking mod_ssl with a specific OpenSSL version httpd-dev.2012 at velox Aug 7, 2012, 11:00 PM
            Re: Linking mod_ssl with a specific OpenSSL version jorton at redhat Aug 8, 2012, 9:03 AM
                Re: Linking mod_ssl with a specific OpenSSL version noel.butler at ausics Aug 8, 2012, 4:06 PM
                Re: Linking mod_ssl with a specific OpenSSL version ben at links Aug 8, 2012, 8:56 PM
                Re: Linking mod_ssl with a specific OpenSSL version wrowe at rowe-clan Aug 9, 2012, 4:29 PM
            Re: Linking mod_ssl with a specific OpenSSL version jorton at redhat Aug 9, 2012, 1:42 AM
                Re: Linking mod_ssl with a specific OpenSSL version ben at links Aug 9, 2012, 3:25 AM
            Re: Linking mod_ssl with a specific OpenSSL version wrowe at rowe-clan Aug 9, 2012, 4:31 PM
            Re: Linking mod_ssl with a specific OpenSSL version httpd-dev.2012 at velox Aug 16, 2012, 11:36 AM
                Re: Linking mod_ssl with a specific OpenSSL version jorton at redhat Aug 17, 2012, 1:11 AM
                    Re: Linking mod_ssl with a specific OpenSSL version httpd-dev.2012 at velox Aug 23, 2012, 12:22 AM
                        Re: Linking mod_ssl with a specific OpenSSL version httpd-dev.2012 at velox Sep 15, 2012, 11:00 PM
                            Re: Linking mod_ssl with a specific OpenSSL version httpd-dev.2012 at velox Sep 15, 2012, 11:24 PM
                                Re: Linking mod_ssl with a specific OpenSSL version ben at links Sep 18, 2012, 8:55 AM
                            Re: Linking mod_ssl with a specific OpenSSL version jorton at redhat Sep 18, 2012, 6:05 AM
                                Re: Linking mod_ssl with a specific OpenSSL version httpd-dev.2012 at velox Sep 19, 2012, 7:28 AM
                            Re: Linking mod_ssl with a specific OpenSSL version httpd-dev.2012 at velox Sep 19, 2012, 7:42 AM
                Re: Linking mod_ssl with a specific OpenSSL version ben at links Aug 20, 2012, 5:19 AM
    Re: Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c) ben at links Aug 8, 2012, 4:41 AM
    Re: Linking mod_ssl with a specific OpenSSL version (Re: svn commit: r1358167 - in /httpd/httpd/trunk: acinclude.m4 modules/ssl/ssl_engine_init.c) wrowe at rowe-clan Aug 9, 2012, 4:55 PM
        Re: Linking mod_ssl with a specific OpenSSL version httpd-dev.2012 at velox Aug 12, 2012, 9:23 AM
            Re: Linking mod_ssl with a specific OpenSSL version ben at links Aug 12, 2012, 11:01 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.