fix gss_common.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3747 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
#include "test_locl.h"
|
#include "test_locl.h"
|
||||||
#include <gssapi.h>
|
#include <gssapi.h>
|
||||||
|
#include "gss_common.h"
|
||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -38,9 +38,5 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
#include "test_locl.h"
|
|
||||||
#include <gssapi.h>
|
|
||||||
RCSID("$Id$");
|
|
||||||
|
|
||||||
void write_token (int sock, gss_buffer_t buf);
|
void write_token (int sock, gss_buffer_t buf);
|
||||||
void read_token (int sock, gss_buffer_t buf);
|
void read_token (int sock, gss_buffer_t buf);
|
||||||
|
@@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
#include "test_locl.h"
|
#include "test_locl.h"
|
||||||
#include <gssapi.h>
|
#include <gssapi.h>
|
||||||
|
#include "gss_common.h"
|
||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
#include "test_locl.h"
|
#include "test_locl.h"
|
||||||
#include <gssapi.h>
|
#include <gssapi.h>
|
||||||
|
#include "gss_common.h"
|
||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@@ -100,7 +101,8 @@ proto (int sock, const char *service)
|
|||||||
if (GSS_ERROR(maj_stat))
|
if (GSS_ERROR(maj_stat))
|
||||||
abort ();
|
abort ();
|
||||||
|
|
||||||
printf ("User is `%.*s'\n", name_token.length, name_token.value);
|
printf ("User is `%.*s'\n", (int)name_token.length,
|
||||||
|
(char *)name_token.value);
|
||||||
|
|
||||||
/* gss_verify_mic */
|
/* gss_verify_mic */
|
||||||
|
|
||||||
@@ -115,7 +117,8 @@ proto (int sock, const char *service)
|
|||||||
if (GSS_ERROR(maj_stat))
|
if (GSS_ERROR(maj_stat))
|
||||||
abort ();
|
abort ();
|
||||||
|
|
||||||
printf ("gss_verify_mic: %.*s\n", input_token->length, input_token->value);
|
printf ("gss_verify_mic: %.*s\n", (int)input_token->length,
|
||||||
|
(char *)input_token->value);
|
||||||
|
|
||||||
/* gss_unwrap */
|
/* gss_unwrap */
|
||||||
|
|
||||||
@@ -130,7 +133,8 @@ proto (int sock, const char *service)
|
|||||||
if(GSS_ERROR(maj_stat))
|
if(GSS_ERROR(maj_stat))
|
||||||
abort ();
|
abort ();
|
||||||
|
|
||||||
printf ("gss_unwrap: %.*s\n", output_token->length, output_token->value);
|
printf ("gss_unwrap: %.*s\n", (int)output_token->length,
|
||||||
|
(char *)output_token->value);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user