 689f1c9de2
			
		
	
	
	689f1c9de2
	
	
	
		
			
			While tracking down the MAX_AH_AUTH_LEN crash in an old kernel I thought that this limit was rather arbitrary and we should just get rid of it. In fact it seems that we've already done all the work needed to remove it apart from actually removing it. This limit was there in order to limit stack usage. Since we've already switched over to allocating scratch space using kmalloc, there is no longer any need to limit the authentication length. This patch kills all references to it, including the BUG_ONs that led me here. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			343 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			343 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _NET_AH_H
 | |
| #define _NET_AH_H
 | |
| 
 | |
| #include <linux/skbuff.h>
 | |
| 
 | |
| struct crypto_ahash;
 | |
| 
 | |
| struct ah_data {
 | |
| 	int			icv_full_len;
 | |
| 	int			icv_trunc_len;
 | |
| 
 | |
| 	struct crypto_ahash	*ahash;
 | |
| };
 | |
| 
 | |
| struct ip_auth_hdr;
 | |
| 
 | |
| static inline struct ip_auth_hdr *ip_auth_hdr(const struct sk_buff *skb)
 | |
| {
 | |
| 	return (struct ip_auth_hdr *)skb_transport_header(skb);
 | |
| }
 | |
| 
 | |
| #endif
 |