~ubuntu-branches/ubuntu/quantal/wpasupplicant/quantal

« back to all changes in this revision

Viewing changes to src/eap_peer/eap_ttls.c

  • Committer: Bazaar Package Importer
  • Author(s): Kel Modderman
  • Date: 2010-02-27 11:30:53 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100227113053-axxieaw3hmuqbqls
Tags: 0.6.10-2
* Switch to source format 3.0 (quilt), drop quilt build dependency
  and remove '--with quilt' from dh command in debian/rules.
* Fix "FTBFS on kfreebsd-gnu" with addition of 21_kfreebsd.patch.
  Thanks to work by Stefan Lippers-Hollmann and Petr Salinger.
  (Closes: #480572)
* Disable experimental feature CONFIG_IEEE80211W (management frame
  protection) due to it not being supported by any driver but ath9k
  and it generating ioctl errors which cause much concern among users
  for little to no benefit.
* Add traling blank line to debian/NEWS to assist apt-listchanges as
  per lintian advice.
* Cherry pick 30_cfg80211_association_optimisation.patch from upstream
  git. Add cfg80211-specific optimization to avoid silly behavior.

Show diffs side-by-side

added added

removed removed

Lines of Context:
842
842
        /* User-Password; in RADIUS, this is encrypted, but EAP-TTLS encrypts
843
843
         * the data, so no separate encryption is used in the AVP itself.
844
844
         * However, the password is padded to obfuscate its length. */
845
 
        pad = (16 - (password_len & 15)) & 15;
 
845
        pad = password_len == 0 ? 16 : (16 - (password_len & 15)) & 15;
846
846
        pos = eap_ttls_avp_hdr(pos, RADIUS_ATTR_USER_PASSWORD, 0, 1,
847
847
                               password_len + pad);
848
848
        os_memcpy(pos, password, password_len);