From 5bf0d0ea1efc4c600a90c8ef0667734f5b1446ef Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 14 Nov 2002 15:58:01 +0000 Subject: [PATCH] Remove warnings. --- apps/ca.c | 2 +- crypto/aes/aes_cbc.c | 2 +- crypto/buffer/buffer.h | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/ca.c b/apps/ca.c index b409575015..177797dfda 100644 --- a/apps/ca.c +++ b/apps/ca.c @@ -1336,7 +1336,7 @@ bad: j=x->cert_info->serialNumber->length; p=(char *)x->cert_info->serialNumber->data; - if(strlen(outdir) >= (j ? BSIZE-j*2-6 : BSIZE-8)) + if(strlen(outdir) >= (size_t)(j ? BSIZE-j*2-6 : BSIZE-8)) { BIO_printf(bio_err,"certificate file name too long\n"); goto err; diff --git a/crypto/aes/aes_cbc.c b/crypto/aes/aes_cbc.c index f1ea40ab05..de438306b1 100644 --- a/crypto/aes/aes_cbc.c +++ b/crypto/aes/aes_cbc.c @@ -63,7 +63,7 @@ void AES_cbc_encrypt(const unsigned char *in, unsigned char *out, const unsigned long length, const AES_KEY *key, unsigned char *ivec, const int enc) { - int n; + unsigned long n; unsigned long len = length; unsigned char tmp[AES_BLOCK_SIZE]; diff --git a/crypto/buffer/buffer.h b/crypto/buffer/buffer.h index b6307f52ec..465dc34f3f 100644 --- a/crypto/buffer/buffer.h +++ b/crypto/buffer/buffer.h @@ -63,6 +63,7 @@ extern "C" { #endif +#include #include typedef struct buf_mem_st -- 2.25.1