Rename krb5_free_keyblock to krb5_free_keyblock_contents, and
reimplement krb5_free_keyblock. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3911 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -39,13 +39,21 @@ | ||||
| #include "krb5_locl.h" | ||||
|  | ||||
| void | ||||
| krb5_free_keyblock(krb5_context context, | ||||
| krb5_free_keyblock_contents(krb5_context context, | ||||
| 			    krb5_keyblock *keyblock) | ||||
| { | ||||
|     memset(keyblock->keyvalue.data, 0, keyblock->keyvalue.length); | ||||
|     krb5_data_free (&keyblock->keyvalue); | ||||
| } | ||||
|  | ||||
| void | ||||
| krb5_free_keyblock(krb5_context context, | ||||
| 		   krb5_keyblock *keyblock) | ||||
| { | ||||
|     krb5_free_keyblock_contents(context, keyblock); | ||||
|     free(keyblock); | ||||
| } | ||||
|  | ||||
| krb5_error_code | ||||
| krb5_copy_keyblock_contents (krb5_context context, | ||||
| 			     const krb5_keyblock *inblock, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Johan Danielsson
					Johan Danielsson