aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/suricata/src/util-base64.h
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/suricata/src/util-base64.h')
-rw-r--r--framework/src/suricata/src/util-base64.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/framework/src/suricata/src/util-base64.h b/framework/src/suricata/src/util-base64.h
new file mode 100644
index 00000000..fb1a90a3
--- /dev/null
+++ b/framework/src/suricata/src/util-base64.h
@@ -0,0 +1,54 @@
+/* Copyright (C) 2007-2012 Open Information Security Foundation
+ *
+ * You can copy, redistribute or modify this Program under the terms of
+ * the GNU General Public License version 2 as published by the Free
+ * Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * version 2 along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ */
+
+/**
+ * \file
+ *
+ * \author David Abarbanel <david.abarbanel@baesystems.com>
+ *
+ */
+
+#ifndef __UTIL_BASE64_H_
+#define __UTIL_BASE64_H_
+
+#include "suricata-common.h"
+#include "threads.h"
+#include "debug.h"
+#include "decode.h"
+
+#include "detect.h"
+#include "detect-parse.h"
+
+#include "detect-engine.h"
+#include "detect-engine-mpm.h"
+#include "detect-engine-state.h"
+
+#include "flow.h"
+#include "flow-var.h"
+#include "flow-util.h"
+
+#include "util-debug.h"
+#include "util-spm-bm.h"
+
+/* Constants */
+#define ASCII_BLOCK 3
+#define B64_BLOCK 4
+
+/* Function prototypes */
+uint32_t DecodeBase64(uint8_t *dest, const uint8_t *src, uint32_t len);
+
+#endif