summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/mechglue/g_export_cred.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-02-14 11:41:10 -0500
committerGreg Hudson <ghudson@mit.edu>2013-02-14 11:42:28 -0500
commit6dda284554a869f7fa1e6d2a035df06c97f103ef (patch)
tree6854b38ce7274b914b82b20bfb65eb8130df1ab8 /src/lib/gssapi/mechglue/g_export_cred.c
parent80f53c8b2c745e75dc9d22acba63812d8533c133 (diff)
downloadkrb5-6dda284554a869f7fa1e6d2a035df06c97f103ef.tar.gz
krb5-6dda284554a869f7fa1e6d2a035df06c97f103ef.tar.xz
krb5-6dda284554a869f7fa1e6d2a035df06c97f103ef.zip
Modernize k5buf
Rename the krb5int_buf_ family of functions to use the k5_ prefix for brevity. Reformat some k5buf implementation code to match current practices.
Diffstat (limited to 'src/lib/gssapi/mechglue/g_export_cred.c')
-rw-r--r--src/lib/gssapi/mechglue/g_export_cred.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/gssapi/mechglue/g_export_cred.c b/src/lib/gssapi/mechglue/g_export_cred.c
index de2e98d66..16d1ebef4 100644
--- a/src/lib/gssapi/mechglue/g_export_cred.c
+++ b/src/lib/gssapi/mechglue/g_export_cred.c
@@ -73,7 +73,7 @@ gss_export_cred(OM_uint32 * minor_status, gss_cred_id_t cred_handle,
if (status != GSS_S_COMPLETE)
return status;
- krb5int_buf_init_dynamic(&buf);
+ k5_buf_init_dynamic(&buf);
cred = (gss_union_cred_t) cred_handle;
for (i = 0; i < cred->count; i++) {
@@ -98,21 +98,21 @@ gss_export_cred(OM_uint32 * minor_status, gss_cred_id_t cred_handle,
/* Append the mech OID and token to buf. */
store_32_be(public_oid->length, lenbuf);
- krb5int_buf_add_len(&buf, lenbuf, 4);
- krb5int_buf_add_len(&buf, public_oid->elements, public_oid->length);
+ k5_buf_add_len(&buf, lenbuf, 4);
+ k5_buf_add_len(&buf, public_oid->elements, public_oid->length);
store_32_be(mech_token.length, lenbuf);
- krb5int_buf_add_len(&buf, lenbuf, 4);
- krb5int_buf_add_len(&buf, mech_token.value, mech_token.length);
+ k5_buf_add_len(&buf, lenbuf, 4);
+ k5_buf_add_len(&buf, mech_token.value, mech_token.length);
gss_release_buffer(&tmpmin, &mech_token);
}
- if (krb5int_buf_data(&buf) == NULL) {
+ if (k5_buf_data(&buf) == NULL) {
*minor_status = ENOMEM;
return GSS_S_FAILURE;
}
return k5buf_to_gss(minor_status, &buf, token);
error:
- krb5int_free_buf(&buf);
+ k5_free_buf(&buf);
return status;
}