Permalink
Commits on Apr 11, 2012
  1. Bump version number

    keithw committed Apr 11, 2012
  2. Support 16-color set (per Anders Kaseorg).

    Closes #106 github issue.
    Closes #133 github issue.
    Closes #131 github issue.
    keithw committed Apr 11, 2012
  3. Allow lowercase "utf-8" in charset for OS X iTerm.

    Closes #104 github pull request.
    termie committed with keithw Apr 9, 2012
  4. Find ncurses from pkg-config if possible, and prefer separate libtinfo

    Recent ncurses can be configured --with-termlib, which splits out the
    terminfo-level functions from libncurses into a separate libtinfo.
    This allows us to avoid an unnecessary dependency on libncurses.  (We
    already avoided this on distributions that link with -Wl,--as-needed.)
    
    Signed-off-by: Anders Kaseorg <andersk@mit.edu>
    
    Closes #128 github pull request.
    andersk committed with keithw Mar 22, 2012
  5. strtol(3) can optionally set errno to EINVAL if no conversion could be

    performed and FreeBSD (at least) implements thin behaviour.  Add an
    explicit test to detect this situation in Dispatcher::parse_params().
    (This behaviour difference is not relevant to other uses of strtol()).
    
    This corrects the mishandling of (eg) "CSI m" on FreeBSD.
    
    Closes #129 github pull request.
    [keithw -- also fixes same issue with mosh-server on OS X]
    peterjeremy committed with keithw Apr 10, 2012
  6. configure.ac: Fix protoc check

    AC_MSG_ERROR inside the variable assignment doesn't work properly.  We get
    output like
    
        checking for protoc... ./configure: line 4524: is: command not found
        no
    
    and then the build continues (and fails) with PROTOC="".
    
    Closes #132 github pull request.
    kmcallister committed with keithw Apr 11, 2012
  7. Fix bug involving wraparound copy-and-paste to a blank line.

    Identified by Anders Kaseorg.
    
    Test case:
    
    ( reset; seq 100; printf 'Hello, world!'; sleep 1;
    printf '\t\t\t\t\t\t\t\t\t\t   \r\e[K'; sleep 1; printf '\n' )
    > /dev/pts/16 2>&1
    
    (replace /dev/pts/16 with mosh or termemu terminal)
    keithw committed Apr 11, 2012
Commits on Apr 9, 2012
Commits on Apr 8, 2012
Commits on Apr 7, 2012
  1. Test the Mosh crypto layer

    kmcallister committed with keithw Mar 28, 2012
  2. Test the OCB-AES reference implementation

    This tests cryptographic primitives implemented by others.  It uses the same
    interfaces and indeed the same compiled object code as the Mosh client and
    server.  It does not particularly test any code written for the Mosh project.
    kmcallister committed with keithw Mar 23, 2012
  3. Create src/tests

    kmcallister committed with keithw Mar 23, 2012
  4. Make aligned allocation without posix_memalign more robust

    Instead of guessing the right function to use, we malloc() 15 bytes more than
    we need, and compute the aligned offset within.  The AlignedBuffer class takes
    care of passing the original pointer to free().
    kmcallister committed with keithw Mar 25, 2012
  5. Add a class for aligned buffers

    This simplifies the core crypto routines, especially the error handling.  In
    fact there was already one error path where we were failing to call free().
    kmcallister committed with keithw Mar 25, 2012
  6. Added missing flags in src/statesync/Makefile.am

    (closes #93)
    piannucci committed with keithw Apr 6, 2012
Commits on Apr 5, 2012
  1. FreeBSD needs libutil.h for forkpty()

    The header is not available everywhere, so only include it if it
    is present.  (The extra include should be harmless on Linux by
    inspection.)
    kaduk committed with keithw Apr 5, 2012
  2. Allow <sys/endian.h> as well as <endian.h>

    On FreeBSD, the header which defines htobe64() is the sys/ variant,
    unlike Linux.
    kaduk committed with keithw Apr 5, 2012
Commits on Apr 3, 2012
  1. Update THANKS

    keithw committed Apr 3, 2012
  2. Revert "Distribute ChangeLog to become lintian pedantic-clean"

    This reverts commit 78c7c72.
    keithw committed Apr 3, 2012
  3. Bump version to 1.1.3.

    keithw committed Apr 3, 2012
Commits on Apr 2, 2012
  1. Bump version to 1.1.2c

    keithw committed Apr 2, 2012
Commits on Mar 31, 2012
  1. Bump version to 1.1.2b

    keithw committed Mar 31, 2012
  2. Kill the session after encrypting 2^47 blocks

    "Both the privacy and the authenticity properties of OCB degrade as
     per s^2 / 2^128, where s is the total number of blocks that the
     adversary acquires.... In order to ensure that s^2 / 2^128 remains
     small, a given key should be used to encrypt at most 2^48 blocks (2^55
     bits or 4 petabytes)"
    
    -- http://tools.ietf.org/html/draft-krovetz-ocb-03
    
    We deem it unlikely that a legitimate user will send 4 PB through a Mosh
    session.  If it happens, we simply kill the session.  The server and
    client use the same key, so we actually need to die after 2^47 blocks.
    
    Closes #77.
    kmcallister committed Mar 25, 2012
  3. Bump version to 1.1.2a

    keithw committed Mar 31, 2012
  4. Fully initialize the argument to TIOCSWINSZ

    struct winsize contains fields other than ws_col and ws_row.  To avoid passing
    uninitialized data to TIOCSWINSZ, initialize it first using TIOCGWINSZ.
    
    Found by Valgrind.
    
    (closes #85 github issue)
    kmcallister committed with keithw Mar 27, 2012
  5. Print warnings when IUTF8 missing

    keithw committed Mar 31, 2012
  6. Add warning and check for IUTF8

    keithw committed Mar 31, 2012
  7. Insert missing "if-then" instruction in OCB ARM assem so works with T…

    …humb-2.
    
    (closes #86 github issue)
    
    (approved by Ted Krovetz, author of OCB reference implementation)
    keithw committed Mar 31, 2012