X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/395de3d134246a7a57f19994e60d4091c43172d0..59919ae4b1721ca271c3d3e5955c09d322573821:/rsa-pub.c diff --git a/rsa-pub.c b/rsa-pub.c index f4b1125..e5ec16c 100644 --- 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 --- */