diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-14 15:57:38 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-14 15:57:38 +0000 |
commit | c8632017805c9868b6bcead6d3c4f0d91453ed63 (patch) | |
tree | 59fd477ea0c6b13f8c7fa4bd3398269c3e70461d | |
parent | cb21d001c92ec52b88d19e34830b5c2342a154bf (diff) |
Remove warnings.
-rw-r--r-- | apps/ca.c | 2 | ||||
-rw-r--r-- | crypto/aes/aes_cbc.c | 2 | ||||
-rw-r--r-- | crypto/buffer/buffer.h | 1 |
3 files changed, 3 insertions, 2 deletions
@@ -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 c5f1a13c24..01e965a532 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 <stddef.h> #include <sys/types.h> typedef struct buf_mem_st |