search for: canohost

Displaying 20 results from an estimated 110 matches for "canohost".

2002 Aug 12
0
Problem with canohost.c
Hi, I have a small problem while porting OpenSSH v2.1.1p4 (a little older version )to uClinux. I have tryed to contact some other forums, but without any success. So, the problem is with canohost.c, where I get the following mistake: canohost.c: In function `get_remote_hostname': canohost.c:36: storage size of `hints' isn't known canohost.c:49: structure has no member named `ss_family' canohost.c:98: structure has no member named `ss_family' canohost.c:100: warning: imp...
1999 Dec 16
4
ANNOUNCE: openssh-1.2.1pre18
...Keil <jk at tools.de> - Avoid void* pointer arithmatic - Use LDFLAGS correctly - Fix SIGIO error in scp - Simplify status line printing in scp - Added better test for inline functions compiler support from Darren_Hall at progressive.com 19991214 - OpenBSD CVS Changes - [canohost.c] fix get_remote_port() and friends for sshd -i; Holger.Trapp at Informatik.TU-Chemnitz.DE - [mpaux.c] make code simpler. no need for memcpy. niels@ ok - [pty.c] namebuflen not sizeof namebuflen; bnd at ep-ag.com via djm at mindrot.org fix proto; markus - [ssh.1]...
2010 Nov 28
2
[PATCH] Use canonical hostname for DNS SSHFP lookup
...-sshfp/dns.c --- openssh/dns.c 2010-08-31 14:41:14.000000000 +0200 +++ openssh-sshfp/dns.c 2010-11-27 23:36:30.775455403 +0100 @@ -173,7 +173,7 @@ */ int verify_host_key_dns(const char *hostname, struct sockaddr *address, - Key *hostkey, int *flags) + Key *hostkey, int *flags, const char *canohost) { u_int counter; int result; @@ -200,7 +200,7 @@ return -1; } - result = getrrsetbyname(hostname, DNS_RDATACLASS_IN, + result = getrrsetbyname(canohost, DNS_RDATACLASS_IN, DNS_RDATATYPE_SSHFP, 0, &fingerprints); if (result) { verbose("DNS lookup error: %s", dns...
2002 Sep 21
4
OpenSSH -current fails regression on Solaris 8, sshd dumps core
...on a non-socket.) The NULL doesn't seem to bother snprintf on Linux or HP-UX. I don't know if it's valid to pass a NULL as an argument to "%s". The attached patch fixes this problem but introduces more inconsistency into the get_[local|remote|peer]_[ipaddr|name] functions in canohost.c. There's probably a neater way of doing this. The patch has been regression tested on Solaris 8, HP-UX 11 & Redhat 7.3. -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately...
2014 Jul 16
1
ssh - Connection closed by UNKNOWN
...r user's password: $ ssh user at localhost user at localhost's password: Connection closed by UNKNOWN When the packet_read_seqnr() calls get_remote_ipaddr(), a connection's socket is already closed and there's not been any other call of this function yet so canonical_host_ip from canohost.c is still NULL and the function returns "UNKNOWN". I think that it could be workarounded by calling get_remote_ipaddr() right after packet_set_connection(), e.g. using another debug message, see bellow, or there could be set_remote_ipaddr() in canonhost.c for that. --- a/sshconnect.c ++...
2004 Apr 30
1
Code question (canohost.c)
On Fri, 30 Apr 2004, YOSHIFUJI Hideaki / [iso-2022-jp] $B5HF#1QL@(B wrote: > In article <Pine.BSO.4.44.0404292059520.953-100000 at etoh.eviladmin.org> (at Thu, 29 Apr 2004 21:00:26 -0500 (CDT)), Ben Lindstrom <mouring at etoh.eviladmin.org> says: > > > Be that true.. then one should review the usage of it in sshconnect.c > > which is the other place we do it. >
2008 Aug 21
2
IP options
I'm seeing something similar to bug 1179 (https://bugzilla.mindrot.org/show_bug.cgi?id=1179), even with the reordered IP options check. For some reason, getsockopt is returning an IP options of length 2, value 00 00. Would Mark Weindling's original patch (https://bugzilla.mindrot.org/attachment.cgi?id=1105) break anything if I incorporated it? Platform: HP NonStop S7000 series
2002 Aug 02
3
[Bug 377] New: Reduce compiler warnings. Use unsigned args to the ctype.h is*() macros.
...us: NEW Severity: trivial Priority: P2 Component: Miscellaneous AssignedTo: openssh-unix-dev at mindrot.org ReportedBy: mdb at juniper.net On Solaris 8, using gcc 3.1, the following warnings are given during build of OpenSSH from the -cvs sources: canohost.c:93: warning: subscript has type `char' clientloop.c:488: warning: subscript has type `char' clientloop.c:503: warning: subscript has type `char' inet_aton.c:117: warning: subscript has type `char' inet_aton.c:128: warning: subscript has type `char' inet_ato...
2000 Mar 07
2
patch for openssh-1.2.2p1
Hi, openssh-1.2.2p1 seems to have 2 problems on ipv6 (and ipv4 mapped addresses). 1. "BREAKIN ATTEMPT" warnings from ipv4 node 2. X forwarding The following patche fixes them. Thanks. diff -ru openssh-1.2.2p1/canohost.c openssh-1.2.2p1-20000308/canohost.c --- openssh-1.2.2p1/canohost.c Fri Jan 14 13:45:48 2000 +++ openssh-1.2.2p1-20000308/canohost.c Wed Mar 8 00:25:18 2000 @@ -42,6 +42,22 @@ debug("getpeername failed: %.100s", strerror(errno)); fatal_cleanup(); } + +#ifdef IPV4_IN_IPV6 + if ((...
2001 Jan 04
0
patch for the HURD
This is a small/trivial patch to get HURD to _compile_ (I haven't gotten PRNG to work yet) openssh. All it does is define MAXHOSTNAMELEN in defines.h if it isn't already defined (there may need to be a library loaded first, or you may want to incorporate that patch into canohost.c instead of defines.h). Anyway, small patch for canohost.c and defines.h because HURD doesn't use MAXHOSTNAMELEN Jonathan Bartlett -- PGP information is available at http://members.wri.com/johnnyb/about/ -------------- next part -------------- --- canohost.c Fri Oct 27 22:19:58 2000 +++ ca...
2002 May 20
0
Openssh 3.2.2p1 KRB5 addition
...gards Markus -------------- next part -------------- *** auth-krb5.c.orig Mon May 20 11:51:57 2002 --- auth-krb5.c Mon May 20 11:53:34 2002 *************** *** 38,43 **** --- 38,44 ---- #include "servconf.h" #include "uidswap.h" #include "auth.h" + #include "canohost.h" #ifdef KRB5 #include <krb5.h> *************** *** 80,85 **** --- 81,87 ---- krb5_data reply; krb5_ticket *ticket; int fd, ret; + char *localname; ret = 0; server = NULL; *************** *** 108,114 **** if (problem) goto err; ! problem = krb...
2000 Jun 27
1
openssh-2.1.1p1 on Irix6.2 report
...prototype in <openssl/pem.h> ** Bad socket structure types cc -n32 -I/usr/local/include -I/usr/local/ssl/include -DETCDIR=\"/usr/local/etc\" -DSSH_PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh/ssh-askpass\" -DHAVE_CONFIG_H -c canohost.c "canohost.c", line 41: warning(1164): argument of type "socklen_t *" is incompatible with parameter of type "int *" if (getpeername(socket, (struct sockaddr *) & from, &fromlen) < 0) { ^...
2009 Nov 23
0
[PATCH] Bluetooth support.
...n a Bluetooth socket (and advertise the service in SDP) for itself, and extend the ssh client to make the connection directly. For now, I'm testing with http://david.woodhou.se/btserv.c and ssh -o 'ProxyCommand socat stdio SOCKET-CONNECT:31:3:x1ec1e4e21f000100' root at bluetooth Index: canohost.c =================================================================== RCS file: /cvs/openssh/canohost.c,v retrieving revision 1.75 diff -u -p -r1.75 canohost.c --- canohost.c 21 Jun 2009 08:13:58 -0000 1.75 +++ canohost.c 23 Nov 2009 09:50:32 -0000 @@ -20,6 +20,11 @@ #include <netinet/in.h>...
2001 Apr 06
3
SFTP client script broken after OpenSSH 2.5.1p1 to 2.5.2p2-1
Hello friends, I have a script that uses the sftp client to transfer a file to another server using PK authentication. It was working until I upgraded from OpenSSH 2.5.1p1 to 2.5.2p2-1 yesterday (on a RH Linux 6.2 system). The sftp command is: sftp -o "IdentityFile ~/.ssh/id_dsa" \ $PUSERNAME@$PSERVER >$TEMPFILE 2>&1 <<-! cd $PDIR put $DOC_ARCHIVE ls quit !
2001 Oct 13
0
local IP in environment
I'm not sure if this is useful to anyone, but I made a small patch to include the local IP address that the user connected to in the environment (the opposite of SSH_CLIENT). The variable is called SSH_LOCAL. -Eric -------------- next part -------------- *** openssh-2.9.9p2/canohost.c.bak Sun Jun 24 22:01:24 2001 --- openssh-2.9.9p2/canohost.c Fri Oct 12 16:52:09 2001 *************** *** 255,260 **** --- 255,281 ---- return get_socket_address(socket, 0, NI_NAMEREQD); } + const char * + get_local_ipaddr2(void) + { + static char *canonical_host_ip = NULL; + + /* Check...
2006 Mar 13
1
Log message
...working on some project which is sort of log filter. Last few days I noticed that there are some wacky people scanning sshd port all the time from anywhere. Although sshd reports it with syslog error message which is very helpful, I'd like to know the source ip address with following message: canohost.c: around line #100 if (getaddrinfo(name, NULL, &hints, &aitop) != 0) { logit("reverse mapping checking getaddrinfo for %.700s " "from address %.100s failed - POSSIBLE BREAKIN ATTEMPT!", ntop, name); return xstrdup(ntop);...
2006 Sep 21
5
Testing for the 4.4p1 release, round 2
Hi all. As most of you know, we are preparing OpenSSH 4.4p1 for release. We have had one round of testing and I would like to thank all who responded. We believe that most of the problems reported have been resolved. If you are so inclined, we would appreciate a quick retest to ensure that the fixed ones remain fixed and the working ones remain working. Of the problems identitified, I am only
2003 Oct 30
1
Patch to make sshd work on multihomed systems
As far as I know this patch has no security implications -- I don't believe that allowing sshd to use get_local_name() (in canohost.c) on a connected socket to determine it's own fqdn will allow a malicious client (or router or dns server) to make it come to the wrong conclusion. But please let me know if you think I'm wrong. Please also let me know if you're just not interested :-) This patch is against openssh-...
2005 Nov 17
2
AllowUsers not working under certain conditions
Hello, I've trawled archives looking for changes in the "AllowUsers" option, manuals, changes log, reported bugs and to my surprise I can't find anything or anyone that has reported the issues that I am experiencing. I am using the default installation sshd_config file as supplied by Redhat and the only options I have changed are: ListenAddress AllowUsers The first problem
2001 Feb 01
0
warnings on aix325
...n `ssh_get_authentication_socket': authfd.c:84: warning: implicit declaration of function `socket' authfd.c:93: warning: implicit declaration of function `connect' authfile.c: In function `load_private_key': authfile.c:494: warning: unsigned int format, long unsigned int arg (arg 2) canohost.c: In function `get_remote_hostname': canohost.c:39: warning: implicit declaration of function `getpeername' canohost.c:150: warning: implicit declaration of function `getsockopt' canohost.c: In function `get_sock_port': canohost.c:247: warning: implicit declaration of function `get...