]> git.ipfire.org Git - thirdparty/dehydrated.git/log
thirdparty/dehydrated.git
9 years agouse umask 077 to protect private keys 1/head
Simon Ruderich [Sat, 5 Dec 2015 13:52:40 +0000 (14:52 +0100)] 
use umask 077 to protect private keys

9 years agouse set -u to catch uninitialized variables
Simon Ruderich [Sat, 5 Dec 2015 13:30:32 +0000 (14:30 +0100)] 
use set -u to catch uninitialized variables

9 years agoreplace source with .
Simon Ruderich [Sat, 5 Dec 2015 13:26:53 +0000 (14:26 +0100)] 
replace source with .

source searches in $PATH which should not be necessary and might be
problematic.

9 years agouse [ -z .. ] instead of explicit compare with ""
Simon Ruderich [Sat, 5 Dec 2015 13:25:11 +0000 (14:25 +0100)] 
use [ -z .. ] instead of explicit compare with ""

9 years agouse curl -sSf to display error messages on failure
Simon Ruderich [Sat, 5 Dec 2015 13:52:26 +0000 (14:52 +0100)] 
use curl -sSf to display error messages on failure

9 years agoreplace echo (-n) with printf
Simon Ruderich [Sat, 5 Dec 2015 13:08:41 +0000 (14:08 +0100)] 
replace echo (-n) with printf

printf is more portable and never interprets any escape characters.

9 years agoremove useless cat
Simon Ruderich [Sat, 5 Dec 2015 13:22:28 +0000 (14:22 +0100)] 
remove useless cat

Found by shellcheck.

9 years agofix typo in variable name
Simon Ruderich [Sat, 5 Dec 2015 13:22:13 +0000 (14:22 +0100)] 
fix typo in variable name

Found by shellcheck.

9 years agodon't use assign array to string ($@ -> $*)
Simon Ruderich [Sat, 5 Dec 2015 13:21:49 +0000 (14:21 +0100)] 
don't use assign array to string ($@ -> $*)

Found by shellcheck.

9 years agoadd missing quotes
Simon Ruderich [Sat, 5 Dec 2015 13:21:32 +0000 (14:21 +0100)] 
add missing quotes

Found by shellcheck.

9 years agoreplace variable with %s in printf format string
Simon Ruderich [Sat, 5 Dec 2015 13:15:46 +0000 (14:15 +0100)] 
replace variable with %s in printf format string

Found by shellcheck.

9 years agoadd hex2bin helper function
Simon Ruderich [Sat, 5 Dec 2015 15:29:55 +0000 (16:29 +0100)] 
add hex2bin helper function

9 years agofix pubMod64 and thumbprint calculation
Simon Ruderich [Sat, 5 Dec 2015 15:27:30 +0000 (16:27 +0100)] 
fix pubMod64 and thumbprint calculation

We must strip the trailing newline with `echo -n` before we pass it to
perl to convert the hex to binary, not after.

9 years agocheck for errors on token retrieval
Lukas Schauer [Sat, 5 Dec 2015 02:14:23 +0000 (03:14 +0100)] 
check for errors on token retrieval

9 years agosilent registration
Lukas Schauer [Sat, 5 Dec 2015 02:12:31 +0000 (03:12 +0100)] 
silent registration

9 years agonot using bash arrays anymore
Lukas Schauer [Sat, 5 Dec 2015 01:51:02 +0000 (02:51 +0100)] 
not using bash arrays anymore

9 years agomoved some code around to allow initial registration
Lukas Schauer [Sat, 5 Dec 2015 01:43:21 +0000 (02:43 +0100)] 
moved some code around to allow initial registration

9 years agogenerate private key if non-existant
Lukas Schauer [Sat, 5 Dec 2015 01:38:51 +0000 (02:38 +0100)] 
generate private key if non-existant

9 years agoinitial commit
Lukas Schauer [Sat, 5 Dec 2015 01:31:06 +0000 (02:31 +0100)] 
initial commit