This needs to be updated to use libkssl instead of OpenSSL directly.