~ubuntu-branches/ubuntu/dapper/freeradius/dapper-updates

« back to all changes in this revision

Viewing changes to src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c

  • Committer: Bazaar Package Importer
  • Author(s): Paul Hampson
  • Date: 2005-06-27 03:13:48 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050627031348-tu393q64vdle45ah
Tags: 1.0.4-2
* Fix my email address in the dpatches
* Remove extraneous ^g from man/man5/clients.conf.5
  - Created 04_bonus_control_code_in_clients_conf_5
* Correct handing of parameterless call of init script, and
  general init script neatening
  (Thanks to Derrick Karpo)
  Closes: #315438
* Correctly leave out the .in files in the examples
* Correctly use debhelper after splitting binary make target
  into binary-arch and binary-indep.
  (Thanks to Kurt Roeckx for actually hitting the bug)
  Closes: #315770
* Steal fix from CVS release_1_0 tree for rlm_sql quoted values.
  (Thanks to Nicolas Baradakis for the fix)
  - Upstream bugzilla #242, src/modules/rlm_sql/sql.c 1.79.2.2
  - Created 05_unbreak_quoted_sql_values

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * rlm_eap_ttls.c  contains the interfaces that are called from eap
3
3
 *
4
 
 * Version:     $Id: ttls.c,v 1.17 2004/04/19 20:21:19 aland Exp $
 
4
 * Version:     $Id: ttls.c,v 1.17.2.2 2005/06/03 17:13:58 aland Exp $
5
5
 *
6
6
 *   This program is free software; you can redistribute it and/or modify
7
7
 *   it under the terms of the GNU General Public License as published by
639
639
                         *      tunneled user!
640
640
                         */
641
641
                        if (t->use_tunneled_reply) {
 
642
                                pairdelete(&reply->vps, PW_PROXY_STATE);
642
643
                                pairadd(&request->reply->vps, reply->vps);
643
644
                                reply->vps = NULL;
644
645
                        }
710
711
 
711
712
        default:
712
713
                DEBUG2("  TTLS: Unknown RADIUS packet type %d: rejecting tunneled user", reply->code);
713
 
                rcode = RLM_MODULE_REJECT;
 
714
                rcode = RLM_MODULE_INVALID;
714
715
                break;
715
716
        }
716
717
 
817
818
        switch (rcode) {
818
819
        case RLM_MODULE_REJECT:
819
820
                DEBUG2("  TTLS: Reply was rejected");
820
 
                return 0;
 
821
                break;
821
822
 
822
823
        case RLM_MODULE_HANDLED:
823
824
                DEBUG2("  TTLS: Reply was handled");