~mdw
/
distorted-keys
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c3571d1
)
ktype.seccure: Bodge around `permission denied' error in signing.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 6 Oct 2012 22:22:06 +0000
(23:22 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 6 Oct 2012 22:22:06 +0000
(23:22 +0100)
Not sure why /dev/stdout should be problematic, but avoid the problem
using $(...) to provide a fresh and friendly stdout, and then echo to
the existing file descriptor.
ktype.seccure
patch
|
blob
|
blame
|
history
diff --git
a/ktype.seccure
b/ktype.seccure
index
dfe5521
..
da51687
100644
(file)
--- a/
ktype.seccure
+++ b/
ktype.seccure
@@
-83,7
+83,8
@@
k_decrypt () {
k_sign () {
nub=$2
k_sign () {
nub=$2
- run_seccure sign -q -c$kprop_curve -F"$nub" -s/dev/stdout
+ sig=$(run_seccure sign -q -c$kprop_curve -F"$nub" -s/dev/stdout)
+ echo "$sig"
}
k_verify () {
}
k_verify () {