Changeset 11163


Ignore:
Timestamp:
12/10/08 10:40:22 (4 years ago)
Author:
BrainSlayer
Message:

phase2 authentication support

Location:
src/router
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/validate/webs.c

    r11014 r11163  
    749749    copytonv( wp, "%s_tls8021xuser", prefix ); 
    750750    copytonv( wp, "%s_tls8021xpasswd", prefix ); 
     751    copytonv( wp, "%s_tls8021xphase2", prefix ); 
    751752    copytonv( wp, "%s_tls8021xca", prefix ); 
    752753    copytonv( wp, "%s_tls8021xpem", prefix ); 
     
    754755    copytonv( wp, "%s_peap8021xuser", prefix ); 
    755756    copytonv( wp, "%s_peap8021xpasswd", prefix ); 
     757    copytonv( wp, "%s_peap8021xphase2", prefix ); 
    756758    copytonv( wp, "%s_peap8021xca", prefix ); 
    757759    copytonv( wp, "%s_ttls8021xuser", prefix ); 
    758760    copytonv( wp, "%s_ttls8021xpasswd", prefix ); 
     761    copytonv( wp, "%s_ttls8021xphase2", prefix ); 
    759762    copytonv( wp, "%s_ttls8021xca", prefix ); 
    760763    copytonv( wp, "%s_leap8021xuser", prefix ); 
    761764    copytonv( wp, "%s_leap8021xpasswd", prefix ); 
     765    copytonv( wp, "%s_leap8021xphase2", prefix ); 
    762766 
    763767#endif 
  • src/router/httpd/visuals/dd-wrt.c

    r11128 r11163  
    46464646               "<input name=\"%s_ttls8021xpasswd\" type=\"password\" size=\"20\" maxlength=\"79\" value=\"%s\" /></div>\n", 
    46474647               prefix, nvram_prefix_get( "ttls8021xpasswd", prefix ) ); 
     4648 
     4649    websWrite( wp, "<div class=\"setting\">\n" ); 
     4650    websWrite( wp, 
     4651               "<div class=\"label\"><script type=\"text/javascript\">Capture(sec80211x.phase2)</script></div>\n" ); 
     4652    websWrite( wp, 
     4653               "<input name=\"%s_ttls8021xphase2\" size=\"20\" maxlength=\"79\" value=\"%s\" /></div>\n", 
     4654               prefix, nvram_prefix_get( "ttls8021xphase2", prefix ) ); 
     4655 
     4656 
    46484657    websWrite( wp, "<div class=\"setting\">\n" ); 
    46494658    websWrite( wp, 
     
    46754684               "<input name=\"%s_peap8021xpasswd\" type=\"password\" size=\"20\" maxlength=\"79\" value=\"%s\" /></div>\n", 
    46764685               prefix, nvram_prefix_get( "peap8021xpasswd", prefix ) ); 
     4686 
     4687 
     4688 
     4689    websWrite( wp, "<div class=\"setting\">\n" ); 
     4690    websWrite( wp, 
     4691               "<div class=\"label\"><script type=\"text/javascript\">Capture(sec80211x.phase2)</script></div>\n" ); 
     4692    websWrite( wp, 
     4693               "<input name=\"%s_peap8021xphase2\" size=\"20\" maxlength=\"79\" value=\"%s\" /></div>\n", 
     4694               prefix, nvram_prefix_get( "peap8021xphase2", prefix ) ); 
     4695 
     4696 
    46774697    websWrite( wp, "<div class=\"setting\">\n" ); 
    46784698    websWrite( wp, 
     
    47034723               "<input name=\"%s_leap8021xpasswd\" type=\"password\" size=\"20\" maxlength=\"79\" value=\"%s\" /></div>\n", 
    47044724               prefix, nvram_prefix_get( "leap8021xpasswd", prefix ) ); 
     4725 
     4726    websWrite( wp, "<div class=\"setting\">\n" ); 
     4727    websWrite( wp, 
     4728               "<div class=\"label\"><script type=\"text/javascript\">Capture(sec80211x.phase2)</script></div>\n" ); 
     4729    websWrite( wp, 
     4730               "<input name=\"%s_leap8021xphase2\" size=\"20\" maxlength=\"79\" value=\"%s\" /></div>\n", 
     4731               prefix, nvram_prefix_get( "leap8021xphase2", prefix ) ); 
     4732 
     4733 
     4734 
    47054735    websWrite( wp, "</div>\n" ); 
    47064736 
     
    47194749               "<input name=\"%s_tls8021xpasswd\" type=\"password\" size=\"20\" maxlength=\"79\" value=\"%s\" /></div>\n", 
    47204750               prefix, nvram_prefix_get( "tls8021xpasswd", prefix ) ); 
     4751 
     4752    websWrite( wp, "<div class=\"setting\">\n" ); 
     4753    websWrite( wp, 
     4754               "<div class=\"label\"><script type=\"text/javascript\">Capture(sec80211x.phase2)</script></div>\n" ); 
     4755    websWrite( wp, 
     4756               "<input name=\"%s_tls8021xphase2\" size=\"20\" maxlength=\"79\" value=\"%s\" /></div>\n", 
     4757               prefix, nvram_prefix_get( "tls8021xphase2", prefix ) ); 
     4758 
     4759 
     4760 
    47214761 
    47224762    websWrite( wp, "<div class=\"setting\">\n" ); 
  • src/router/kromo/dd-wrt/lang_pack/english.js

    r11144 r11163  
    16471647sec80211x.servercertif="Public Server Certificate"; 
    16481648sec80211x.clientcertif="Client Certificate"; 
     1649sec80211x.phase2="Phase2 Authentication"; 
    16491650 
    16501651//help container 
  • src/router/services/networking/brcm_80211x.c

    r10928 r11163  
    167167                     nvram_prefix_get( "tls8021xpasswd", prefix ) ); 
    168168            fprintf( fp, "\teapol_flags=3\n" ); 
     169            if( strlen( nvram_nget( "%s_tls8021xphase2", prefix ) ) > 0 ) 
     170            { 
     171            fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_tls8021xphase2", prefix) ); 
     172            } 
    169173        } 
    170174        if( nvram_prefix_match( "8021xtype", prefix, "peap" ) ) 
     
    185189            write_nvram( psk, ath ); 
    186190            fprintf( fp, "\tca_cert=\"/tmp/%s/ca.pem\"\n", prefix ); 
     191            if( strlen( nvram_nget( "%s_peap8021xphase2", prefix ) ) > 0 ) 
     192            { 
     193            fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_peap8021xphase2", prefix) ); 
     194            } 
    187195        } 
    188196        if( nvram_prefix_match( "8021xtype", prefix, "ttls" ) ) 
     
    205213                fprintf( fp, "\tca_cert=\"/tmp/%s/ca.pem\"\n", prefix ); 
    206214            } 
     215            if( strlen( nvram_nget( "%s_ttls8021xphase2", prefix ) ) > 0 ) 
     216            { 
     217            fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_ttls8021xphase2", prefix) ); 
     218            } 
    207219        } 
    208220        if( nvram_prefix_match( "8021xtype", prefix, "leap" ) ) 
     
    218230            fprintf( fp, "\tpassword=\"%s\"\n", 
    219231                     nvram_prefix_get( "leap8021xpasswd", prefix ) ); 
     232            if( strlen( nvram_nget( "%s_leap8021xphase2", prefix ) ) > 0 ) 
     233            { 
     234            fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_leap8021xphase2", prefix) ); 
     235            } 
    220236        } 
    221237        fprintf( fp, "}\n" ); 
  • src/router/services/networking/madwifi.c

    r11088 r11163  
    319319                     nvram_prefix_get( "tls8021xpasswd", prefix ) ); 
    320320            fprintf( fp, "\teapol_flags=3\n" ); 
     321            if( strlen( nvram_nget( "%s_tls8021xphase2", prefix ) ) > 0 ) 
     322            { 
     323            fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_tls8021xphase2", prefix) ); 
     324            } 
    321325        } 
    322326        if( nvram_prefix_match( "8021xtype", prefix, "peap" ) ) 
     
    337341            write_nvram( psk, ath ); 
    338342            fprintf( fp, "\tca_cert=\"/tmp/%s/ca.pem\"\n", prefix ); 
     343            if( strlen( nvram_nget( "%s_peap8021xphase2", prefix ) ) > 0 ) 
     344            { 
     345            fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_peap8021xphase2", prefix) ); 
     346            } 
    339347        } 
    340348        if( nvram_prefix_match( "8021xtype", prefix, "ttls" ) ) 
     
    356364                write_nvram( psk, ath ); 
    357365                fprintf( fp, "\tca_cert=\"/tmp/%s/ca.pem\"\n", prefix ); 
     366            } 
     367            if( strlen( nvram_nget( "%s_ttls8021xphase2", prefix ) ) > 0 ) 
     368            { 
     369            fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_ttls8021xphase2", prefix) ); 
    358370            } 
    359371        } 
     
    376388            // write_nvram (psk, ath); 
    377389            // fprintf (fp, "\tca_cert=\"/tmp/%s/ca.pem\"\n", prefix); 
     390            if( strlen( nvram_nget( "%s_leap8021xphase2", prefix ) ) > 0 ) 
     391            { 
     392            fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_leap8021xphase2", prefix) ); 
     393            } 
    378394        } 
    379395        fprintf( fp, "}\n" ); 
  • src/router/services/networking/rt2880.c

    r10928 r11163  
    112112                     nvram_prefix_get( "tls8021xpasswd", prefix ) ); 
    113113            fprintf( fp, "\teapol_flags=3\n" ); 
     114            if( strlen( nvram_nget( "%s_tls8021xphase2", prefix ) ) > 0 ) 
     115            { 
     116            fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_tls8021xphase2", prefix) ); 
     117            } 
    114118        } 
    115119        if( nvram_prefix_match( "8021xtype", prefix, "peap" ) ) 
     
    130134            write_nvram( psk, ath ); 
    131135            fprintf( fp, "\tca_cert=\"/tmp/%s/ca.pem\"\n", prefix ); 
     136            if( strlen( nvram_nget( "%s_peap8021xphase2", prefix ) ) > 0 ) 
     137            { 
     138            fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_peap8021xphase2", prefix) ); 
     139            } 
    132140        } 
    133141        if( nvram_prefix_match( "8021xtype", prefix, "ttls" ) ) 
     
    150158                fprintf( fp, "\tca_cert=\"/tmp/%s/ca.pem\"\n", prefix ); 
    151159            } 
     160            if( strlen( nvram_nget( "%s_ttls8021xphase2", prefix ) ) > 0 ) 
     161            { 
     162            fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_ttls8021xphase2", prefix) ); 
     163            } 
    152164        } 
    153165        if( nvram_prefix_match( "8021xtype", prefix, "leap" ) ) 
     
    163175            fprintf( fp, "\tpassword=\"%s\"\n", 
    164176                     nvram_prefix_get( "leap8021xpasswd", prefix ) ); 
     177            if( strlen( nvram_nget( "%s_leap8021xphase2", prefix ) ) > 0 ) 
     178            { 
     179            fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_leap8021xphase2", prefix) ); 
     180            } 
    165181        } 
    166182        fprintf( fp, "}\n" ); 
Note: See TracChangeset for help on using the changeset viewer.