gss-clie.c: turned const_gss_OID into const gss_OID.
authorTheodore Tso <tytso@mit.edu>
Sat, 23 Sep 1995 03:19:15 +0000 (03:19 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 23 Sep 1995 03:19:15 +0000 (03:19 +0000)
gss-misc.c: needed more includes.
gss.c: needed more includes.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6837 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/gss/changelo
src/windows/gss/gss-clie.c
src/windows/gss/gss-misc.c
src/windows/gss/gss.c

index 174327a7c6820685aa2e11eace721ec9b9034f4d..60ae643f7cdd4d8bc07bfb7fd4717666369f7641 100644 (file)
@@ -1,3 +1,9 @@
+Wed Sep 13 11:07:45 1995 Keith Vetter (keithv@fusion.com)
+
+       * gss-clie.c: turned const_gss_OID into const gss_OID.
+       * gss-misc.c: needed more includes.
+       * gss.c: needed more includes.
+
 Fri Apr 28 17:07:01 1995 Keith Vetter (keithv@fusion.com)
 
        * gss-misc.c: bug with reading 4 bytes into a 2 byte entity.
index 696b49a2e776619308e387727a6c4e54006d8938..3a6c342663c526e2d87fb9e5b57ee6a1e45e4b58 100644 (file)
@@ -29,10 +29,10 @@ static const gss_OID_desc oids[] = {
    {10, "\052\206\110\206\367\022\001\002\001\004"},
 };
 
-const_gss_OID gss_nt_user_name = oids+0;
-const_gss_OID gss_nt_machine_uid_name = oids+1;
-const_gss_OID gss_nt_string_uid_name = oids+2;
-const_gss_OID gss_nt_service_name = oids+3;
+const gss_OID_desc * gss_nt_user_name = oids+0;
+const gss_OID_desc * gss_nt_machine_uid_name = oids+1;
+const gss_OID_desc * gss_nt_string_uid_name = oids+2;
+const gss_OID_desc * gss_nt_service_name = oids+3;
 
 int
 gss (char *host, char *name, char *msg, int port)
@@ -212,7 +212,7 @@ client_establish_context (int s, char *sname, gss_ctx_id_t *gss_context)
     send_tok.value = sname;
     send_tok.length = strlen(sname) + 1;
     maj_stat = gss_import_name(&min_stat, &send_tok,
-        gss_nt_service_name, &target_name);
+        (gss_OID) gss_nt_service_name, &target_name);
     if (maj_stat != GSS_S_COMPLETE) {
         display_status("parsing name", maj_stat, min_stat);
         return -1;
index 592ecc7c0d37fd27bcf0ae24d83e1bfb9308a073..8cc27c22cb9e9b7917746a13e0894eb31e1304b7 100644 (file)
  * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  * PERFORMANCE OF THIS SOFTWARE.
  */
-
 #include "gss.h"
+#include <stdio.h>
 #include <string.h>
 #include <errno.h>
+#include <stdlib.h>
 
 /*+
  * Function: send_token
@@ -161,7 +162,7 @@ static void
 display_status_1(char *m, OM_uint32 code, int type) {
     OM_uint32 maj_stat, min_stat;
     gss_buffer_desc msg;
-    int msg_ctx;
+    OM_uint32 msg_ctx;
      
     msg_ctx = 0;
     while (1) {
index 9708a8568e4bfff31c4d56fdca50eb40974fdfed..ea7782f093a9c7a5ee11c2b5329d01b1943069c2 100644 (file)
@@ -8,6 +8,7 @@
 ***************************************************************************/
 #include <windows.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include "gss.h"
 
 #define GSS_CONNECT_NAME            102