1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-30 11:18:12 +00:00
Commit Graph

197 Commits

Author SHA1 Message Date
Greg Alexander
90e7ca14ae graphic assets sarah provided 2014-12-20 12:03:43 -05:00
Greg Alexander
3620b17411 implement start on boot 2014-12-17 23:18:27 -05:00
Greg Alexander
3112a7ecb3 remove explicit "0.0.0.0" specification on -p option because it turns out
the "tcp6" listener that results accepts ipv4 after all
2014-12-17 22:52:52 -05:00
Greg Alexander
8a1bc2c4e0 made the JNI methods static because they didn't use this anyways 2014-12-17 22:48:38 -05:00
Greg Alexander
5df0610f5c implement the extra dropbear commandline options 2014-12-17 22:46:04 -05:00
Greg Alexander
52a7c6b070 todo 2014-12-17 20:55:58 -05:00
Greg Alexander
637de21aca add locking to resolve some thread safety issues 2014-12-17 20:54:40 -05:00
Greg Alexander
5c7d92415c remove debug code from updater thread 2014-12-17 20:40:44 -05:00
Greg Alexander
a40b35a5a2 updater checks length as well as time, in case there are multiple
modifications within the same second
2014-12-17 20:39:48 -05:00
Greg Alexander
52a1093dde make the log view always show the bottom of the log 2014-12-17 20:39:34 -05:00
Greg Alexander
4581a224ac first draft of a thread to poll for changes to the dropbear.err file 2014-12-17 20:27:37 -05:00
Greg Alexander
b44b9295d5 add display of the dropbear.err log (it doesn't update yet) 2014-12-17 19:58:22 -05:00
Greg Alexander
932bfa3242 save the static pointer to the main Activity in SimpleSSHD because it'll
be used by more than just SimpleSSHDService..
2014-12-17 19:34:35 -05:00
Greg Alexander
1642eec8fd update the target sdk version to 11 (android 3.0) -- nothing really
changes, except now on new phones it puts the options button on the top
of the screen where people are execting it
2014-12-17 18:56:10 -05:00
Greg Alexander
d140fe13f6 todo 2014-12-17 18:52:30 -05:00
Greg Alexander
76a25aca25 improve text of preferences pane 2014-12-17 18:52:22 -05:00
Greg Alexander
76eb76fac4 get rid of the old prefs machinery 2014-12-17 18:43:01 -05:00
Greg Alexander
e49cf68feb port is a string now because none of the stock preference widgets will do
a number...
2014-12-17 18:39:57 -05:00
Greg Alexander
bbcb048996 first draft of settings activity 2014-12-17 18:38:39 -05:00
Greg Alexander
95c028ad81 add an options menu to access the future settings activity 2014-12-17 16:46:02 -05:00
Greg Alexander
1d79555a2f todo 2014-12-17 08:58:21 -05:00
Greg Alexander
18f801e87a more appropriate default path for android 2014-12-16 23:51:27 -05:00
Greg Alexander
324bf93935 no need to specify -l on the shell, dropbear does it as appropriate 2014-12-16 23:11:51 -05:00
Greg Alexander
f664476da5 don't attempt to change uid, we do not run as root 2014-12-16 23:11:23 -05:00
Greg Alexander
f2b458f499 don't maintain utmp/wtmp 2014-12-16 23:06:45 -05:00
Greg Alexander
c222b4b074 use configuration values instead of getpwnam() 2014-12-16 23:06:04 -05:00
Greg Alexander
ff446269b3 use ptmx 2014-12-16 22:29:54 -05:00
Greg Alexander
25b613c4f5 use rename() if the underlying filesystem doesn't support link() 2014-12-16 22:24:34 -05:00
Greg Alexander
97533c8574 add LTC_SOURCE to each libtomcrypt .c file because that's easier than
breaking upthe jni Android.mk
2014-12-16 22:07:06 -05:00
Greg Alexander
b912829679 don't tweak tomcrypt ecc timing settings either
Revert "don't use the timing-resistant ltc_ecc_mulmod because (a) i don't care"

This reverts commit 5b4f2d405f.
2014-12-16 21:50:45 -05:00
Greg Alexander
0ff8cc90aa back out partial LTC_SOURCE hack, in preparation for a more thorough one
Revert "somehow #define LTC_SOURCE 1 (which should really be in all libtomcrypt"

This reverts commit 11c4fa947d.
2014-12-16 21:48:41 -05:00
Greg Alexander
b45a6bc290 todo 2014-12-16 21:44:56 -05:00
Greg Alexander
edb6854ccb todo 2014-12-16 18:49:56 -05:00
Greg Alexander
5902ab0952 tell dropbear not to fork into the background, because we've already
forked before calling it...
2014-12-16 18:49:00 -05:00
Greg Alexander
f0347f7477 probably startForeground() is overkill? 2014-12-16 18:43:12 -05:00
Greg Alexander
5c01b97345 when creating the Service, we check for a pid file for an orphaned daemon
process, and if it exists, we kill it.
2014-12-16 18:42:37 -05:00
Greg Alexander
e77351edd4 factor the SharedPreferences usage into its own Prefs class 2014-12-16 18:31:53 -05:00
Greg Alexander
834e994042 put the pid file under conf_path_file() 2014-12-16 18:31:18 -05:00
Greg Alexander
781af9c467 Revert "get rid of pid file"
This reverts commit e658e1694d.
2014-12-16 18:20:29 -05:00
Greg Alexander
760d17ddf7 todo 2014-12-16 18:20:16 -05:00
Greg Alexander
5248db4380 add a (useless) service onDestroy() to clean up the sshd 2014-12-16 18:20:01 -05:00
Greg Alexander
f3f53709c6 waiter thread is done 2014-12-16 18:05:06 -05:00
Greg Alexander
6d872af030 listen to "0.0.0.0:port" because otherwise it seems to default to ipv6 (??) 2014-12-16 17:56:47 -05:00
Greg Alexander
e8e3881877 add uses-permission for network and storage 2014-12-16 17:56:34 -05:00
Greg Alexander
9ea9717624 add -R for DROPBEAR_DELAY_HOSTKEY 2014-12-16 17:51:24 -05:00
Greg Alexander
8a8b4c3acb fix typo hiding argv 2014-12-16 17:31:14 -05:00
Greg Alexander
304044bc05 disable syslog so we get the error messages on stderr 2014-12-16 17:28:01 -05:00
Greg Alexander
3f721ae740 add conf_path_file() function to generate "/sdcard/ssh/foo" style filenames 2014-12-16 17:27:43 -05:00
Greg Alexander
0c939b5b24 a little note in the .err file to indicate what's happening... 2014-12-16 17:14:01 -05:00
Greg Alexander
aa006d51d8 eek! and call super.onPause() too 2014-12-16 17:11:22 -05:00