]> git.cworth.org Git - fips/commit
dlwrap: Add new dlwrap_dlopen_libfips function
authorCarl Worth <cworth@cworth.org>
Mon, 5 Aug 2013 17:23:10 +0000 (10:23 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 5 Aug 2013 17:23:10 +0000 (10:23 -0700)
commite678528e0593be3ffb9b42dd5d523cc0bdee1484
treef479a363538b95ecc3842389ec545b498d65f041
parent152b67da7b844d043f392002f2d3fc454d537b43
dlwrap: Add new dlwrap_dlopen_libfips function

Previously, two different pieces of fips code (both for dlopen and for
glXGetProcAddress) both needed to dlopen the fips library
itself. However, the two pieces were implemented differently, (one
passed a symbol to dladdr to find a filename to dlopen, the other just
passed NULL to dlsym and hopef for the best).

Make things consistent by having a single, shared implementation in
the new function dlwrap_dlopen_libfips, (and implement it with the
more reliable approach of calling dladdr and then the real dlopen).
dlwrap.c
dlwrap.h
glxwrap.c