Changeset 11163
- Timestamp:
- 12/10/08 10:40:22 (4 years ago)
- Location:
- src/router
- Files:
-
- 6 edited
-
httpd/validate/webs.c (modified) (2 diffs)
-
httpd/visuals/dd-wrt.c (modified) (4 diffs)
-
kromo/dd-wrt/lang_pack/english.js (modified) (1 diff)
-
services/networking/brcm_80211x.c (modified) (4 diffs)
-
services/networking/madwifi.c (modified) (4 diffs)
-
services/networking/rt2880.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/validate/webs.c
r11014 r11163 749 749 copytonv( wp, "%s_tls8021xuser", prefix ); 750 750 copytonv( wp, "%s_tls8021xpasswd", prefix ); 751 copytonv( wp, "%s_tls8021xphase2", prefix ); 751 752 copytonv( wp, "%s_tls8021xca", prefix ); 752 753 copytonv( wp, "%s_tls8021xpem", prefix ); … … 754 755 copytonv( wp, "%s_peap8021xuser", prefix ); 755 756 copytonv( wp, "%s_peap8021xpasswd", prefix ); 757 copytonv( wp, "%s_peap8021xphase2", prefix ); 756 758 copytonv( wp, "%s_peap8021xca", prefix ); 757 759 copytonv( wp, "%s_ttls8021xuser", prefix ); 758 760 copytonv( wp, "%s_ttls8021xpasswd", prefix ); 761 copytonv( wp, "%s_ttls8021xphase2", prefix ); 759 762 copytonv( wp, "%s_ttls8021xca", prefix ); 760 763 copytonv( wp, "%s_leap8021xuser", prefix ); 761 764 copytonv( wp, "%s_leap8021xpasswd", prefix ); 765 copytonv( wp, "%s_leap8021xphase2", prefix ); 762 766 763 767 #endif -
src/router/httpd/visuals/dd-wrt.c
r11128 r11163 4646 4646 "<input name=\"%s_ttls8021xpasswd\" type=\"password\" size=\"20\" maxlength=\"79\" value=\"%s\" /></div>\n", 4647 4647 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 4648 4657 websWrite( wp, "<div class=\"setting\">\n" ); 4649 4658 websWrite( wp, … … 4675 4684 "<input name=\"%s_peap8021xpasswd\" type=\"password\" size=\"20\" maxlength=\"79\" value=\"%s\" /></div>\n", 4676 4685 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 4677 4697 websWrite( wp, "<div class=\"setting\">\n" ); 4678 4698 websWrite( wp, … … 4703 4723 "<input name=\"%s_leap8021xpasswd\" type=\"password\" size=\"20\" maxlength=\"79\" value=\"%s\" /></div>\n", 4704 4724 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 4705 4735 websWrite( wp, "</div>\n" ); 4706 4736 … … 4719 4749 "<input name=\"%s_tls8021xpasswd\" type=\"password\" size=\"20\" maxlength=\"79\" value=\"%s\" /></div>\n", 4720 4750 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 4721 4761 4722 4762 websWrite( wp, "<div class=\"setting\">\n" ); -
src/router/kromo/dd-wrt/lang_pack/english.js
r11144 r11163 1647 1647 sec80211x.servercertif="Public Server Certificate"; 1648 1648 sec80211x.clientcertif="Client Certificate"; 1649 sec80211x.phase2="Phase2 Authentication"; 1649 1650 1650 1651 //help container -
src/router/services/networking/brcm_80211x.c
r10928 r11163 167 167 nvram_prefix_get( "tls8021xpasswd", prefix ) ); 168 168 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 } 169 173 } 170 174 if( nvram_prefix_match( "8021xtype", prefix, "peap" ) ) … … 185 189 write_nvram( psk, ath ); 186 190 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 } 187 195 } 188 196 if( nvram_prefix_match( "8021xtype", prefix, "ttls" ) ) … … 205 213 fprintf( fp, "\tca_cert=\"/tmp/%s/ca.pem\"\n", prefix ); 206 214 } 215 if( strlen( nvram_nget( "%s_ttls8021xphase2", prefix ) ) > 0 ) 216 { 217 fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_ttls8021xphase2", prefix) ); 218 } 207 219 } 208 220 if( nvram_prefix_match( "8021xtype", prefix, "leap" ) ) … … 218 230 fprintf( fp, "\tpassword=\"%s\"\n", 219 231 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 } 220 236 } 221 237 fprintf( fp, "}\n" ); -
src/router/services/networking/madwifi.c
r11088 r11163 319 319 nvram_prefix_get( "tls8021xpasswd", prefix ) ); 320 320 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 } 321 325 } 322 326 if( nvram_prefix_match( "8021xtype", prefix, "peap" ) ) … … 337 341 write_nvram( psk, ath ); 338 342 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 } 339 347 } 340 348 if( nvram_prefix_match( "8021xtype", prefix, "ttls" ) ) … … 356 364 write_nvram( psk, ath ); 357 365 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) ); 358 370 } 359 371 } … … 376 388 // write_nvram (psk, ath); 377 389 // 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 } 378 394 } 379 395 fprintf( fp, "}\n" ); -
src/router/services/networking/rt2880.c
r10928 r11163 112 112 nvram_prefix_get( "tls8021xpasswd", prefix ) ); 113 113 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 } 114 118 } 115 119 if( nvram_prefix_match( "8021xtype", prefix, "peap" ) ) … … 130 134 write_nvram( psk, ath ); 131 135 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 } 132 140 } 133 141 if( nvram_prefix_match( "8021xtype", prefix, "ttls" ) ) … … 150 158 fprintf( fp, "\tca_cert=\"/tmp/%s/ca.pem\"\n", prefix ); 151 159 } 160 if( strlen( nvram_nget( "%s_ttls8021xphase2", prefix ) ) > 0 ) 161 { 162 fprintf( fp, "\tphase2=\"%s\"\n", nvram_nget("%s_ttls8021xphase2", prefix) ); 163 } 152 164 } 153 165 if( nvram_prefix_match( "8021xtype", prefix, "leap" ) ) … … 163 175 fprintf( fp, "\tpassword=\"%s\"\n", 164 176 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 } 165 181 } 166 182 fprintf( fp, "}\n" );
Note: See TracChangeset
for help on using the changeset viewer.
