aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/auth/factotum/rsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/auth/factotum/rsa.c')
-rw-r--r--src/cmd/auth/factotum/rsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/auth/factotum/rsa.c b/src/cmd/auth/factotum/rsa.c
index 943ea67b..a865810d 100644
--- a/src/cmd/auth/factotum/rsa.c
+++ b/src/cmd/auth/factotum/rsa.c
@@ -62,7 +62,7 @@ xrsadecrypt(Conv *c)
}
/* encrypt/decrypt */
- m = betomp(txt, n, nil);
+ m = betomp((uchar*)txt, n, nil);
if(m == nil)
goto out;
if(strcmp(role, "decrypt") == 0)
@@ -71,7 +71,7 @@ xrsadecrypt(Conv *c)
mm = rsaencrypt(&key->pub, m, nil);
if(mm == nil)
goto out;
- n = mptobe(mm, buf, sizeof buf, nil);
+ n = mptobe(mm, (uchar*)buf, sizeof buf, nil);
/* send response */
c->state = "write";