Network.Protocol.SASL.GSASL
Contents
Description
Full documentation available for these functions at http://www.gnu.org/software/gsasl/.
- data Context
- data Session
- type CallbackComputation = Context -> Session -> Property -> IO ReturnCode
- mkContext :: IO Context
- freeContext :: Context -> IO ()
- withContext :: (Context -> IO a) -> IO a
- clientMechanisms :: Context -> IO [String]
- serverMechanisms :: Context -> IO [String]
- clientSupportP :: Context -> String -> IO Bool
- serverSupportP :: Context -> String -> IO Bool
- clientSuggestMechanism :: Context -> [String] -> IO (Maybe String)
- callback :: Maybe Context -> Session -> Property -> IO ()
- withCallbackSet :: Context -> CallbackComputation -> IO a -> IO a
- propertySet :: Session -> Property -> String -> IO ()
- propertyFast :: Session -> Property -> IO (Maybe String)
- propertyGet :: Session -> Property -> IO (Maybe String)
- clientStart :: Context -> String -> IO Session
- serverStart :: Context -> String -> IO Session
- freeSession :: Session -> IO ()
- withSession :: IO Session -> (Session -> IO a) -> IO a
- step :: Session -> String -> IO (String, ReturnCode)
- step64 :: Session -> String -> IO (String, ReturnCode)
- encode :: Session -> String -> IO String
- decode :: Session -> String -> IO String
- data ReturnCode
- = GSASL_OK
- | GSASL_NEEDS_MORE
- | GSASL_UNKNOWN_MECHANISM
- | GSASL_MECHANISM_CALLED_TOO_MANY_TIMES
- | GSASL_MALLOC_ERROR
- | GSASL_BASE64_ERROR
- | GSASL_CRYPTO_ERROR
- | GSASL_SASLPREP_ERROR
- | GSASL_MECHANISM_PARSE_ERROR
- | GSASL_AUTHENTICATION_ERROR
- | GSASL_INTEGRITY_ERROR
- | GSASL_NO_CLIENT_CODE
- | GSASL_NO_SERVER_CODE
- | GSASL_NO_CALLBACK
- | GSASL_NO_ANONYMOUS_TOKEN
- | GSASL_NO_AUTHID
- | GSASL_NO_AUTHZID
- | GSASL_NO_PASSWORD
- | GSASL_NO_PASSCODE
- | GSASL_NO_PIN
- | GSASL_NO_SERVICE
- | GSASL_NO_HOSTNAME
- | GSASL_GSSAPI_RELEASE_BUFFER_ERROR
- | GSASL_GSSAPI_IMPORT_NAME_ERROR
- | GSASL_GSSAPI_INIT_SEC_CONTEXT_ERROR
- | GSASL_GSSAPI_ACCEPT_SEC_CONTEXT_ERROR
- | GSASL_GSSAPI_UNWRAP_ERROR
- | GSASL_GSSAPI_WRAP_ERROR
- | GSASL_GSSAPI_ACQUIRE_CRED_ERROR
- | GSASL_GSSAPI_DISPLAY_NAME_ERROR
- | GSASL_GSSAPI_UNSUPPORTED_PROTECTION_ERROR
- | GSASL_KERBEROS_V5_INIT_ERROR
- | GSASL_KERBEROS_V5_INTERNAL_ERROR
- | GSASL_SHISHI_ERROR
- | GSASL_SECURID_SERVER_NEED_ADDITIONAL_PASSCODE
- | GSASL_SECURID_SERVER_NEED_NEW_PIN
- data Property
- = GSASL_AUTHID
- | GSASL_AUTHZID
- | GSASL_PASSWORD
- | GSASL_ANONYMOUS_TOKEN
- | GSASL_SERVICE
- | GSASL_HOSTNAME
- | GSASL_GSSAPI_DISPLAY_NAME
- | GSASL_PASSCODE
- | GSASL_SUGGESTED_PIN
- | GSASL_PIN
- | GSASL_REALM
- | GSASL_DIGEST_MD5_HASHED_PASSWORD
- | GSASL_QOPS
- | GSASL_QOP
- | GSASL_SCRAM_ITER
- | GSASL_SCRAM_SALT
- | GSASL_SCRAM_SALTED_PASSWORD
- | GSASL_VALIDATE_SIMPLE
- | GSASL_VALIDATE_EXTERNAL
- | GSASL_VALIDATE_ANONYMOUS
- | GSASL_VALIDATE_GSSAPI
- | GSASL_VALIDATE_SECURID
Data types
type CallbackComputation = Context -> Session -> Property -> IO ReturnCodeSource
Context procedures
freeContext :: Context -> IO ()Source
withContext :: (Context -> IO a) -> IO aSource
clientMechanisms :: Context -> IO [String]Source
serverMechanisms :: Context -> IO [String]Source
Callback management
withCallbackSet :: Context -> CallbackComputation -> IO a -> IO aSource
Property set/get
Session procedures
freeSession :: Session -> IO ()Source
Enumerations
data ReturnCode Source
Constructors
Instances
Constructors