~ubuntu-branches/ubuntu/oneiric/strongswan/oneiric

« back to all changes in this revision

Viewing changes to src/charon/credentials/auth_info.c

  • Committer: Bazaar Package Importer
  • Author(s): Rene Mayrhofer
  • Date: 2009-04-01 22:17:52 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090401221752-eozrk0ctabblo94z
* New upstream release, which incorporates the fix. Removed dpatch for it.
  Closes: #521950: CVE-2009-0790: DoS
* New support for EAP RADIUS authentication, enabled for this package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14
14
 * for more details.
15
15
 *
16
 
 * $Id: auth_info.c 4276 2008-08-22 10:44:51Z martin $
 
16
 * $Id: auth_info.c 4774 2008-12-09 14:34:15Z martin $
17
17
 */
18
18
 
19
19
 
560
560
}
561
561
 
562
562
/**
563
 
 * Implementation of auth_info_t.destroy
 
563
 * Implementation of auth_info_t.purge
564
564
 */
565
 
static void destroy(private_auth_info_t *this)
 
565
static void purge(private_auth_info_t *this)
566
566
{
567
567
        item_t *item;
568
568
        
571
571
                destroy_item_value(item);
572
572
                free(item);
573
573
        }
 
574
}
 
575
 
 
576
/**
 
577
 * Implementation of auth_info_t.destroy
 
578
 */
 
579
static void destroy(private_auth_info_t *this)
 
580
{
 
581
        purge(this);
574
582
        this->items->destroy(this->items);
575
583
        free(this);
576
584
}
588
596
        this->public.create_item_enumerator = (enumerator_t*(*)(auth_info_t*))create_item_enumerator;
589
597
        this->public.complies = (bool(*)(auth_info_t*, auth_info_t *))complies;
590
598
        this->public.merge = (void(*)(auth_info_t*, auth_info_t *other))merge;
 
599
        this->public.purge = (void(*)(auth_info_t*))purge;
591
600
        this->public.equals = (bool(*)(auth_info_t*, auth_info_t *other))equals;
592
601
        this->public.destroy = (void(*)(auth_info_t*))destroy;
593
602