]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: civetweb/openssl: automagic: load libssl.so and libcrypto.so by soname.
authorMarcus Watts <mwatts@redhat.com>
Fri, 13 Jan 2017 08:39:57 +0000 (03:39 -0500)
committerMarcus Watts <mwatts@redhat.com>
Fri, 13 Jan 2017 09:33:01 +0000 (04:33 -0500)
commite3f80c9d0ed6762a39fc242561f5ea26f0f26546
tree095776305034833b4233e7229184e9ead6d03d2c
parent045551485415309ba9bad77e1aee28a0008881ca
rgw: civetweb/openssl: automagic: load libssl.so and libcrypto.so by soname.

If building with radosgw, always look for openssl library (even when
building with nss).  Then, use objdump to fetch SONAME from the copies
of libssl and libcrypto that were found.  When building civetweb; pass
the library soname values in as the libraries to load with "dlopen".

The issue reported here against master
http://tracker.ceph.com/issues/16535
reflects stuff that doesn't seem to have made it into jewel
(which had: -lssl -lcrypto hard-wired into it.)
Still, since people were pretty riled about making that change,
this puts things in congruence to the final result in master.
(which is: runtime shared object load of ssl crypto by soname.)

Fixes: http://tracker.ceph.com/issues/11239
Signed-off-by: Marcus Watts <mwatts@redhat.com>
(inspired by commit 7caa0bd002110b62514da83a37a2a3deb841267a)
configure.ac
m4/ax_check_openssl.m4 [new file with mode: 0644]
src/rgw/Makefile.am