From 989bde83edb867ff3a6471c25516055e2651d2c5 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 22 Jul 2003 17:44:39 +0000 Subject: [PATCH] * k5-int.h (krb5int_zap_data, zap): New macros; call memset with volatile cast for now. ticket: 1404 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15709 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 5 +++++ src/include/k5-int.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index d713b10fd..eb2606dea 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,8 @@ +2003-07-22 Ken Raeburn + + * k5-int.h (krb5int_zap_data, zap): New macros; call memset with + volatile cast for now. + 2003-07-21 Alexandra Ellwood * krb5.hin: Export krb5_principal2salt. diff --git a/src/include/k5-int.h b/src/include/k5-int.h index fa5b93d69..3c2e382f8 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -688,6 +688,10 @@ krb5_error_code krb5int_pbkdf2_hmac_sha1 (const krb5_data *, unsigned long, const krb5_data *, const krb5_data *); +/* Make this a function eventually? */ +#define krb5int_zap_data(ptr, len) memset((volatile void *)ptr, 0, len) +#define zap(p,l) krb5int_zap_data(p,l) + /* A definition of init_state for DES based encryption systems. * sets up an 8-byte IV of all zeros */ -- 2.26.2