summaryrefslogtreecommitdiff
path: root/nettle-meta.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2017-04-09 15:07:52 +0200
committerNiels Möller <nisse@lysator.liu.se>2017-04-09 15:07:52 +0200
commit55fbe36e16e9a0eaabb9ffc4105ea4ec10fda950 (patch)
treec8a4f904c9706e8843c8e0c7330d00d8f9e6fb2e /nettle-meta.h
parent9911b3a5b3038a28135376693f7779d7ad566f7f (diff)
downloadnettle-55fbe36e16e9a0eaabb9ffc4105ea4ec10fda950.tar.gz
New function nettle_get_hashes.
Diffstat (limited to 'nettle-meta.h')
-rw-r--r--nettle-meta.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/nettle-meta.h b/nettle-meta.h
index fd166717..b645fb1b 100644
--- a/nettle-meta.h
+++ b/nettle-meta.h
@@ -61,7 +61,15 @@ struct nettle_cipher
};
/* null-terminated list of ciphers implemented by this version of nettle */
-extern const struct nettle_cipher * const nettle_ciphers[];
+extern const struct nettle_cipher * const _nettle_ciphers[];
+
+const struct nettle_cipher * const *
+#ifdef __GNUC__
+__attribute__((pure))
+#endif
+nettle_get_ciphers (void);
+
+#define nettle_ciphers (nettle_get_ciphers())
extern const struct nettle_cipher nettle_aes128;
extern const struct nettle_cipher nettle_aes192;