gss_import_sec_context/gss_export_sec_context
[mech_eap.orig] / inquire_sec_context_by_oid.c
index 70e923b..93ea808 100644 (file)
@@ -43,8 +43,8 @@ inquireSessionKey(OM_uint32 *minor,
     gss_buffer_desc buf;
     gss_OID_desc oid;
 
-    buf.length = ctx->rfc3961Key.length;
-    buf.value = ctx->rfc3961Key.contents;
+    buf.length = KRB_KEY_LENGTH(&ctx->rfc3961Key);
+    buf.value = KRB_KEY_DATA(&ctx->rfc3961Key);
 
     major = gss_add_buffer_set_member(minor, &buf, dataSet);
     if (GSS_ERROR(major))