Utility functions to move allocations from k5buf/krb5_data to gss_buffer_t
authorSam Hartman <hartmans@mit.edu>
Fri, 14 Oct 2011 14:40:05 +0000 (14:40 +0000)
committerSam Hartman <hartmans@mit.edu>
Fri, 14 Oct 2011 14:40:05 +0000 (14:40 +0000)
commit3ab619b8ffa9337498e49caa8e75f6e03a56e71c
tree9aab3df8aa84f628fc73bc3adc102194caea9878
parent9493aefa8abc949ec83792de8039f09f6d664c50
Utility functions to move allocations from k5buf/krb5_data to gss_buffer_t

On Unix, these simply move the buffer pointer, but on windows they need to
reallocated with gssalloc_malloc and coied since the gss_buffer_t may need
to be freed in a separate module with potentially mismatched c runtime.

Also fix a mismatched parameter warning in generic_gss_copy_oid_set().

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25331 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/gssapi/generic/gssapiP_generic.h
src/lib/gssapi/krb5/gssapiP_krb5.h