1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-12-28 00:48:07 +00:00
Commit Graph

72 Commits

Author SHA1 Message Date
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
Greg Alexander
f5d6675cad make the start button color a little more palatable 2014-12-16 17:09:48 -05:00
Greg Alexander
58eefb02b9 add something to wait for the forked process to die, so it doesn't become
a zombie
2014-12-16 17:07:26 -05:00
Greg Alexander
b88f4f1db0 ack, stupid typo 2014-12-16 16:52:54 -05:00
Greg Alexander
c6fbf0cbcc fix getting the port number out of the UI 2014-12-16 16:50:05 -05:00
Greg Alexander
41faa118cc fix typos in definition of startstop_clicked() 2014-12-16 16:49:54 -05:00
Greg Alexander
cbb8581d03 fix some layout... 2014-12-16 16:49:40 -05:00
Greg Alexander
c9f839a69a fix a bunch of layout typos 2014-12-16 16:40:34 -05:00
Greg Alexander
b9ad9864ce whoops, chain to super.onResume() 2014-12-16 16:37:17 -05:00
Greg Alexander
e347dfb2d0 doit script to automatically build & upload to phone 2014-12-16 16:35:55 -05:00
Greg Alexander
f0dcb8b2c0 pass '-p <portno>' on the virtual commandline 2014-12-16 16:34:10 -05:00
Greg Alexander
447ffa0b8f stderr output should now hopefully go to /sdcard/ssh/dropbear.err instead
of the bit bucket
2014-12-16 16:24:01 -05:00
Greg Alexander
bfa3c99dc0 actually call main... 2014-12-16 16:13:04 -05:00
Greg Alexander
1febe9ebe9 add service lifetime termination, and notes about future service foregrounding.. 2014-12-16 15:55:14 -05:00
Greg Alexander
a9ca75accc communicate the preferences to the C code 2014-12-16 15:50:30 -05:00
Greg Alexander
02a88eae06 typos... 2014-12-16 11:21:17 -05:00
Greg Alexander
8ced3ab635 and there's the start/stop button implementation 2014-12-16 11:20:36 -05:00
Greg Alexander
9cac7ed132 make sshd_pid static 2014-12-16 11:19:26 -05:00
Greg Alexander
e1d43c3208 first draft of rough JNI interface 2014-12-16 10:34:10 -05:00
Greg Alexander
720007ae32 now it compiles... 2014-12-16 09:55:54 -05:00
Greg Alexander
643a5aff23 first draft of service 2014-12-16 09:52:42 -05:00
Greg Alexander
8140b594b3 process management musings 2014-12-15 23:27:11 -05:00
Greg Alexander
4cd9277401 oversight 2014-12-14 23:23:43 -05:00
Greg Alexander
9556b95f2c more appropriate visual layout 2014-12-14 23:21:05 -05:00
Greg Alexander
a23c28a02d first draft of preferences ui code 2014-12-14 22:56:31 -05:00
Greg Alexander
cb2dc4f24d first draft of UI XML 2014-12-14 17:30:35 -05:00