gsskrb5: make _gk_allocate_buffer() non static
metze Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
60725fd2f5
commit
1a0423fd3d
@@ -213,8 +213,8 @@ _gk_find_buffer(gss_iov_buffer_desc *iov, int iov_count, OM_uint32 type)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static OM_uint32
|
OM_uint32
|
||||||
allocate_buffer(OM_uint32 *minor_status, gss_iov_buffer_desc *buffer, size_t size)
|
_gk_allocate_buffer(OM_uint32 *minor_status, gss_iov_buffer_desc *buffer, size_t size)
|
||||||
{
|
{
|
||||||
if (buffer->type & GSS_IOV_BUFFER_TYPE_FLAG_ALLOCATED) {
|
if (buffer->type & GSS_IOV_BUFFER_TYPE_FLAG_ALLOCATED) {
|
||||||
if (buffer->buffer.length == size)
|
if (buffer->buffer.length == size)
|
||||||
@@ -343,7 +343,7 @@ _gssapi_wrap_cfx_iov(OM_uint32 *minor_status,
|
|||||||
gsshsize += gsstsize;
|
gsshsize += gsstsize;
|
||||||
gsstsize = 0;
|
gsstsize = 0;
|
||||||
} else if (GSS_IOV_BUFFER_FLAGS(trailer->type) & GSS_IOV_BUFFER_TYPE_FLAG_ALLOCATE) {
|
} else if (GSS_IOV_BUFFER_FLAGS(trailer->type) & GSS_IOV_BUFFER_TYPE_FLAG_ALLOCATE) {
|
||||||
major_status = allocate_buffer(minor_status, trailer, gsstsize);
|
major_status = _gk_allocate_buffer(minor_status, trailer, gsstsize);
|
||||||
if (major_status)
|
if (major_status)
|
||||||
goto failure;
|
goto failure;
|
||||||
} else if (trailer->buffer.length < gsstsize) {
|
} else if (trailer->buffer.length < gsstsize) {
|
||||||
@@ -358,7 +358,7 @@ _gssapi_wrap_cfx_iov(OM_uint32 *minor_status,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (GSS_IOV_BUFFER_FLAGS(header->type) & GSS_IOV_BUFFER_TYPE_FLAG_ALLOCATE) {
|
if (GSS_IOV_BUFFER_FLAGS(header->type) & GSS_IOV_BUFFER_TYPE_FLAG_ALLOCATE) {
|
||||||
major_status = allocate_buffer(minor_status, header, gsshsize);
|
major_status = _gk_allocate_buffer(minor_status, header, gsshsize);
|
||||||
if (major_status != GSS_S_COMPLETE)
|
if (major_status != GSS_S_COMPLETE)
|
||||||
goto failure;
|
goto failure;
|
||||||
} else if (header->buffer.length < gsshsize) {
|
} else if (header->buffer.length < gsshsize) {
|
||||||
|
Reference in New Issue
Block a user