![]() |
TrustCore SDK NanoSSH API reference
version 7.0
|
Functions | |
| MOC_EXTERN void * | SSH_sftpGetCookie (void *sftpInternelDescr) |
| Get a connection's cookie (containing custom information). More... | |
| MOC_EXTERN void | SSH_sftpSetCookie (void *sftpInternelDescr, void *sftpCookie) |
| Save a cookie containing custom information about a context connection. More... | |
| MOC_EXTERN void* SSH_sftpGetCookie | ( | void * | sftpInternelDescr | ) |
This function gets a cookie containing custom information about a context connection. Your application should call this function after calls to SSH_sftpSetCookie(), or to make custom SFTP upcalls.
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_SERVER__ __ENABLE_MOCANA_SSH_FTP_SERVER__ | sftpInternelDescr | State information for a specific open file connection (similar to a connection instance). |
OK (0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR macro.ssh_ftp.c
| MOC_EXTERN void SSH_sftpSetCookie | ( | void * | sftpInternelDescr, |
| void * | sftpCookie | ||
| ) |
This function saves a cookie containing custom information about a context connection.
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_SERVER__ __ENABLE_MOCANA_SSH_FTP_SERVER__ | sftpInternelDescr | State information for a desired open file connection (similar to a connection instance). |
| sftpCookie | Cookie data (custom information). |
OK (0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR macro.ssh_ftp.c