Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.464 kb
module OpenSSL.ERR
( getError
, peekError
, errorString
)
where
import Foreign
import Foreign.C
foreign import ccall unsafe "ERR_get_error"
getError :: IO CULong
foreign import ccall unsafe "ERR_peek_error"
peekError :: IO CULong
foreign import ccall unsafe "ERR_error_string"
_error_string :: CULong -> CString -> IO CString
errorString :: CULong -> IO String
errorString code
= _error_string code nullPtr >>= peekCString
Jump to Line
Something went wrong with that request. Please try again.