summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1991-02-19 10:10:26 +0000
committerJohn Kohl <jtkohl@mit.edu>1991-02-19 10:10:26 +0000
commitcce31e4f909c503eac8e78f2e39779bb3593e979 (patch)
treed4fb0c8c0ab7cd38cb79de09ec58fb4c02e9204c /src/lib/crypto
parent1494cdd8d3203fccf693826e03575018ff068997 (diff)
downloadkrb5-cce31e4f909c503eac8e78f2e39779bb3593e979.tar.gz
krb5-cce31e4f909c503eac8e78f2e39779bb3593e979.tar.xz
krb5-cce31e4f909c503eac8e78f2e39779bb3593e979.zip
update copyright notices
use xfree rather than free((char *)) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1725 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto')
-rw-r--r--src/lib/crypto/des/fin_rndkey.c6
-rw-r--r--src/lib/crypto/des/random_key.c7
-rw-r--r--src/lib/crypto/des/string2key.c7
3 files changed, 9 insertions, 11 deletions
diff --git a/src/lib/crypto/des/fin_rndkey.c b/src/lib/crypto/des/fin_rndkey.c
index 21b3bea8f..089cd9c44 100644
--- a/src/lib/crypto/des/fin_rndkey.c
+++ b/src/lib/crypto/des/fin_rndkey.c
@@ -2,7 +2,8 @@
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
@@ -14,7 +15,6 @@ static char rcsid_fin_rndkey_c[] =
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
#include <krb5/krb5.h>
#include <krb5/mit-des.h>
#include <krb5/ext-proto.h>
@@ -27,7 +27,7 @@ krb5_error_code mit_des_finish_random_key (DECLARG(krb5_pointer *, seed))
OLDDECLARG(krb5_pointer *, seed)
{
memset((char *)*seed, 0, sizeof(mit_des_random_key_seed) );
- free((char *)*seed);
+ xfree(*seed);
*seed = 0;
return 0; /* XXX init_random_key */
}
diff --git a/src/lib/crypto/des/random_key.c b/src/lib/crypto/des/random_key.c
index bc0b06e9a..ee46b7d97 100644
--- a/src/lib/crypto/des/random_key.c
+++ b/src/lib/crypto/des/random_key.c
@@ -2,7 +2,8 @@
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
@@ -14,8 +15,6 @@ static char rcsid_random_key_c[] =
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
-
#include <krb5/krb5.h>
#include <krb5/ext-proto.h>
@@ -35,7 +34,7 @@ OLDDECLARG(krb5_keyblock **, keyblock)
if (!(randkey = (krb5_keyblock *)malloc(sizeof(*randkey))))
return ENOMEM;
if (!(randkey->contents = (krb5_octet *)malloc(sizeof(mit_des_cblock)))) {
- free((char *)randkey);
+ xfree(randkey);
return ENOMEM;
}
randkey->length = sizeof(mit_des_cblock);
diff --git a/src/lib/crypto/des/string2key.c b/src/lib/crypto/des/string2key.c
index d21443ab4..7453ddeac 100644
--- a/src/lib/crypto/des/string2key.c
+++ b/src/lib/crypto/des/string2key.c
@@ -2,7 +2,8 @@
* $Source$
* $Author$
*
- * Copyright 1990 by the Massachusetts Institute of Technology.
+ * Copyright 1990,1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
@@ -15,8 +16,6 @@ static char rcsid_string2key_c[] =
"$Id$";
#endif /* !lint & !SABER */
-#include <krb5/copyright.h>
-
#include <krb5/krb5.h>
#include <krb5/ext-proto.h>
@@ -75,7 +74,7 @@ OLDDECLARG(const krb5_data *, salt)
return(ENOMEM);
#define cleanup() {memset(keyblock->contents, 0, sizeof(mit_des_cblock));\
- (void) free((char *) keyblock->contents);}
+ xfree(keyblock->contents);}
keyblock->keytype = KEYTYPE_DES;
keyblock->length = sizeof(mit_des_cblock);