Fix some warnings. Contributed by Anonymous.
authorBen Laurie <ben@openssl.org>
Fri, 16 Apr 1999 18:13:27 +0000 (18:13 +0000)
committerBen Laurie <ben@openssl.org>
Fri, 16 Apr 1999 18:13:27 +0000 (18:13 +0000)
Configure
crypto/asn1/asn_pack.c
crypto/evp/e_cbc_r2.c
crypto/pkcs12/p12_decr.c
crypto/x509v3/v3_skey.c
ssl/ssl_sess.c

index 61101f3..72753f9 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -83,6 +83,7 @@ my %table=(
 "purify",      "purify gcc:-g -DPURIFY -Wall:-lsocket -lnsl::::",
 "debug",       "gcc:-DBN_DEBUG -DREF_CHECK -DCRYPTO_MDEBUG -ggdb -g2 -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror:-lefence::::",
 "debug-ben",   "gcc:-DBN_DEBUG -DREF_CHECK -DCRYPTO_MDEBUG -O2 -Wall -Wshadow -Werror -pipe:::::",
+"debug-ben-strict",    "gcc:-DBN_DEBUG -DREF_CHECK -DCRYPTO_MDEBUG -O2 -Wall -Wshadow -Werror -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe:::::",
 "debug-rse","cc:-DTERMIOS -DL_ENDIAN -pipe -O -g -ggdb3 -Wall::BN_LLONG $x86_gcc_des $x86_gcc_opts:$x86_elf_asm",
 "dist",                "cc:-O -DNOPROTO::::",
 
index e04d327..6e0dd95 100644 (file)
@@ -114,7 +114,9 @@ char *ASN1_unpack_string (oct, d2i)
 ASN1_STRING *oct;
 char *(*d2i)();
 {
-       unsigned char *p, *ret;
+       unsigned char *p;
+       char *ret;
+
        p = oct->data;
        if(!(ret = d2i(NULL, &p, oct->length)))
                ASN1err(ASN1_F_ASN1_UNPACK_STRING,ASN1_R_DECODE_ERROR);
index 9175e53..b15310a 100644 (file)
@@ -192,7 +192,7 @@ int i;
                }
        }
 
-int rc2_get_asn1_type_and_iv(c,type)
+static int rc2_get_asn1_type_and_iv(c,type)
 EVP_CIPHER_CTX *c;
 ASN1_TYPE *type;
        {
index d28e886..5dee184 100644 (file)
@@ -122,8 +122,10 @@ int passlen;
 ASN1_OCTET_STRING *oct;
 int seq;
 {
-       unsigned char *out, *p, *ret;
+       unsigned char *out, *p;
+       char *ret;
        int outlen;
+
        if (!PKCS12_pbe_crypt (algor, pass, passlen, oct->data, oct->length,
                                 &out, &outlen, 0)) {
                PKCS12err(PKCS12_F_PKCS12_DECRYPT_D2I,PKCS12_R_PKCS12_PBE_CRYPT_ERROR);
index e725d66..932cd8b 100644 (file)
@@ -115,7 +115,7 @@ char *str;
 
 }
 
-ASN1_OCTET_STRING *s2i_skey_id(method, ctx, str)
+static ASN1_OCTET_STRING *s2i_skey_id(method, ctx, str)
 X509V3_EXT_METHOD *method;
 X509V3_CTX *ctx;
 char *str;
index 66bd281..1eb40c0 100644 (file)
@@ -251,7 +251,7 @@ int len;
 
        if (ret->cipher == NULL)
                {
-               char buf[5],*p;
+               unsigned char buf[5],*p;
                unsigned long l;
 
                p=buf;