NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/38396: sshd does not work
The following reply was made to PR bin/38396; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: Christos Zoulas <christos%zoulas.com@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: bin/38396: sshd does not work
Date: Thu, 17 Apr 2008 01:10:25 +0200
On Tue, Apr 15, 2008 at 07:32:39PM -0400, Christos Zoulas wrote:
> If that is the case, the man page should be fixed and also the code in:
>
> /usr/src/crypto/dist/ipsec-tools/src/racoon/privsep.c
>
> should be adjusted.
Well, I'm not sure about what is the case, and I find the man page vague
and no relevant standards seem to apply (or I haven't found a good enough
description anywhere).
Racoon seems to use the same length for both (though assiging a different
value first, to make the conditional code in CMSG_FIRSTHDR do the right
thing):
msg.msg_controllen = CMSG_SPACE(sizeof(fd));
[..]
cmsg->cmsg_len = CMSG_LEN(sizeof(fd));
[..]
msg.msg_controllen = cmsg->cmsg_len;
Copying this for sshd would work too.
Martin
Home |
Main Index |
Thread Index |
Old Index