~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to apps/asn1pars.c

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2004-12-16 18:41:29 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041216184129-z7xjkul57mh1jiha
Tags: upstream-0.9.7e
ImportĀ upstreamĀ versionĀ 0.9.7e

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
                tmplen=num;
279
279
                for (i=0; i<sk_num(osk); i++)
280
280
                        {
 
281
                        int typ;
281
282
                        ASN1_TYPE *atmp;
282
283
                        j=atoi(sk_value(osk,i));
283
284
                        if (j == 0)
296
297
                                ERR_print_errors(bio_err);
297
298
                                goto end;
298
299
                                }
 
300
                        typ = ASN1_TYPE_get(at);
 
301
                        if ((typ == V_ASN1_OBJECT)
 
302
                                || (typ == V_ASN1_NULL))
 
303
                                {
 
304
                                BIO_printf(bio_err, "Can't parse %s type\n",
 
305
                                        typ == V_ASN1_NULL ? "NULL" : "OBJECT");
 
306
                                ERR_print_errors(bio_err);
 
307
                                goto end;
 
308
                                }
299
309
                        /* hmm... this is a little evil but it works */
300
310
                        tmpbuf=at->value.asn1_string->data;
301
311
                        tmplen=at->value.asn1_string->length;