Jérémie Courrèges-Anglas
9314ea18fa
use betoh64 if be64toh not found
...
Instead of looking for htobe64 which is be available both when
be64toh or betoh64 are, check for the latter functions. If we
find betoh64 but not be64toh, use compat #defines. If both
can't be found, search for OSX' OSSwapHostToBigInt64.
Also include sys/types.h in byteorder.h (which is necessary for
byteorder functions on OpenBSD), and incidentally fixes build
of networkfragment.cc.
Fixes build on OpenBSD
Signed-off-by: Jérémie Courrèges-Anglas <jca@wxcvbn.org >
2013-04-16 11:11:45 +02:00
Jérémie Courrèges-Anglas
24b078a5a1
workaround for systems not providing pselect
...
using a mix of good old select and sigprocmask
Signed-off-by: Jérémie Courrèges-Anglas <jca@wxcvbn.org >
2013-04-16 11:09:42 +02:00
Andrew Chin
fbd2d184fb
In the OSX build script, link with system libs.
...
Previously, mosh was linking with macports-provided libs in
/opt/local/lib, which was not portable to users without macports
Closes #411
2013-04-15 14:36:01 -04:00
Anders Kaseorg
8ff636d54e
Work around automake bug that dropped portability warnings
...
There’s a bug in automake ≥ 1.10, < 1.12 where ‘-Wall foreign’
incorrectly turns off warnings about portability issues. To get
consistent results across automake versions, use ‘foreign -Wall’
instead.
http://debbugs.gnu.org/cgi-bin/bugreport.cgi?bug=7669
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #413
2013-04-15 13:37:52 -04:00
Anton Lundin
fb39fe2c7e
Simplify pipe management
...
We don't need to write perl like C.
2013-04-09 22:31:12 +02:00
Keith Winstein
1b9915fcaf
Bump version to 1.2.4a
2013-03-27 18:36:03 -04:00
Keith Winstein
9669178f07
Eliminate ocb.cc test program ( closes #408 )
...
This test doesn't return an error on failure and also was triggering a
stack protector warning on some platforms. We have an end-to-end test of
OCB in src/tests/ocb-aes.cc that seems to work well.
2013-03-27 18:36:03 -04:00
Alexander Chernyakhovsky
4a37359704
Update mosh.spec for mosh 1.2.4
2013-03-27 14:49:58 -04:00
Alexander Chernyakhovsky
172b1e5cef
Cast time_elapsed to int before calling human_readable_duration
...
When attempting to build againt EPEL 5, it was noticed that
human_readable_duration expects an int, but time_elapsed is an
integer. Explicitly static_cast<int>( time_elapsed ) to appease older
compilers.
2013-03-27 02:15:25 -04:00
Keith Winstein
688bf21b07
Bump version to 1.2.4
2013-03-27 00:28:47 -04:00
Keith Winstein
61c6ee6011
Send SIGSTOP to whole process group on suspend ( closes #401 )
2013-03-27 00:26:59 -04:00
Keith Winstein
abf240768f
Cleanups when suspending/resuming with smcup/rmcup
2013-03-11 01:25:18 -04:00
Keith Winstein
c6a8427d61
mosh Perl wrapper: Downgrade Perl regex to avoid named capture
...
(Failed on Perl 5.8 with OS X 10.5)
2013-03-10 22:53:05 -04:00
Keith Winstein
4668dc595f
Bump version to 1.2.3.95rc1 (1.2.4 release candidate)
2013-03-10 17:52:56 -04:00
Keith Winstein
1bd38e6dab
Include sys/uio.h to fix OpenBSD build problem ( closes #391 )
2013-03-10 16:58:16 -04:00
Keith Winstein
770e4208cc
DiffServ codepoint and ECN: Roll back to just ECT (no DSCP)
2013-03-10 16:41:44 -04:00
Keith Winstein
093bbc9111
Detached warning: Omit spurious utmp entries (generated by screen)
2013-03-10 16:31:37 -04:00
Anders Kaseorg
a54e6d1661
STMClient::still_connecting: Make const
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #390 .
2013-03-10 15:48:12 -04:00
Anders Kaseorg
64f7f7abb2
Dispatcher::get_{dispatch_chars,OSC_string}: Make const
...
Found by cppcheck
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
8c5ded4e6f
Nonce::{cc_str,data}: Make const
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
866e1399d5
Socket::operator=: Return non-const reference
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
d0eeabb51e
human_readable_duration, Terminal::appendstring: Pass strings by reference
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
e2abb8524f
Catch exceptions by reference
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
5365d6b21d
Connection::recv: Rethrow the original exception instead of a copy
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:08 -04:00
Anders Kaseorg
5f807dfdf8
src/examples/{encrypt,decrypt}: Read input using C++
...
cppcheck found an exception safety bug in the old code, but like,
really now.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:07 -04:00
Anders Kaseorg
ecdd2dd648
PRNG: Read input using C++
...
In the old code, cppcheck complained about throwing in the destructor,
but like, seriously?
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:07 -04:00
Anders Kaseorg
14ef590220
Base64::Base64: Fix exception safety
...
Found by cppcheck.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:48:07 -04:00
Anders Kaseorg
b6f17917f6
Add OCB test program to ‘make check’
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #392 .
2013-03-10 15:47:39 -04:00
Anders Kaseorg
7b9e548aa0
Run tests with ‘make check’
...
The configure --enable-tests flag is no longer needed because
check_PROGRAMS are not built until you run ‘make check’.
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:47:33 -04:00
Anders Kaseorg
a611ef5821
tests: Default to quiet
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:47:33 -04:00
Anders Kaseorg
ea3ad786fa
scripts/mosh: Add --no-init option to disable alternate screen mode
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #384 . Closes #2 .
2013-03-10 15:46:49 -04:00
Anders Kaseorg
ed42d31bda
Put the real terminal in alternate screen mode
...
Closes #2
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:46:39 -04:00
Anders Kaseorg
2ae960f7f0
Display: Abstract terminfo capability functions
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:46:38 -04:00
Anders Kaseorg
03217ddb5a
Move Emulator::{open,close} to Display
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:46:38 -04:00
Anders Kaseorg
ba8d013609
main: Don’t leak desired_ip memory
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
Closes #385 .
2013-03-10 15:45:52 -04:00
Anders Kaseorg
b9763b6997
serve: Remove dead store of bytes_read
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:45:47 -04:00
Anders Kaseorg
d6ff754a9a
get_SSH_IP: Don’t leak SSH_writable memory
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:45:47 -04:00
Anders Kaseorg
2686b7c634
main: Don’t leak shell_name memory
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu >
2013-03-10 15:45:47 -04:00
sqweek
5af90cc1ac
Don't touch window title before an OSC is received.
...
Fixes the "window title being clobbered" issue raised in issue 137.
Signed-off-by: sqweek <sqweek@gmail.com >
Closes #380 . Closes #137 .
2013-03-10 15:44:49 -04:00
sqweek
13a16332d4
Treat empty OSC number as zero.
...
For interoperability's sake, accept OSCs of the form ESC];title^G
treating them the same as ESC]0;title^G
Signed-off-by: sqweek <sqweek@gmail.com >
2013-03-10 15:44:17 -04:00
Keith Winstein
1ee95974bc
Since terminfo is guarded by include guard, need to define HAVE_CURSES_H
2013-01-18 12:11:55 -05:00
Alexander von Gernler
ebe7ae96f6
fix a perror() message in mosh-server
...
A perror() message flanking an open() call was reading "dup2" where it
should read "open".
[closes #377 ]
2013-01-18 11:51:28 -05:00
Keith Winstein
8290e387af
Remove dependency on IO::Pty
2013-01-18 11:50:58 -05:00
Anton Lundin
74e1a30944
Replace IO::Pty with pipe
...
Now when we don't need some fancy pty for sending on window-size and
reading proxy-output from, just use a regular pipe to drop dependency on
IO::Pty
[closes #378 ]
2013-01-18 11:31:28 -05:00
Anton Lundin
e0dfe363a0
Have ssh close stdin and forceallocate pty
...
Somehow we still need to have a real pty on stdin to ssh so
window-size-thingie works.
2013-01-18 11:31:19 -05:00
Anton Lundin
077b664f13
Close some leftover fd's
2013-01-18 11:31:19 -05:00
Anton Lundin
dd5a69bc70
Conditional curses detection
...
Make the whole extra curses/ncurses/ncursesw only check if we didn't
find tinfo the "old" way.
2013-01-17 16:44:06 +01:00
Anton Lundin
eeb8ae99d7
Reintroduce pkg-config based searching for ncurses
...
Fixes issue rased in #358
2013-01-17 16:44:06 +01:00
Anton Lundin
4b1da58ae0
Convert all tabs to 4 whitespaces
...
Tabs where erronusly introduced in 993abf57
2013-01-17 16:44:06 +01:00
Anton Lundin
2ef025c09a
Dup to pty to prevent ssh from reading our stdin
...
Dup the pty to STDIN to prevent hour the exec'ed ssh from consuming our
early input.
Due to the fact that mosh-server copies the pty settings from the pty it
as when starting, we can't set that one to a raw.
This are probably a combination of effects cased by fcc629ac and
18dc967c .
This probably fixes #366
[Closes #369 ]
2013-01-16 02:16:13 -05:00