add haskell version of ssleay_test