aboutsummaryrefslogtreecommitdiffstats
path: root/libkeccak-legacy.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-02-11 16:57:26 +0100
committerMattias Andrée <maandree@kth.se>2019-02-11 16:57:54 +0100
commit3547923d8653d72fe8a6a305107ed2e5dca6577c (patch)
treeaa08e3ca8cb8d7f7b64126a6687af4abbe0994ef /libkeccak-legacy.h
parentSplit most .c files into one per function and flatten file hierarchy (diff)
downloadlibkeccak-3547923d8653d72fe8a6a305107ed2e5dca6577c.tar.gz
libkeccak-3547923d8653d72fe8a6a305107ed2e5dca6577c.tar.bz2
libkeccak-3547923d8653d72fe8a6a305107ed2e5dca6577c.tar.xz
Deprecate typedefs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libkeccak-legacy.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libkeccak-legacy.h b/libkeccak-legacy.h
new file mode 100644
index 0000000..7641711
--- /dev/null
+++ b/libkeccak-legacy.h
@@ -0,0 +1,14 @@
+/* See LICENSE file for copyright and license details. */
+
+
+LIBKECCAK_GCC_ONLY(__attribute__((__deprecated__("Use struct libkeccak_spec instead of libkeccak_spec_t"))))
+typedef struct libkeccak_spec libkeccak_spec_t;
+
+LIBKECCAK_GCC_ONLY(__attribute__((__deprecated__("Use struct libkeccak_generalised_spec instead of libkeccak_generalised_spec_t"))))
+typedef struct libkeccak_generalised_spec libkeccak_generalised_spec_t;
+
+LIBKECCAK_GCC_ONLY(__attribute__((__deprecated__("Use struct libkeccak_state instead of libkeccak_state_t"))))
+typedef struct libkeccak_state libkeccak_state_t;
+
+LIBKECCAK_GCC_ONLY(__attribute__((__deprecated__("Use struct libkeccak_hmac_state instead of libkeccak_hmac_state_t"))))
+typedef struct libkeccak_hmac_state libkeccak_hmac_state_t;