summaryrefslogtreecommitdiff
path: root/sys/src/cmd/auth
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-04-17 05:18:24 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-04-17 05:18:24 +0200
commit128783a700932b527ca6cb0c234db5d3542b3356 (patch)
tree1f723bec4bf3b104ebd74f2fe9f1f4aca4375cd5 /sys/src/cmd/auth
parent242274f7331436241464dcf26d2105b0f9aa9bbe (diff)
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.
Diffstat (limited to 'sys/src/cmd/auth')
-rw-r--r--sys/src/cmd/auth/factotum/rsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/auth/factotum/rsa.c b/sys/src/cmd/auth/factotum/rsa.c
index 2ef94f0b3..596f19e26 100644
--- a/sys/src/cmd/auth/factotum/rsa.c
+++ b/sys/src/cmd/auth/factotum/rsa.c
@@ -149,7 +149,7 @@ rsaread(Fsstate *fss, void *va, uint *n)
return failure(fss, nil);
s->off++;
priv = s->key->priv;
- *n = snprint(va, *n, "%B", priv->pub.n);
+ *n = snprint(va, *n, "%B %B", priv->pub.n, priv->pub.ek);
return RpcOk;
case CHaveResp:
*n = snprint(va, *n, "%B", s->resp);