svn rev #23416: branches/fast-negotiate/src/ include/ lib/krb5/krb/
hartmans@MIT.EDU
hartmans at MIT.EDU
Wed Dec 2 11:16:32 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=23416
Commit By: hartmans
Log Message:
Store configuration information about whether FAST is available in the ccache based on FAST negotiation.
Changed Files:
U branches/fast-negotiate/src/include/k5-int.h
U branches/fast-negotiate/src/lib/krb5/krb/fast.c
U branches/fast-negotiate/src/lib/krb5/krb/fast.h
Modified: branches/fast-negotiate/src/include/k5-int.h
===================================================================
--- branches/fast-negotiate/src/include/k5-int.h 2009-12-02 16:16:29 UTC (rev 23415)
+++ branches/fast-negotiate/src/include/k5-int.h 2009-12-02 16:16:32 UTC (rev 23416)
@@ -257,7 +257,9 @@
#define KRB5_CONF_V4_INSTANCE_CONVERT "v4_instance_convert"
#define KRB5_CONF_V4_REALM "v4_realm"
#define KRB5_CONF_ASTERISK "*"
+#define KRB5_CCCONF_FAST_AVAIL "fast_avail"
+
/* Error codes used in KRB_ERROR protocol messages.
Return values of library routines are based on a different error table
(which allows non-ambiguous error codes between subsystems) */
Modified: branches/fast-negotiate/src/lib/krb5/krb/fast.c
===================================================================
--- branches/fast-negotiate/src/lib/krb5/krb/fast.c 2009-12-02 16:16:29 UTC (rev 23415)
+++ branches/fast-negotiate/src/lib/krb5/krb/fast.c 2009-12-02 16:16:32 UTC (rev 23416)
@@ -533,7 +533,7 @@
krb5_error_code krb5int_fast_verify_nego
(krb5_context context, struct krb5int_fast_request_state *state,
krb5_kdc_rep *rep, krb5_data *request,
- krb5_keyblock *decrypting_key)
+ krb5_keyblock *decrypting_key, krb5_boolean *fast_avail)
{
krb5_error_code retval = 0;
krb5_checksum *checksum = NULL;
@@ -559,8 +559,9 @@
if (retval == 0) {
pa = krb5int_find_pa_data(context, rep->enc_part2->enc_padata,
KRB5_PADATA_FX_FAST);
- /*if (pa)
- printf("FAST enabled on KDC\n");*/
+ if (pa)
+ *fast_avail = 1;
+ else *fast_avail = 0;
}
}
if (checksum)
Modified: branches/fast-negotiate/src/lib/krb5/krb/fast.h
===================================================================
--- branches/fast-negotiate/src/lib/krb5/krb/fast.h 2009-12-02 16:16:29 UTC (rev 23415)
+++ branches/fast-negotiate/src/lib/krb5/krb/fast.h 2009-12-02 16:16:32 UTC (rev 23416)
@@ -82,8 +82,9 @@
krb5_error_code krb5int_fast_verify_nego
(krb5_context context, struct krb5int_fast_request_state *state,
krb5_kdc_rep *rep, krb5_data *request,
- krb5_keyblock *decrypting_key);
+ krb5_keyblock *decrypting_key, krb5_boolean *fast_avail);
+
#endif
More information about the cvs-krb5
mailing list