Commit graph

5331 commits

Author SHA1 Message Date
cinap_lenrek
88cdfe76df ssh: document thumbfile options 2017-04-23 02:59:32 +02:00
cinap_lenrek
da0a7ac387 ssh: implement primitive hostkey verification
this checks $home/lib/sshthumbs for the sha256 hash
of the hosts rsa public key. if its not there, it
prints the rc command to add it and exits.
2017-04-23 02:54:41 +02:00
cinap_lenrek
2b10f79119 ssh(1): add bugs section about host not being authenticated 2017-04-23 01:11:12 +02:00
cinap_lenrek
9574e3908f ssh(1): initial documentation, needs examples for authentication 2017-04-23 00:42:33 +02:00
cinap_lenrek
83d5c827b7 vt: handle underline attribute 2017-04-22 22:52:34 +02:00
cinap_lenrek
f80b35faca merge 2017-04-22 22:21:47 +02:00
cinap_lenrek
13a74150ac vt: handle nocolor flag and reversed background colors 2017-04-22 22:19:17 +02:00
spew
7986722cec merge 2017-04-22 14:28:34 -05:00
spew
6261dcb06b replica: use libavl for avl tree implementation 2017-04-22 14:28:02 -05:00
cinap_lenrek
c029a0c913 vt: handle insert/delete/home/end keys for vt220/xterm 2017-04-22 21:07:53 +02:00
spew
9cf5198145 libavl: lookup can return the closest match 2017-04-22 13:59:37 -05:00
cinap_lenrek
f2b7f24e4e vt: handle application/normal mode (really fixes cursor keys) 2017-04-22 20:16:07 +02:00
cinap_lenrek
b58584b057 merge 2017-04-22 18:21:57 +02:00
cinap_lenrek
5d7a77cf57 vt: fix xterm cursor keys 2017-04-22 18:01:49 +02:00
cinap_lenrek
4340dd1b2f merge 2017-04-22 02:42:16 +02:00
cinap_lenrek
c5b2927250 vt: fix background drawing 2017-04-22 02:41:00 +02:00
mischief
5ef9330b6f nusb/ptp: treat any assocation as a directory
previously nusb/ptp showed only 'generic folder' association type as directories, but all associations work as directories. tested with LG G5/android 7.0
2017-04-21 15:09:50 -07:00
cinap_lenrek
ccdb4fca83 merge 2017-04-21 19:25:25 +02:00
cinap_lenrek
a944c37d68 ssh: actually handle flow control and channel id's 2017-04-21 19:23:56 +02:00
aiju
094fc8b15f fix yacc bug (found by dan cross) 2017-04-21 17:16:44 +00:00
cinap_lenrek
99825e22ed ssh: increase initial window size for better throughput 2017-04-21 01:45:11 +02:00
cinap_lenrek
9b33c34e9b rsa(8): fix description of rsa2ssh (now, ssh2 format only) 2017-04-21 00:23:46 +02:00
cinap_lenrek
882f1c492e ssh: cleanup debug messages 2017-04-21 00:09:30 +02:00
cinap_lenrek
9c50712d64 ssh: do not try authentication methods that we know are not possible 2017-04-20 23:45:56 +02:00
cinap_lenrek
2e714ffe7c ssh: implement password and keyboard-interactive authentication methods 2017-04-20 22:28:21 +02:00
cinap_lenrek
bef681b892 vt: cursoron, don't resize winow when replying history 2017-04-19 22:34:47 +02:00
cinap_lenrek
d566a5ca6b ssh: fix locking, and key reexchange handling
when we initiate re-key exchange we data packets can still
come in. so instead we have everything that can come in all
the time in dispatch() function (including KEXINIT) and have
the receiver process just call that in a loop. exclude dispatch
and the sender proc from corrupting each others sendpkt() calls
with the QLock sl.
2017-04-19 21:03:26 +02:00
aiju
b795a6d9dc blit: always show top-left corner; add tony kaku's -m flag 2017-04-19 10:13:36 +00:00
cinap_lenrek
283a1c0788 vt: but not too fast :-)
if drawing can't keep up with the host, make sure we
eventually redraw the screen and check for user events.
2017-04-19 02:18:28 +02:00
cinap_lenrek
219050cc36 vt: make it fast 2017-04-19 01:46:20 +02:00
cinap_lenrek
db729cbb50 vt: send interrupt on exit, open logfile OCEXEC, run host after environment got exported, send rest of arguments to host 2017-04-18 03:13:15 +02:00
cinap_lenrek
d4cc35f387 ssh: close the channel when vt hangs up 2017-04-18 03:06:39 +02:00
cinap_lenrek
378866d6d1 vt: allow for a bit of buffering 2017-04-18 00:21:51 +02:00
cinap_lenrek
1333b4d14e vt: convert from event to threads
the event library doesnt do any flow control. if the host
keeps sending data while the user is mousing arround,
extract() will collect the data until memory fills up.

so instead we abandon the event library and convert
the program to use channels.
2017-04-18 00:18:03 +02:00
cinap_lenrek
1f3f4cd06b vt: increase history buffer to 64K runes 2017-04-17 05:32:01 +02:00
cinap_lenrek
33991ab9cc ssh: weekend project
manpage should follow...
2017-04-17 05:22:16 +02:00
cinap_lenrek
128783a700 factotum: append public rsa encyption exponent after the modulus
this makes implementing ssh-rsa authentication easier, as we
then can convert the public key directly to ssh format and check
if the server will accept that public key.

tlshand just needs the modulus to see if the public key matches
the one it has from the certificate.
2017-04-17 05:18:24 +02:00
cinap_lenrek
242274f733 rsa2ssh: drop support for version 1 key format 2017-04-17 05:13:46 +02:00
cinap_lenrek
ddc6c16515 vt: implement snarf support 2017-04-17 05:12:07 +02:00
cinap_lenrek
34f5a83330 pc64: state mp.h dependency for archacpi.$O 2017-04-11 02:26:39 +02:00
cinap_lenrek
075e1ddd7d upas/fs: remove imap lastread debounding
its unclear why this was here, waketime logic should handle
this already.
2017-04-09 04:36:47 +02:00
cinap_lenrek
1d94a18e56 upas/fs: fix sync condition
we used to check for mb->d->name != nil before stating, to avoid
stating pop3/imap mailboxes who don't really have a local file,
but this breaks when the md->d is reconstructed (faked) from
the index! resulting in the mailbox stop being refreshed.

the solution is to not have mb->d == nil for imap/pop mailoxes.
2017-04-09 04:32:38 +02:00
cinap_lenrek
35f6a75355 upas/fs: make use of Maxmsg consistent 2017-04-08 23:01:19 +02:00
cinap_lenrek
445d64a387 upas/fs: simplify imap4read() 2017-04-08 23:00:48 +02:00
cinap_lenrek
f14ad276c2 upas/fs: fix dir comparsion and skip directories in mdir, avoid stat
- ignore directories in dirskip()
- use sortkey of 0 for invalid items, otherwise it could confuse qsort()
- use file size from dirreadall() instead of doing stat
- various cleanups
2017-04-08 22:59:15 +02:00
cinap_lenrek
a208a93733 upas/send: use openfolder() to deliver mail to avoid code duplication 2017-04-08 22:52:06 +02:00
cinap_lenrek
fd78f6722e upas/common: deliver mail to mdir as .tmp file and rename after it has been fully written
theres a race condition when mail delivery to mdir is slow,
then upas/fs sees partial mail file and caches the truncated
file size.

to avoid this, delivery will create the new mail file with
the .tmp extension (which is ignored by upas/fs) and after
everything has been written, rename it to the final name.
2017-04-08 22:50:17 +02:00
cinap_lenrek
00fbdd622a kernel: avoid waserror() botch in devwalk (from drawterm, thanks aiju)
calculate alloc flag before waserror(), as compilers like
gcc will not notice the value changing later because
setjump() restores the old value due to callee-saves.

change is applies here to make it easier to merge with
drawterm.

thanks to aiju for debugging this; used to cause drawterm
memory leak until compiled with gcc -O0.
2017-04-05 00:34:07 +02:00
cinap_lenrek
30c05fe3dd kernel: fix memory leak in checkpagerefs() debug function (thanks aiju) 2017-04-04 20:13:31 +02:00
cinap_lenrek
249ff9a24c tlshand: simplify tlsReadN() 2017-04-04 19:01:57 +02:00