Displaying 4 results from an estimated 4 matches for "ssh2_fxp_version".
2024 Nov 07
1
ssh compat information
...n a path to use
> xxhash instead. Maintaining backward compatibility means I need to know
> something about the remote.
In the case of sftp at least, that sounds like a function of the
sftp-server not sshd, in which case could you advertise the capability
as an sftp extension? (look for the SSH2_FXP_VERSION handling)
--
Darren Tucker (dtucker at dtucker.net)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860 37F4 9357 ECEF 11EA A6FA
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
2024 Nov 07
1
ssh compat information
On 11/6/24 8:07 PM, Damien Miller wrote:
> On Wed, 6 Nov 2024, Chris Rapier wrote:
>
>> I think I know the answer to this (which would be that you can't) but is there
>> any not entirely insane way to get the ssh->compat information back to either
>> scp or sftp?
>
> There's no way at present.
That's what I thought.
>> I'm doing some
2001 Jun 20
1
SFTP Logging Redux.
...flags = 'e';
+}
+
Attrib *
get_attrib(void)
{
@@ -370,6 +398,7 @@
version = buffer_get_int(&iqueue);
TRACE("client version %d", version);
+ log("(%d/%d/%s) Client version %d", ppid, cuid, CUNAME, version);
buffer_init(&msg);
buffer_put_char(&msg, SSH2_FXP_VERSION);
buffer_put_int(&msg, SSH2_FILEXFER_VERSION);
@@ -382,7 +411,7 @@
{
u_int32_t id, pflags;
Attrib *a;
- char *name;
+ char *name, sflags[7] = "------";
int handle, fd, flags, mode, status = SSH2_FX_FAILURE;
id = get_int();
@@ -390,8 +419,10 @@
pflags = get_int(); /* po...
2002 Mar 15
4
PATCH: sftp-server logging.
...****
*** 370,375 ****
--- 423,431 ----
version = buffer_get_int(&iqueue);
TRACE("client version %d", version);
+ #ifdef SFTP_LOGGING
+ log("(%d/%d/%s) Client version %d.", ppid, cuid, CUNAME, version);
+ #endif
buffer_init(&msg);
buffer_put_char(&msg, SSH2_FXP_VERSION);
buffer_put_int(&msg, SSH2_FILEXFER_VERSION);
***************
*** 383,388 ****
--- 439,447 ----
u_int32_t id, pflags;
Attrib *a;
char *name;
+ #ifdef SFTP_LOGGING
+ char sflags[7] = "------";
+ #endif
int handle, fd, flags, mode, status = SSH2_FX_FAILURE;
id = g...