X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fgssd%2Fcontext.c;h=7757a7700d14dd7fbe07f9878d6d79f514467156;hp=4bab3e7955101bd616b014b0a3f2229902b172bb;hb=051eb4863cf880f0349a1de44517f9c99a9c5bd4;hpb=2ca793c93c09d0bc180b8eed9819206fd42aff21 diff --git a/utils/gssd/context.c b/utils/gssd/context.c index 4bab3e7..7757a77 100644 --- a/utils/gssd/context.c +++ b/utils/gssd/context.c @@ -28,7 +28,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include +#endif /* HAVE_CONFIG_H */ + #include #include #include @@ -41,16 +44,13 @@ #include "context.h" int -serialize_context_for_kernel(gss_ctx_id_t ctx, +serialize_context_for_kernel(gss_ctx_id_t *ctx, gss_buffer_desc *buf, - gss_OID mech) + gss_OID mech, + int32_t *endtime) { if (g_OID_equal(&krb5oid, mech)) - return serialize_krb5_ctx(ctx, buf); -#ifdef HAVE_SPKM3_H - else if (g_OID_equal(&spkm3oid, mech)) - return serialize_spkm3_ctx(ctx, buf); -#endif + return serialize_krb5_ctx(ctx, buf, endtime); else { printerr(0, "ERROR: attempting to serialize context with " "unknown/unsupported mechanism oid\n");