X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fasn1%2Fa_set.c;h=caf5a1419c98cbe201acbacfc8e24b99ecd58eab;hb=9ef9e78520eba0fb3d92b581dc4f895a5f464387;hp=34000ecf7d78330c92d0bc98d7042813dd439efb;hpb=e778802f53c8d47e96a6e4cbc776eb6e1d4c461a;p=oweals%2Fopenssl.git diff --git a/crypto/asn1/a_set.c b/crypto/asn1/a_set.c index 34000ecf7d..caf5a1419c 100644 --- a/crypto/asn1/a_set.c +++ b/crypto/asn1/a_set.c @@ -58,10 +58,8 @@ #include #include "cryptlib.h" -#include "asn1_mac.h" +#include -/* ASN1err(ASN1_F_ASN1_TYPE_NEW,ERR_R_MALLOC_FAILURE); - */ typedef struct { unsigned char *pbData; @@ -84,14 +82,9 @@ static int SetBlobCmp(const void *elem1, const void *elem2 ) return b1->cbData-b2->cbData; } -int i2d_ASN1_SET(a,pp,func,ex_tag,ex_class,is_set) -STACK *a; -unsigned char **pp; -int (*func)(); -int ex_tag; -int ex_class; -int is_set; /* if TRUE, then sort the contents (i.e. it isn't a SEQUENCE) */ - +/* int is_set: if TRUE, then sort the contents (i.e. it isn't a SEQUENCE) */ +int i2d_ASN1_SET(STACK *a, unsigned char **pp, int (*func)(), int ex_tag, + int ex_class, int is_set) { int ret=0,r; int i; @@ -123,7 +116,7 @@ int is_set; /* if TRUE, then sort the contents (i.e. it isn't a SEQUENCE) */ } pStart = p; /* Catch the beg of Setblobs*/ - rgSetBlob = (MYBLOB *)Malloc( sk_num(a) * sizeof(MYBLOB)); /* In this array + rgSetBlob = (MYBLOB *)OPENSSL_malloc( sk_num(a) * sizeof(MYBLOB)); /* In this array we will store the SET blobs */ for (i=0; i