Authenticated conn between tpqs and tpqc works.
[trust_router.git] / gsscon / gsscon_active.c
index ca7c25e..ff153c2 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, JANET(UK)
+ * Copyright (c) 2012, JANET(UK)
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -52,7 +52,7 @@
  * or implied warranty.
  */
 
-#include "gsscon.h"
+#include <gsscon.h>
 
 /* --------------------------------------------------------------------------- */
 
@@ -211,7 +211,7 @@ int gsscon_active_authenticate (int   inSocket,
 
     majorStatus = GSS_S_CONTINUE_NEEDED;
 
-    gss_OID_desc EAP_OID = { 10, "\x2B\x06\x01\x04\x01\xA9\x4A\x16\x01\x11" };
+    gss_OID_desc EAP_OID = { 9, "\x2B\x06\x01\x05\x05\x0F\x01\x01\x11" };
  
    while (!err && (majorStatus != GSS_S_COMPLETE)) {
         gss_buffer_desc outputToken = { 0, NULL }; /* buffer to send to the server */
@@ -271,7 +271,7 @@ int gsscon_active_authenticate (int   inSocket,
         *outGSSContext = gssContext;
         gssContext = NULL;
     } else {
-        gsscon_print_gss_error (err, "AuthenticateToServer failed"); 
+        gsscon_print_error (err, "AuthenticateToServer failed"); 
     }
 
     if (inputTokenBuffer) { free (inputTokenBuffer); }