Branch: Tag:

2014-12-04

2014-12-04 19:26:37 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Runtime: Added PROGRAM_CLEAR_STORAGE.

Adds a flag indicating that the storage held by objects of the class
should be cleared prior to being freed. This is mainly to avoid having
secrets around longer than necessary.

FIXME: Consider adding a corresponding flag for objects to mark eg
some bignums for clearing.

566:    * module. */   #define PROGRAM_LIVE_OBJ 0x2000    + /* Clear the object storage on destruct. */ + #define PROGRAM_CLEAR_STORAGE 0x4000 +    /* Using define instead of enum allows for ifdefs - Hubbe */   #define PROG_EVENT_INIT 0   #define PROG_EVENT_EXIT 1