How to call a function from .so lib on android?

Created the wiki article how to add a shared library(.so) to android by the example of openssl.
Many thanks to Chris Babcock for the info.