diff options
author | Havoc Pennington <hp@redhat.com> | 2005-01-21 06:18:04 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2005-01-21 06:18:04 +0000 |
commit | 606eb2106b3d7f5cd36a4f1786d281b771bb1bf7 (patch) | |
tree | d4fe3c88571d0f683f8dadbef43fd5c0dea18ffa /dbus/dbus-marshal-validate.h | |
parent | cda2389089ef180ac2f3c880cb03427e9baf884b (diff) |
2005-01-21 Havoc Pennington <hp@redhat.com>
* dbus/dbus-bus.c: add more return_if_fail checks
* dbus/dbus-message.c (load_message): have the "no validation"
mode (have to edit the code to toggle the mode for now though)
* dbus/dbus-marshal-header.c (_dbus_header_load): have a mode that
skips all validation; I want to use this at least for benchmark
baseline, I'm not sure if it should be a publicly-available switch.
Diffstat (limited to 'dbus/dbus-marshal-validate.h')
-rw-r--r-- | dbus/dbus-marshal-validate.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dbus/dbus-marshal-validate.h b/dbus/dbus-marshal-validate.h index 6b37338b..21d2e9e3 100644 --- a/dbus/dbus-marshal-validate.h +++ b/dbus/dbus-marshal-validate.h @@ -32,6 +32,15 @@ #endif /** + * This is used rather than a bool for high visibility + */ +typedef enum +{ + DBUS_VALIDATION_MODE_WE_TRUST_THIS_DATA_ABSOLUTELY, + DBUS_VALIDATION_MODE_DATA_IS_UNTRUSTED +} DBusValidationMode; + +/** * This is primarily used in unit testing, so we can verify that each * invalid message is invalid for the expected reasons. Thus we really * want a distinct enum value for every codepath leaving the validator |