summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/generic/util_token.c
diff options
context:
space:
mode:
authorKeith Vetter <keithv@fusion.com>1995-02-21 05:57:26 +0000
committerKeith Vetter <keithv@fusion.com>1995-02-21 05:57:26 +0000
commit878c7c76b952944f16dcdd9a0f0907b23c33a6f5 (patch)
treec07171f43e65ab59d8fe4b4685984e1c6ebe90a7 /src/lib/gssapi/generic/util_token.c
parent59de610ba14f72cb8e431415a1eff9ed5977130f (diff)
downloadkrb5-878c7c76b952944f16dcdd9a0f0907b23c33a6f5.tar.gz
krb5-878c7c76b952944f16dcdd9a0f0907b23c33a6f5.tar.xz
krb5-878c7c76b952944f16dcdd9a0f0907b23c33a6f5.zip
PC'fied gssapi directories. Mostly changing Makefile.in and adding the
windows INTERFACE keyword to functions. A few int/long fixes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4959 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi/generic/util_token.c')
-rw-r--r--src/lib/gssapi/generic/util_token.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/gssapi/generic/util_token.c b/src/lib/gssapi/generic/util_token.c
index 483126c5e..424125d5d 100644
--- a/src/lib/gssapi/generic/util_token.c
+++ b/src/lib/gssapi/generic/util_token.c
@@ -111,7 +111,7 @@ static int der_read_length(buf, bufsize)
/* returns the length of a token, given the mech oid and the body size */
-int g_token_size(mech, body_size)
+int INTERFACE g_token_size(mech, body_size)
const_gss_OID mech;
unsigned int body_size;
{
@@ -123,7 +123,7 @@ int g_token_size(mech, body_size)
/* fills in a buffer with the token header. The buffer is assumed to
be the right size. buf is advanced past the token header */
-void g_make_token_header(mech, body_size, buf, tok_type)
+void INTERFACE g_make_token_header(mech, body_size, buf, tok_type)
const_gss_OID mech;
int body_size;
unsigned char **buf;
@@ -133,7 +133,7 @@ void g_make_token_header(mech, body_size, buf, tok_type)
der_write_length(buf, 4 + mech->length + body_size);
*(*buf)++ = 0x06;
*(*buf)++ = (unsigned char) mech->length;
- TWRITE_STR(*buf, mech->elements, mech->length);
+ TWRITE_STR(*buf, mech->elements, ((int) mech->length));
*(*buf)++ = (unsigned char) ((tok_type>>8)&0xff);
*(*buf)++ = (unsigned char) (tok_type&0xff);
}
@@ -142,7 +142,7 @@ void g_make_token_header(mech, body_size, buf, tok_type)
leaving buf advanced past the token header, and setting body_size
to the number of remaining bytes */
-int g_verify_token_header(mech, body_size, buf, tok_type, toksize)
+int INTERFACE g_verify_token_header(mech, body_size, buf, tok_type, toksize)
const_gss_OID mech;
int *body_size;
unsigned char **buf;