summaryrefslogtreecommitdiff
path: root/wsutil/base64.h
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-21 14:38:51 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2013-12-21 14:38:51 +0000
commitbe733f30414ceb85304396d30b9648b6afe283e5 (patch)
tree1c451580b0bea8d8c2d1350e4cad0e064f693dbb /wsutil/base64.h
parent576c7eae45be250478b5317bacfa19ad46f812de (diff)
downloadwireshark-be733f30414ceb85304396d30b9648b6afe283e5.tar.gz
Move epan/base64.[ch] to wsutil/ with function name change.
svn path=/trunk/; revision=54326
Diffstat (limited to 'wsutil/base64.h')
-rw-r--r--wsutil/base64.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/wsutil/base64.h b/wsutil/base64.h
new file mode 100644
index 0000000000..e9bc51758d
--- /dev/null
+++ b/wsutil/base64.h
@@ -0,0 +1,41 @@
+/* base64.h
+ * Base-64 conversion
+ *
+ * $Id$
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * 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
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+#ifndef __BASE64_H__
+#define __BASE64_H__
+
+#include "ws_symbol_export.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/* In-place decoding of a base64 string. Resulting string is NULL terminated */
+WS_DLL_PUBLIC
+size_t ws_base64_decode_inplace(char *s);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __BASE64_H__ */