Jay Weisskopf [Thu, 2 Feb 2012 05:57:33 +0000 (23:57 -0600)]
Assume a private key is RSA if the header does not specify a type.
Auto-generated certificates are RSA, but the header does not indicate
this (e.g. BEGIN PRIVATE KEY). Since the type is not specified,
the certificate was not being parsed correctly, and attempts to
connect over HTTPS failed and caused web browser errors.
Fixes "ERR_SSL_VERSION_OR_CIPHER_MISMATCH" in Chrome.
Fixes "ssl_error_no_cypher_overlap" in Firefox.
Jay Weisskopf [Sun, 1 Jan 2012 06:41:46 +0000 (00:41 -0600)]
Changed the cursor color to match the default text color.
Red, the previous cursor color, should not be used during nominal
operation because most people subconsciously associate it with
"bad" or "problem". Additionally, this change makes it more
consistent with other widely-used terminal applications.
Markus Gutschke [Sat, 2 Oct 2010 23:40:24 +0000 (23:40 +0000)]
The server could sometimes end up listening for events even though it
was not really interested in them. This could result in inefficient I/O
behavior and most noticably it broke the ability to interrupt long running
output with CTRL-C.
Markus Gutschke [Sat, 2 Oct 2010 01:54:29 +0000 (01:54 +0000)]
Some more research on the web suggests the Apple ships their operating
systems with an implementation of poll() that isn't completely POSIX
compliant. We now fall back on calling select() instead. That's not our
first choice, but it is presumably the best that MacOS X can do.
Markus Gutschke [Wed, 29 Sep 2010 16:46:51 +0000 (16:46 +0000)]
Another iteration of changes intended to deal with MacOS X specific build
problems. Unfortunately, without access to a MacOS X build environment, some
of these have to be mere educated guesses...
Markus Gutschke [Thu, 2 Sep 2010 23:42:42 +0000 (23:42 +0000)]
Force a zero pixel margin on the <body> tag. Without this change, ShellInABox
would occasionally think that it was in "embedded" mode, whenever the user
applied a scaling factor (e.g. by pressing CTRL-Minus).
Markus Gutschke [Fri, 27 Aug 2010 22:22:15 +0000 (22:22 +0000)]
Fixed a check() failure that was caused by incorrect handling of partially
processed buffers. I believe, this could only be triggered by clients that
enabled HTTP pipelining. That might explain why we haven't seen bug reports
any earlier.
Markus Gutschke [Fri, 9 Jul 2010 15:48:51 +0000 (15:48 +0000)]
Removed non-standard fields from updwtmpx() wrapper function. This should improve
compatibility with systems that implement updwtmp() but not updwtmpx().
Also, changed Makefile rules in an attempt to improve compatibility with BSD
make utilities.
Markus Gutschke [Wed, 31 Mar 2010 16:07:06 +0000 (16:07 +0000)]
Thanks to some more testing and additional information provided by Jan Jaeger,
we now have a much cleaner solution for building ShellInABox on OpenWRT.
Markus Gutschke [Tue, 30 Mar 2010 17:16:49 +0000 (17:16 +0000)]
OpenWRT builds with a toolchain that doesn't set correct entries in the ELF
headers, giving us no way to auto-detect the architecture. We have to
hard-code the flags that we pass to objcopy. Unfortunately, we have to do
this for all MIPS targets. This could conceivably break building the code
on other MIPS targets. If that happens, we'll deal with it at that time.
Markus Gutschke [Sun, 16 Aug 2009 05:20:09 +0000 (05:20 +0000)]
Internet Explorer still doesn't properly support CSS. In particular, it has
problems dealing with "inherit" styles. This prevented proper switching
between color and monochrome.
Markus Gutschke [Sat, 15 Aug 2009 22:55:02 +0000 (22:55 +0000)]
Simplify the code that compresses HTTP replies. This also gives us the ability
to manipulate headers more easily. We now add "Connection: close" in more cases
where we force a closing of the connection.
Markus Gutschke [Wed, 12 Aug 2009 02:32:26 +0000 (02:32 +0000)]
Included example style sheets that allow switching to white-on-black or to
monochrome mode from the right click context menu. This required a couple of
architectural changes to the JavaScript code.
Markus Gutschke [Tue, 11 Aug 2009 07:21:51 +0000 (07:21 +0000)]
Initial version of code that allows users to interactively select from
different style sheet options. This code is still incomplete and subject to
change (e.g. the command line syntax might still change). But it is good
enough to demonstrate the concept on simple style sheets (such as selecting
between normal and reverse video).
Markus Gutschke [Sun, 9 Aug 2009 19:08:40 +0000 (19:08 +0000)]
Sanitize the SSH command line a little more.
Show the real host name in the SSH password prompt, if available.
Add some commented-out debugging helpers for tracking down problems with non-US keyboards.
Markus Gutschke [Sat, 8 Aug 2009 22:07:42 +0000 (22:07 +0000)]
Even if ShellInABox is running with SSL support disabled, if the user connected
to it over HTTPS (e.g. because the SSL encryption is done by a reverse proxy
in front of the daemon), we should not redirect away from the HTTPS session.
Markus Gutschke [Thu, 30 Jul 2009 17:40:54 +0000 (17:40 +0000)]
- Added the --css command line option to make incremental changes to the style sheet without having to load a full replacement with the --static-file option. Added an example that enables white text on a black background.
- Added Debian specific documentation to the manual page.
Markus Gutschke [Mon, 27 Jul 2009 20:09:33 +0000 (20:09 +0000)]
- Perform all URL rewriting before loading the first resource (e.g. style sheets).
- Allow reverse proxies to do their own SSL encryption even if ShellInABox explicitly disabled encryption.
Markus Gutschke [Mon, 27 Jul 2009 18:31:05 +0000 (18:31 +0000)]
Use JavaScript redirection for attaching the missing slash to
the URL. This should make it easier to use reverse proxies. It was
already possible to run shellinaboxd behind a proxy, but a lot of
users got the configuration wrong.
Markus Gutschke [Mon, 13 Jul 2009 16:51:09 +0000 (16:51 +0000)]
On Debian systems, library dependencies and overall compatibility is improved
if we do not load libssl and libpam dynamically with dlopen(). Instead,
directly link against these libraries.