Fix warnings, makefile cockup.
authorBen Laurie <ben@openssl.org>
Wed, 13 Nov 2002 11:59:48 +0000 (11:59 +0000)
committerBen Laurie <ben@openssl.org>
Wed, 13 Nov 2002 11:59:48 +0000 (11:59 +0000)
crypto/asn1/asn1_gen.c
test/Makefile.ssl

index 62c2c15..0c5dd9b 100644 (file)
@@ -143,7 +143,7 @@ ASN1_TYPE *ASN1_generate_v3(char *str, X509V3_CTX *cnf)
        unsigned char *cpy_start, *p;
        int cpy_len;
        long hdr_len;
-       int hdr_constructed, hdr_tag, hdr_class;
+       int hdr_constructed = 0, hdr_tag, hdr_class;
        int r;
 
        asn1_tags.imp_tag = -1;
@@ -268,7 +268,7 @@ static int asn1_cb(const char *elem, int len, void *bitstr)
        tag_exp_arg *arg = bitstr;
        int i;
        int utype;
-       int vlen;
+       int vlen = 0;
        const char *p, *vstart = NULL;
 
        int tmp_tag, tmp_class;
index a40b8e9..f6fe2bb 100644 (file)
@@ -483,7 +483,7 @@ $(ECDSATEST): $(ECDSATEST).o $(DLIBCRYPTO)
        else \
          $(CC) -o $(ECDSATEST) $(CFLAGS) $(ECDSATEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
        fi
-       
+
 $(ECDHTEST): $(ECDHTEST).o $(DLIBCRYPTO)
        if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \
          $(CC) -o $(ECDHTEST) $(CFLAGS) $(ECDHTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
@@ -499,7 +499,7 @@ $(ECDHTEST): $(ECDHTEST).o $(DLIBCRYPTO)
 #        $(CC) -o $(RDTEST) $(CFLAGS) $(RDTEST).o $(PEX_LIBS) $(DLIBCRYPTO) $(EX_LIBS) ; \
 #      else \
 #        $(CC) -o $(RDTEST) $(CFLAGS) $(RDTEST).o $(PEX_LIBS) $(LIBCRYPTO) $(EX_LIBS) ; \
-       fi
+#      fi
 
 dummytest: dummytest.o $(DLIBCRYPTO)
        if [ "$(SHLIB_TARGET)" = "hpux-shared" -o "$(SHLIB_TARGET)" = "darwin-shared" ] ; then \