~ubuntu-branches/ubuntu/hardy/openssl/hardy-security

« back to all changes in this revision

Viewing changes to crypto/pkcs7/example.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2005-12-13 21:37:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051213213742-7em5nrw5c7ceegyd
Tags: 0.9.8a-5
Stop ssh from crashing randomly on sparc (Closes: #335912)
Patch from upstream cvs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
        so=PKCS7_get_signed_attribute(si,signed_seq2string_nid);
124
124
        if (so && (so->type == V_ASN1_SEQUENCE))
125
125
                {
126
 
                ASN1_CTX c;
 
126
                ASN1_const_CTX c;
127
127
                ASN1_STRING *s;
128
128
                long length;
129
129
                ASN1_OCTET_STRING *os1,*os2;
144
144
                        goto err;
145
145
                c.slen-=(c.p-c.q);
146
146
 
147
 
                if (!asn1_Finish(&c)) goto err;
 
147
                if (!asn1_const_Finish(&c)) goto err;
148
148
                *str1=malloc(os1->length+1);
149
149
                *str2=malloc(os2->length+1);
150
150
                memcpy(*str1,os1->data,os1->length);
290
290
        so=PKCS7_get_signed_attribute(&si,signed_seq2string_nid);
291
291
        if (so->type == V_ASN1_SEQUENCE)
292
292
                {
293
 
                ASN1_CTX c;
 
293
                ASN1_const_CTX c;
294
294
                ASN1_STRING *s;
295
295
                long length;
296
296
                ASN1_OCTET_STRING *os1,*os2;
311
311
                        goto err;
312
312
                c.slen-=(c.p-c.q);
313
313
 
314
 
                if (!asn1_Finish(&c)) goto err;
 
314
                if (!asn1_const_Finish(&c)) goto err;
315
315
                *str1=malloc(os1->length+1);
316
316
                *str2=malloc(os2->length+1);
317
317
                memcpy(*str1,os1->data,os1->length);