svn rev #18418: branches/krb5-1-5/ src/lib/gssapi/mechglue/

tlyu@MIT.EDU tlyu at MIT.EDU
Mon Aug 7 20:17:16 EDT 2006


Commit By: tlyu
Log Message: 
ticket: 4063
version_fixed: 1.5.1

pull up r18417 from trunk

 r18417 at cathode-dark-space:  tlyu | 2006-08-07 19:33:39 -0400
 ticket: 4063
 tags: pullup
 
 	* src/lib/gssapi/mechglue/mglueP.h: Add loopback field to opaque
 	structs of gss_ctx_id_t, gss_name_t, gss_cred_id_t to catch some
 	application programming errors.  Add new macro GSSINT_CHK_LOOP()
 	which returns non-zero if loopback field doesn't point to itself.
 
 	* src/lib/gssapi/mechglue/g_accept_sec_context.c
 	(gss_accept_sec_context):
 	* src/lib/gssapi/mechglue/g_acquire_cred.c (gss_add_cred) 
 	(gss_acquire_cred):
 	* src/lib/gssapi/mechglue/g_delete_sec_context.c
 	(gss_delete_sec_context):
 	* src/lib/gssapi/mechglue/g_glue.c
 	(gssint_convert_name_to_union_name):
 	* src/lib/gssapi/mechglue/g_imp_name.c (gss_import_name):
 	* src/lib/gssapi/mechglue/g_imp_sec_context.c
 	(gss_import_sec_context):
 	* src/lib/gssapi/mechglue/g_init_sec_context.c
 	(gss_init_sec_context): Set loopback pointers.
 
 	* src/lib/gssapi/mechglue/g_delete_sec_context.c
 	(gss_delete_sec_context):
 	* src/lib/gssapi/mechglue/g_rel_cred.c (gss_release_cred):
 	* src/lib/gssapi/mechglue/g_rel_name.c (gss_release_name): Call
 	GSSINT_CHK_LOOP() to validate loopback pointer.
 




Changed Files:
_U  branches/krb5-1-5/
U   branches/krb5-1-5/src/lib/gssapi/mechglue/g_accept_sec_context.c
U   branches/krb5-1-5/src/lib/gssapi/mechglue/g_acquire_cred.c
U   branches/krb5-1-5/src/lib/gssapi/mechglue/g_delete_sec_context.c
U   branches/krb5-1-5/src/lib/gssapi/mechglue/g_dup_name.c
U   branches/krb5-1-5/src/lib/gssapi/mechglue/g_imp_name.c
U   branches/krb5-1-5/src/lib/gssapi/mechglue/g_imp_sec_context.c
U   branches/krb5-1-5/src/lib/gssapi/mechglue/g_init_sec_context.c
U   branches/krb5-1-5/src/lib/gssapi/mechglue/g_rel_cred.c
U   branches/krb5-1-5/src/lib/gssapi/mechglue/g_rel_name.c
U   branches/krb5-1-5/src/lib/gssapi/mechglue/mglueP.h



More information about the cvs-krb5 mailing list