gss: order SPNEGO proposed mechs by req_flags
Sort the list of mechanisms proposed by the initiator so that mechanisms are preferred by their advertised support for GSS flags. For example, if GSS_C_MUTUAL_FLAG is requested, a mechanism that offers GSS_C_MA_AUTH_TARG will be preferred over one that doesn't. The flag/mechanism attribute combinations are also assigned a weight (mutual trumps anonymous, for example).
This commit is contained in:
		 Luke Howard
					Luke Howard
				
			
				
					committed by
					
						 Nico Williams
						Nico Williams
					
				
			
			
				
	
			
			
			 Nico Williams
						Nico Williams
					
				
			
						parent
						
							1c74afb01a
						
					
				
				
					commit
					3b7aae7fce
				
			| @@ -132,7 +132,7 @@ send_supported_mechs (OM_uint32 *minor_status, | ||||
|     nt.u.negTokenInit.mechToken = NULL; | ||||
|     nt.u.negTokenInit.negHints = NULL; | ||||
|  | ||||
|     ret = _gss_spnego_indicate_mechtypelist(minor_status, NULL, | ||||
|     ret = _gss_spnego_indicate_mechtypelist(minor_status, GSS_C_NO_NAME, 0, | ||||
| 					    acceptor_approved, ctx, 1, acceptor_cred, | ||||
| 					    &nt.u.negTokenInit.mechTypes, NULL); | ||||
|     if (ret != GSS_S_COMPLETE) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user