session.h
int SOMSessionOpenMech(struct SOMSession *session, const char *host, int port, const char *username, const char *passwd, void *ophandle, int async, const char *mech)
Open a session to the MTA, specifying the SASL mechanism to be used.
int SOMSessionAuthenticated(struct SOMSession *session)
Return TRUE if session authenticated, FALSE otherwise.
int SOMSessionSetSessionCallback(struct SOMSession *session, SOMSessionCallback *callback, SOMSessionCallback **oldvalue)
Set the session callback function for this session.
void SOMSessionCallback(struct SOMSession *session, void *ophandle, void *clientdata, int status, const char *opdata, size_t opdatalen)
Prototype for callback for session operation completion.
Definition: session.h:56
Switch Operation Management Interface.
int SOMSessionOpenMechRole(struct SOMSession *session, const char *host, int port, const char *username, const char *passwd, const char *role, void *ophandle, int async, const char *mech)
Open a session to the MTA, specifying the SASL mechanism to be used.
int SOMSessionOpen(struct SOMSession *session, const char *host, int port, const char *username, const char *password, void *ophandle, int async)
Open a session to the MTA.
int SOMSessionClear(struct SOMSession *session, int facilities)
Clear all subordinate objects.
Opaque session data.
int SOMSessionOpenRole(struct SOMSession *session, const char *host, int port, const char *username, const char *password, const char *role, void *ophandle, int async)
Open a session to the MTA.
int SOMEventPoll(int dispatch, int timeout)
Poll for asynchronous events on all open sessions.
int SOMEventPollSingle(struct SOMSession *sp, int dispatch, int timeout)
Poll for asynchronous events on a single Session.
void SOMSetService(struct SOMSession *session, const char *service)
Set the service name - defaults to "som".
int SOMSessionSetTLS(struct SOMSession *session, const char *identity, const char *passphrase)
Enable use of TLS/SSL for the session.