Rename gss_eap to gssEap in calling functions
authorMark Donnelly <mark@painless-security.com>
Fri, 5 Dec 2014 19:21:38 +0000 (14:21 -0500)
committerMark Donnelly <mark@painless-security.com>
Fri, 5 Dec 2014 19:21:38 +0000 (14:21 -0500)
chrome/test/test.html
navigator.gssweb.js

index 22bfde2..7896845 100644 (file)
       }
 
       function doImportName() {
-        gss = gss || new navigator.gss_eap({
+        gss = gss || new navigator.gssEap({
           appTag: "TestApp"
         });
         gss.error = function(major, minor, errMsg, appTag) 
       } // doImportName
 
       function doDisplayName() {
-        gss = gss || new navigator.gss_eap({
+        gss = gss || new navigator.gssEap({
           appTag: "TestApp"
         });
         gss.error = function(major, minor, errMsg, appTag) 
 
 
       function doAcquireCred() {
-        gss = gss || new navigator.gss_eap({
+        gss = gss || new navigator.gssEap({
           appTag: "TestApp"
         });
         gss.error = function(major, minor, errMsg, appTag) 
        *  Call the init_sec_context routine
        ********************************************************/
       function doInitSecContext() {
-        gss = gss || new navigator.gss_eap({
+        gss = gss || new navigator.gssEap({
           appTag: "TestApp",
         });
         gss.error = function(major, minor, errMsg, appTag) 
index 3027f97..9d773cc 100644 (file)
@@ -17,9 +17,8 @@ var GSSWeb = (function () {
     this.serverToken = "";
     this.clientCred = "";
     this.xhr = new XMLHttpRequest();
-    this.xhr.onreadystatechange = this.recvTokenFromServer.bind(this);
 
-    this.gss = new navigator.gss_eap({
+    this.gss = new navigator.gssEap({
       appTag: this.appTag,
       error: this.handleGSSError.bind(this)
     });
@@ -144,6 +143,7 @@ var GSSWeb = (function () {
       'Content-Type', 
       'application/x-www-form-urlencoded'
     );
+    this.xhr.onreadystatechange = this.recvTokenFromServer.bind(this);
     this.xhr.send(msg);
   };