Commit Graph

14 Commits

Author SHA1 Message Date
David du Colombier
7ed1f0cb5b ssh-agent: add rsa-sha2-256 and rsa-sha2-512 support
Modern OpenSSH servers reject ssh-rsa (SHA-1) signatures.
Import SHA-2 support to libsec from Plan 9, teach factotum
to sign with SHA256 and SHA512, and handle the
SSH_AGENT_RSA_SHA2_256/512 flags in ssh-agent.

Strip role and hash from factotum RSA key lookups so a
single key can serve both sign and decrypt operations.

Increase _attrfmt buffer from 1024 to 8192 so large RSA
key attributes are not truncated during factotum ctl reads.

The following files were imported from Plan 9 :

 - src/libsec/port/sha2block64.c
 - src/libsec/port/sha2block128.c
 - src/libsec/port/sha2_64.c
 - src/libsec/port/sha2_128.c
2026-03-29 10:28:50 -04:00
Dan Cross
fa325e9b42 Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-10 14:54:30 +00:00
rsc
cbeb0b26e4 Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
rsc
22157b7a34 freerpc(nil) 2006-01-27 04:12:35 +00:00
rsc
a8ec4910fd apple 2005-07-13 21:34:11 +00:00
rsc
4a560b7a09 do not set $PLAN9 2005-03-15 20:26:45 +00:00
rsc
0c891f28db whoops -- close afid in auth_freerpc 2005-02-15 05:04:36 +00:00
rsc
52e5e85b02 allow parseattr(nil) 2005-02-13 18:34:38 +00:00
rsc
ba285d2ba9 open correct factotum file 2005-02-11 22:04:12 +00:00
rsc
1b3e768e01 do not need auth_wep or login 2005-02-11 19:46:12 +00:00
rsc
42400cf81f add fsamount, nsamount; use ndb for authdial; use explicit %# 2005-02-11 17:01:18 +00:00
rsc
648bb6f75a lucho changes 2005-02-08 20:58:10 +00:00
rsc
a743b8faa2 add portdate 2004-12-26 23:19:25 +00:00
rsc
be8b315d15 basically none of these build 2004-06-17 03:27:35 +00:00