rename find_buffer

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25289 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-06-23 03:45:56 +00:00
parent 2ca3492e42
commit 8be9f44602

View File

@@ -197,9 +197,8 @@ rrc_rotate(void *data, size_t len, uint16_t rrc, krb5_boolean unrotate)
return 0; return 0;
} }
gss_iov_buffer_desc *
static gss_iov_buffer_desc * _gk_find_buffer(gss_iov_buffer_desc *iov, int iov_count, OM_uint32 type)
find_buffer(gss_iov_buffer_desc *iov, int iov_count, OM_uint32 type)
{ {
int i; int i;
@@ -252,7 +251,7 @@ _gssapi_wrap_cfx_iov(OM_uint32 *minor_status,
krb5_crypto_iov *data = NULL; krb5_crypto_iov *data = NULL;
int paddingoffset = 0; int paddingoffset = 0;
header = find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_HEADER); header = _gk_find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_HEADER);
if (header == NULL) { if (header == NULL) {
*minor_status = EINVAL; *minor_status = EINVAL;
return GSS_S_FAILURE; return GSS_S_FAILURE;
@@ -260,13 +259,13 @@ _gssapi_wrap_cfx_iov(OM_uint32 *minor_status,
krb5_crypto_length(context, ctx->crypto, KRB5_CRYPTO_TYPE_PADDING, &padlength); krb5_crypto_length(context, ctx->crypto, KRB5_CRYPTO_TYPE_PADDING, &padlength);
padding = find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_PADDING); padding = _gk_find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_PADDING);
if (padlength != 0 && padding == NULL) { if (padlength != 0 && padding == NULL) {
*minor_status = EINVAL; *minor_status = EINVAL;
return GSS_S_FAILURE; return GSS_S_FAILURE;
} }
trailer = find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER); trailer = _gk_find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER);
if (conf_req_flag) { if (conf_req_flag) {
ec = padlength; ec = padlength;
@@ -634,7 +633,7 @@ _gssapi_unwrap_cfx_iov(OM_uint32 *minor_status,
*minor_status = 0; *minor_status = 0;
header = find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_HEADER); header = _gk_find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_HEADER);
if (header == NULL) { if (header == NULL) {
*minor_status = EINVAL; *minor_status = EINVAL;
return GSS_S_FAILURE; return GSS_S_FAILURE;
@@ -643,7 +642,7 @@ _gssapi_unwrap_cfx_iov(OM_uint32 *minor_status,
if (header->buffer.length < sizeof(*token)) /* we check exact below */ if (header->buffer.length < sizeof(*token)) /* we check exact below */
return GSS_S_DEFECTIVE_TOKEN; return GSS_S_DEFECTIVE_TOKEN;
trailer = find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER); trailer = _gk_find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER);
token = (gss_cfx_wrap_token)header->buffer.value; token = (gss_cfx_wrap_token)header->buffer.value;