mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -05:00
Improve sk_peer_info.
Previously, it returned a human-readable string suitable for log files, which tried to say something useful about the remote end of a socket. Now it returns a whole SocketPeerInfo structure, of which that human-friendly log string is just one field, but also some of the same information - remote IP address and port, in particular - is provided in machine-readable form where it's available.
This commit is contained in:
7
ssh.h
7
ssh.h
@ -216,7 +216,8 @@ struct ConnectionLayerVtable {
|
||||
* PortFwdManager */
|
||||
SshChannel *(*lportfwd_open)(
|
||||
ConnectionLayer *cl, const char *hostname, int port,
|
||||
const char *org, Channel *chan);
|
||||
const char *description, const SocketPeerInfo *peerinfo,
|
||||
Channel *chan);
|
||||
|
||||
/* Initiate opening of a 'session'-type channel */
|
||||
SshChannel *(*session_open)(ConnectionLayer *cl, Channel *chan);
|
||||
@ -297,8 +298,8 @@ struct ConnectionLayer {
|
||||
#define ssh_rportfwd_alloc(cl, sh, sp, dh, dp, af, ld, pfr, share) \
|
||||
((cl)->vt->rportfwd_alloc(cl, sh, sp, dh, dp, af, ld, pfr, share))
|
||||
#define ssh_rportfwd_remove(cl, rpf) ((cl)->vt->rportfwd_remove(cl, rpf))
|
||||
#define ssh_lportfwd_open(cl, h, p, org, chan) \
|
||||
((cl)->vt->lportfwd_open(cl, h, p, org, chan))
|
||||
#define ssh_lportfwd_open(cl, h, p, desc, pi, chan) \
|
||||
((cl)->vt->lportfwd_open(cl, h, p, desc, pi, chan))
|
||||
#define ssh_session_open(cl, chan) \
|
||||
((cl)->vt->session_open(cl, chan))
|
||||
#define ssh_add_x11_display(cl, auth, disp) \
|
||||
|
Reference in New Issue
Block a user