aboutsummaryrefslogtreecommitdiff
path: root/funccrypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'funccrypt.h')
-rw-r--r--funccrypt.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/funccrypt.h b/funccrypt.h
index 6b1f95c..2e80340 100644
--- a/funccrypt.h
+++ b/funccrypt.h
@@ -5,7 +5,7 @@
#include <stdint.h>
#if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
-#error "This is only verified to work with GCC compiler!"
+#error "This is only verified to work with a GCC compiler!"
#endif
/* Force GCC struct for MingW compilers and pack them,
@@ -21,7 +21,11 @@ typedef struct crypt_header {
} GCC_PACKED crypt_header;
typedef enum crypt_return {
- CRET_ERROR, CRET_PROLOGUE, CRET_EPILOGUE, CRET_CHECK, CRET_OK
+ CRET_ERROR /* Neither prologue marker nor epilogue marker found. */,
+ CRET_PROLOGUE /* prologue marker found */,
+ CRET_EPILOGUE /* epilogue marker found */,
+ CRET_CHECK /* all pre (en|de)cryption checks successful */,
+ CRET_OK /* (en|de)cryption succeeded */
} crypt_return;
#define CRYPT_FUNC_MAXSIZ 0x100