diff options
Diffstat (limited to 'src/cmd/auth/factotum/rsa.c')
-rw-r--r-- | src/cmd/auth/factotum/rsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/auth/factotum/rsa.c b/src/cmd/auth/factotum/rsa.c index 34ddb784..943ea67b 100644 --- a/src/cmd/auth/factotum/rsa.c +++ b/src/cmd/auth/factotum/rsa.c @@ -66,12 +66,12 @@ xrsadecrypt(Conv *c) if(m == nil) goto out; if(strcmp(role, "decrypt") == 0) - mm = rsadecrypt(key, m, m); + mm = rsadecrypt(key, m, nil); else mm = rsaencrypt(&key->pub, m, nil); if(mm == nil) goto out; - n = mptobe(m, buf, sizeof buf, nil); + n = mptobe(mm, buf, sizeof buf, nil); /* send response */ c->state = "write"; |