~andersk/ubuntu/oneiric/openssl/spurious-reboot

« back to all changes in this revision

Viewing changes to ssl/t1_enc.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2006-10-02 18:05:00 UTC
  • mto: (11.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20061002180500-y5ux36zvt0fjeiax
Tags: upstream-0.9.8c
ImportĀ upstreamĀ versionĀ 0.9.8c

Show diffs side-by-side

added added

removed removed

Lines of Context:
628
628
                        {
629
629
                        ii=i=rec->data[l-1]; /* padding_length */
630
630
                        i++;
631
 
                        if (s->options&SSL_OP_TLS_BLOCK_PADDING_BUG)
 
631
                        /* NB: if compression is in operation the first packet
 
632
                         * may not be of even length so the padding bug check
 
633
                         * cannot be performed. This bug workaround has been
 
634
                         * around since SSLeay so hopefully it is either fixed
 
635
                         * now or no buggy implementation supports compression 
 
636
                         * [steve]
 
637
                         */
 
638
                        if ( (s->options&SSL_OP_TLS_BLOCK_PADDING_BUG)
 
639
                                && !s->expand)
632
640
                                {
633
641
                                /* First packet is even in size, so check */
634
642
                                if ((memcmp(s->s3->read_sequence,