aboutsummaryrefslogtreecommitdiffstats
path: root/apps/pkcs12.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-09-19 17:51:11 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-09-19 17:51:11 +0000
commit688fbf547568f6440cadbbf31cc9da1576a57f67 (patch)
tree67aa5c19601d49367e54e6a7c8e2cb62e16da062 /apps/pkcs12.c
parentf4364e0730a9c3468cfd7212dd75374ea3b0ea4f (diff)
downloadopenssl-688fbf547568f6440cadbbf31cc9da1576a57f67.tar.gz
Fix a typo in apps/pkcs12.c which was using the wrong part of
ASN1_TYPE (though they are both ASN1_STRING so it didn't cause any problems). Make 'siglen' an int in apps/dgst.c so we can check the return value of BIO_read() etc.
Diffstat (limited to 'apps/pkcs12.c')
-rw-r--r--apps/pkcs12.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/pkcs12.c b/apps/pkcs12.c
index 261139565d..070993de30 100644
--- a/apps/pkcs12.c
+++ b/apps/pkcs12.c
@@ -880,14 +880,14 @@ int print_attribs (BIO *out, STACK_OF(X509_ATTRIBUTE) *attrlst, char *name)
break;
case V_ASN1_OCTET_STRING:
- hex_prin(out, av->value.bit_string->data,
- av->value.bit_string->length);
+ hex_prin(out, av->value.octet_string->data,
+ av->value.octet_string->length);
BIO_printf(out, "\n");
break;
case V_ASN1_BIT_STRING:
- hex_prin(out, av->value.octet_string->data,
- av->value.octet_string->length);
+ hex_prin(out, av->value.bit_string->data,
+ av->value.bit_string->length);
BIO_printf(out, "\n");
break;