summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/generic/util_token.c
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2006-05-09 11:31:02 +0000
committerEzra Peisach <epeisach@mit.edu>2006-05-09 11:31:02 +0000
commit55813dc64944fa86b9da65ece7ab8cc6a1c6df74 (patch)
tree914630fde015068eb29ff26077d0eb5c3788a7d8 /src/lib/gssapi/generic/util_token.c
parent6a6755f489101f02e4d79cb36c5701c3a40f1c12 (diff)
downloadkrb5-55813dc64944fa86b9da65ece7ab8cc6a1c6df74.tar.gz
krb5-55813dc64944fa86b9da65ece7ab8cc6a1c6df74.tar.xz
krb5-55813dc64944fa86b9da65ece7ab8cc6a1c6df74.zip
Cleanup a number of cast away from const warnings in gssapi
Change internal token handling and oid handling functions to take a const style gss_OID. In the krb5 dir remove casting. This is the start of fixes in this arena. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17987 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi/generic/util_token.c')
-rw-r--r--src/lib/gssapi/generic/util_token.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/gssapi/generic/util_token.c b/src/lib/gssapi/generic/util_token.c
index 6277e942a2..7b8dfed223 100644
--- a/src/lib/gssapi/generic/util_token.c
+++ b/src/lib/gssapi/generic/util_token.c
@@ -133,7 +133,7 @@ static int der_read_length(buf, bufsize)
/* returns the length of a token, given the mech oid and the body size */
unsigned int g_token_size(mech, body_size)
- gss_OID mech;
+ const gss_OID_desc * mech;
unsigned int body_size;
{
/* set body_size to sequence contents size */
@@ -145,7 +145,7 @@ unsigned int g_token_size(mech, body_size)
be the right size. buf is advanced past the token header */
void g_make_token_header(mech, body_size, buf, tok_type)
- gss_OID mech;
+ const gss_OID_desc * mech;
unsigned int body_size;
unsigned char **buf;
int tok_type;
@@ -172,7 +172,7 @@ void g_make_token_header(mech, body_size, buf, tok_type)
gss_int32 g_verify_token_header(mech, body_size, buf_in, tok_type, toksize_in,
wrapper_required)
- gss_OID mech;
+ const gss_OID_desc * mech;
unsigned int *body_size;
unsigned char **buf_in;
int tok_type;