diff options
| author | Greg Hudson <ghudson@mit.edu> | 2014-03-10 23:01:40 -0400 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2014-03-18 11:58:50 -0400 |
| commit | 23a378046bd8122839e501b3e47bb807b66e1c03 (patch) | |
| tree | 1bcbee8c712ef83f410bbd7f2a7ee37d1792cde7 /src/util | |
| parent | 40b105e2e6637d370025b4433dc9e1bda5d3950a (diff) | |
| download | krb5-23a378046bd8122839e501b3e47bb807b66e1c03.tar.gz krb5-23a378046bd8122839e501b3e47bb807b66e1c03.tar.xz krb5-23a378046bd8122839e501b3e47bb807b66e1c03.zip | |
Improve internal API for GSS sequence numbers
Use an opaque structure type instead of a void pointer for the
sequence number state. Rename all functions to use a g_seqstate
prefix rather than a mix of g_order and g_queue. Remove the
unneccessary indirection from the state object parameter in
g_seqstate_check and g_seqstate_free. Return OM_uint32 where we
return a GSS major code, long where we return an errno value, and void
where we can't fail.
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/gss-kernel-lib/kernel_gss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/gss-kernel-lib/kernel_gss.c b/src/util/gss-kernel-lib/kernel_gss.c index f33b83db7..f7a6ae170 100644 --- a/src/util/gss-kernel-lib/kernel_gss.c +++ b/src/util/gss-kernel-lib/kernel_gss.c @@ -125,7 +125,7 @@ import_lucid_sec_context_v1(const gss_krb5_lucid_context_v1_t *lctx, * the protocol needs replay or sequence protection. Assume we don't * (because RPCSEC_GSS doesn't). */ - g_order_init(&gctx->seqstate, gctx->seq_recv, 0, 0, gctx->proto); + g_seqstate_init(&gctx->seqstate, gctx->seq_recv, 0, 0, gctx->proto); *context_handle_out = (gss_ctx_id_t)gctx; gctx = NULL; @@ -174,7 +174,7 @@ krb5_gss_delete_sec_context(OM_uint32 *minor_status, return GSS_S_COMPLETE; ctx = (krb5_gss_ctx_id_t)*context_handle; - g_order_free(&ctx->seqstate); + g_seqstate_free(ctx->seqstate); krb5_k_free_key(NULL, ctx->enc); krb5_k_free_key(NULL, ctx->seq); krb5_k_free_key(NULL, ctx->subkey); |
