Merge in recent changes from 0.9.6-stable
authorRichard Levitte <levitte@openssl.org>
Thu, 30 May 2002 09:42:52 +0000 (09:42 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 30 May 2002 09:42:52 +0000 (09:42 +0000)
apps/asn1pars.c
crypto/asn1/a_bitstr.c
crypto/dso/dso_dlfcn.c

index f25c9f84e81c23ee920803c1807eb59a724c48b1..5339166e088569ffdd9753eebe5a7cdb65444bda 100644 (file)
@@ -181,7 +181,7 @@ bad:
                BIO_printf(bio_err,"where options are\n");
                BIO_printf(bio_err," -inform arg   input format - one of DER TXT PEM\n");
                BIO_printf(bio_err," -in arg       input file\n");
-               BIO_printf(bio_err," -out arg      output file\n");
+               BIO_printf(bio_err," -out arg      output file (output format is always DER\n");
                BIO_printf(bio_err," -noout arg    don't produce any output\n");
                BIO_printf(bio_err," -offset arg   offset into file\n");
                BIO_printf(bio_err," -length arg   length of section in file\n");
@@ -192,7 +192,6 @@ bad:
                BIO_printf(bio_err," -strparse offset\n");
                BIO_printf(bio_err,"               a series of these can be used to 'dig' into multiple\n");
                BIO_printf(bio_err,"               ASN1 blob wrappings\n");
-               BIO_printf(bio_err," -out filename output DER encoding to file\n");
                goto end;
                }
 
index cdedb29e4f50e27f5448c7676f58060ecae450d7..ecc0d4b8cd4a2c896fd98e7182431ad73bfc16bd 100644 (file)
@@ -89,8 +89,6 @@ int i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp)
        if (a == NULL) return(0);
 
        len=a->length;
-       ret=1+len;
-       if (pp == NULL) return(ret);
 
        if (len > 0)
                {
@@ -118,6 +116,10 @@ int i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp)
                }
        else
                bits=0;
+
+       ret=1+len;
+       if (pp == NULL) return(ret);
+
        p= *pp;
 
        *(p++)=(unsigned char)bits;
index e709c721cc348dbffae72382698ef7af3bc2df09..acf09f5a08693ebd4b6c97b341ea040330413f99 100644 (file)
@@ -112,7 +112,7 @@ DSO_METHOD *DSO_METHOD_dlfcn(void)
  * as we don't have autoconf yet, I'm implementing a hack that could
  * be hacked further relatively easily to deal with cases as we find
  * them. Initially this is to cope with OpenBSD. */
-#ifdef __OpenBSD__
+#if defined(__OpenBSD__) || defined(__NetBSD__)
 #      ifdef DL_LAZY
 #              define DLOPEN_FLAG DL_LAZY
 #      else