Assuming you use gcc when you link your library, specify -fvisibility = hidden and in your library source, mark all the functions that you want to see as extern. I think this should work until openssl declares its own extern functions.
I think if openssl declared some extern characters, you can manually force the characters to hide using pragmas.
There are other options. Check out the gcc docs in the fvisibility section for a full explanation of what is available to you.
source share