Remove warnings.
authorRichard Levitte <levitte@openssl.org>
Thu, 14 Nov 2002 15:58:01 +0000 (15:58 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 14 Nov 2002 15:58:01 +0000 (15:58 +0000)
apps/ca.c
crypto/aes/aes_cbc.c
crypto/buffer/buffer.h

index b409575015c36b715536d2973cba3366e8b3b6fb..177797dfda91cd2f6b9d69b1028a52c1a6fd4884 100644 (file)
--- 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;
index f1ea40ab052264b071de0654f6b1acbbc9a01e3c..de438306b15a79f722290fc1335373da52af2439 100644 (file)
@@ -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];
 
index b6307f52eca240b5f3c59482cbd505a37787283d..465dc34f3fea5696d723b17ce6b021eb00e31452 100644 (file)
@@ -63,6 +63,7 @@
 extern "C" {
 #endif
 
+#include <stddef.h>
 #include <sys/types.h>
 
 typedef struct buf_mem_st