[PATCH setup 1/4] Various improvements to debug output from crypto.cc

2020-02-25 Thread Jon Turney
Build an adaptor for log output from gcrypt (unfortunately complex as it needs to gather/split lines on '\n') Don't really need a hard breakpoint for ERRKIND, so it's the same, irrespective of CRYPTODEBUGGING being defined. Always debug log the pk type and hash alg in use. Allow CRYPTODEBUGGING

[PATCH setup 2/4] Increase buffer size in LogPrintf adaptors

2020-02-25 Thread Jon Turney
crypto.cc can now generate output lines bigger than the current buffer size --- LogSingleton.cc | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LogSingleton.cc b/LogSingleton.cc index 73b8fb6..e08717f 100644 --- a/LogSingleton.cc +++ b/LogSingleton.cc @@ -81,10 +81,10 @

[PATCH setup 4/4] Handle multiple signature packets in .sig file

2020-02-25 Thread Jon Turney
Rather than stopping after the first signature packet, handle multiple signature packets appearing in a .sig file. If any of them is a valid signature from a known key, then the signature is good. --- crypto.cc | 288 +- 1 file changed, 156 inse

[PATCH setup 0/4] Misc crypto fixes and improvements

2020-02-25 Thread Jon Turney
Jon Turney (4): Various improvements to debug output from crypto.cc Increase buffer size in LogPrintf adaptors Provide hash to DSA as an opaque block Handle multiple signature packets in .sig file LogSingleton.cc | 8 +- crypto.cc | 363

[PATCH setup 3/4] Provide hash to DSA as an opaque block

2020-02-25 Thread Jon Turney
This allows libgcrypt to truncate the hash correctly when a hash alg is specified which produces more than the 160 bits DSA accepts. --- crypto.cc | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/crypto.cc b/crypto.cc index 364ef82..428b100 100644 --- a/cry

Re: ssh key fails

2020-02-25 Thread Brian Inglis
On 2020-02-25 01:44, Thomas Wolff wrote: > Trying to upload mintty, my sftp access fails. > After reconfiguration of my machine, I copied over the complete ~/.ssh > directory > (which worked between completely different machines before), but it says > cyg...@cygwin.com: Permission denied (publicke

Re: ssh key fails

2020-02-25 Thread Jon Turney
On 25/02/2020 08:44, Thomas Wolff wrote: Trying to upload mintty, my sftp access fails. After reconfiguration of my machine, I copied over the complete ~/.ssh directory (which worked between completely different machines before), but it says cygwin-rdbxbdvo6bxqt0dzr+a...@public.gmane.org: Permi

ssh key fails

2020-02-25 Thread Thomas Wolff
Trying to upload mintty, my sftp access fails. After reconfiguration of my machine, I copied over the complete ~/.ssh directory (which worked between completely different machines before), but it says cyg...@cygwin.com: Permission denied (publickey). Did anything change? Thomas