Fix compiler warning.
authormdw <mdw>
Sun, 8 Oct 2000 16:00:32 +0000 (16:00 +0000)
committermdw <mdw>
Sun, 8 Oct 2000 16:00:32 +0000 (16:00 +0000)
rsa-pub.c

index f4b1125..e5ec16c 100644 (file)
--- a/rsa-pub.c
+++ b/rsa-pub.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: rsa-pub.c,v 1.1 2000/07/01 11:23:52 mdw Exp $
+ * $Id: rsa-pub.c,v 1.2 2000/10/08 16:00:32 mdw Exp $
  *
  * [RSA encryption with padding *
  * (c) 2000 Straylight/Edgeware
@@ -29,6 +29,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: rsa-pub.c,v $
+ * Revision 1.2  2000/10/08 16:00:32  mdw
+ * Fix compiler warning.
+ *
  * Revision 1.1  2000/07/01 11:23:52  mdw
  * Public-key operations, for symmetry with `rsa-priv.c'.  Functions for
  * doing padded RSA encryption and signature verification.
@@ -141,7 +144,7 @@ int rsa_encrypt(rsa_pubctx *rp, const void *m, size_t sz,
   /* --- Sort out some space --- */
 
   dstr_ensure(d, n);
-  p = d->buf + d->len;
+  p = (octet *)d->buf + d->len;
   p[0] = 0;
 
   /* --- Do the packing --- */