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: christos%zoulas.com@localhost (Christos Zoulas)
To: Martin Husemann <martin%duskware.de@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: bin/38396: sshd does not work
Date: Wed, 16 Apr 2008 20:51:00 -0400

 On Apr 17,  1:10am, martin%duskware.de@localhost (Martin Husemann) wrote:
 -- Subject: Re: bin/38396: sshd does not work
 
 | 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.
 
 Let's do that then so that the code is consistent.
 
 christos
 


Home | Main Index | Thread Index | Old Index