~ubuntu-branches/ubuntu/raring/gnutls28/raring-proposed

« back to all changes in this revision

Viewing changes to lib/gnutls_cipher.c

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2012-01-07 12:55:33 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20120107125533-8s2qt9hme0528eo1
Tags: 3.0.11-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
560
560
          }
561
561
 
562
562
      if (length < 0)
563
 
        length = 0;
 
563
        {
 
564
          /* Setting a proper length to prevent timing differences in
 
565
           * processing of records with invalid encryption.
 
566
           */
 
567
          length = ciphertext->size - tag_size;
 
568
        }
564
569
 
565
570
      /* Pass the type, version, length and compressed through
566
571
       * MAC.