gss: fix import/export of accumulating contexts

gss_{import,export}_sec_context did not work with partially accumulating
contexts, where the initial context token had not been completely accumulated,

Further, in gss_import_sec_context(), ctx->gc_input.value was not allocated to
a buffer sufficiently large to accumulate the target length.
This commit is contained in:
Luke Howard
2021-08-08 14:45:13 +10:00
parent 3b1f9f0a3f
commit 06232dfcce
4 changed files with 64 additions and 74 deletions

View File

@@ -135,6 +135,7 @@ ${context} \
--mech-type=spnego \
--ret-mech-type=krb5 \
--name-type=hostbased-service \
--export-import-context \
host@host.test.h5l.se || \
{ exitcode=1 ; echo test failed; }
@@ -145,6 +146,7 @@ ${context} \
--mech-type=spnego \
--ret-mech-type=krb5 \
--name-type=hostbased-service \
--export-import-context \
host@host.test.h5l.se || \
{ exitcode=1 ; echo test failed; }