Return errstring on connect failure

This commit is contained in:
Matt Johnston
2021-03-05 21:13:20 +08:00
parent f193e95a3e
commit 3c2f113a78
2 changed files with 4 additions and 5 deletions

View File

@@ -104,7 +104,7 @@ struct ChanType {
void (*cleanup)(const struct Channel*);
};
/* Callback for connect_remote */
/* Callback for connect_remote. errstring may be NULL if result == DROPBEAR_SUCCESS */
void channel_connect_done(int result, int sock, void* user_data, const char* errstring);
void chaninitialise(const struct ChanType *chantypes[]);