Use `gss_krb5_getsomekey'.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4729 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 1997 Kungliga Tekniska H<>gskolan
 | 
					 * Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
 | 
				
			||||||
 * (Royal Institute of Technology, Stockholm, Sweden). 
 | 
					 * (Royal Institute of Technology, Stockholm, Sweden). 
 | 
				
			||||||
 * All rights reserved. 
 | 
					 * All rights reserved. 
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
@@ -85,12 +85,7 @@ OM_uint32 gss_get_mic
 | 
				
			|||||||
  md5_finito (&md5, hash);
 | 
					  md5_finito (&md5, hash);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  memset (&zero, 0, sizeof(zero));
 | 
					  memset (&zero, 0, sizeof(zero));
 | 
				
			||||||
#if 0
 | 
					  gss_krb5_getsomekey(context_handle, &key);
 | 
				
			||||||
  memcpy (&key, context_handle->auth_context->key.keyvalue.data,
 | 
					 | 
				
			||||||
	  sizeof(key));
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
  memcpy (&key, context_handle->auth_context->local_subkey->keyvalue.data,
 | 
					 | 
				
			||||||
	  sizeof(key));
 | 
					 | 
				
			||||||
  des_set_key (&key, schedule);
 | 
					  des_set_key (&key, schedule);
 | 
				
			||||||
  des_cbc_cksum ((des_cblock *)hash,
 | 
					  des_cbc_cksum ((des_cblock *)hash,
 | 
				
			||||||
		 (des_cblock *)hash, sizeof(hash), schedule, &zero);
 | 
							 (des_cblock *)hash, sizeof(hash), schedule, &zero);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 1997 Kungliga Tekniska H<>gskolan
 | 
					 * Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
 | 
				
			||||||
 * (Royal Institute of Technology, Stockholm, Sweden). 
 | 
					 * (Royal Institute of Technology, Stockholm, Sweden). 
 | 
				
			||||||
 * All rights reserved. 
 | 
					 * All rights reserved. 
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
@@ -85,12 +85,7 @@ OM_uint32 gss_get_mic
 | 
				
			|||||||
  md5_finito (&md5, hash);
 | 
					  md5_finito (&md5, hash);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  memset (&zero, 0, sizeof(zero));
 | 
					  memset (&zero, 0, sizeof(zero));
 | 
				
			||||||
#if 0
 | 
					  gss_krb5_getsomekey(context_handle, &key);
 | 
				
			||||||
  memcpy (&key, context_handle->auth_context->key.keyvalue.data,
 | 
					 | 
				
			||||||
	  sizeof(key));
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
  memcpy (&key, context_handle->auth_context->local_subkey->keyvalue.data,
 | 
					 | 
				
			||||||
	  sizeof(key));
 | 
					 | 
				
			||||||
  des_set_key (&key, schedule);
 | 
					  des_set_key (&key, schedule);
 | 
				
			||||||
  des_cbc_cksum ((des_cblock *)hash,
 | 
					  des_cbc_cksum ((des_cblock *)hash,
 | 
				
			||||||
		 (des_cblock *)hash, sizeof(hash), schedule, &zero);
 | 
							 (des_cblock *)hash, sizeof(hash), schedule, &zero);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user