From 512d359e266516e15c6b4d41329f7de6c0d76066 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 27 Jul 2009 21:22:02 +0000 Subject: Update from 1.0.0-stable. --- crypto/asn1/a_set.c | 37 +++++++++++++++++++------------------ crypto/asn1/asn1.h | 13 +++++++------ crypto/asn1/asn_pack.c | 8 ++++---- 3 files changed, 30 insertions(+), 28 deletions(-) (limited to 'crypto/asn1') diff --git a/crypto/asn1/a_set.c b/crypto/asn1/a_set.c index 2675476f18..d726c8d3a8 100644 --- a/crypto/asn1/a_set.c +++ b/crypto/asn1/a_set.c @@ -85,7 +85,7 @@ static int SetBlobCmp(const void *elem1, const void *elem2 ) } /* int is_set: if TRUE, then sort the contents (i.e. it isn't a SEQUENCE) */ -int i2d_ASN1_SET(STACK_OF(BLOCK) *a, unsigned char **pp, +int i2d_ASN1_SET(STACK_OF(OPENSSL_BLOCK) *a, unsigned char **pp, i2d_of_void *i2d, int ex_tag, int ex_class, int is_set) { @@ -97,8 +97,8 @@ int i2d_ASN1_SET(STACK_OF(BLOCK) *a, unsigned char **pp, int totSize; if (a == NULL) return(0); - for (i=sk_BLOCK_num(a)-1; i>=0; i--) - ret+=i2d(sk_BLOCK_value(a,i),NULL); + for (i=sk_OPENSSL_BLOCK_num(a)-1; i>=0; i--) + ret+=i2d(sk_OPENSSL_BLOCK_value(a,i),NULL); r=ASN1_object_size(1,ret,ex_tag); if (pp == NULL) return(r); @@ -109,10 +109,10 @@ int i2d_ASN1_SET(STACK_OF(BLOCK) *a, unsigned char **pp, /* And then again by Ben */ /* And again by Steve */ - if(!is_set || (sk_BLOCK_num(a) < 2)) + if(!is_set || (sk_OPENSSL_BLOCK_num(a) < 2)) { - for (i=0; i