summaryrefslogtreecommitdiff
path: root/nettle-meta.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2017-04-09 15:18:52 +0200
committerNiels Möller <nisse@lysator.liu.se>2017-04-09 15:18:52 +0200
commit0143b03dc4b79b6ea6a22234bb4ac94b06ba60c7 (patch)
treea13e9eeb96aceea49cbb564e6d0a0509b5c3242e /nettle-meta.h
parentb076e62ef304a75a273a3fd8d1455e667095ecc6 (diff)
downloadnettle-0143b03dc4b79b6ea6a22234bb4ac94b06ba60c7.tar.gz
New function nettle_get_armors.
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 c0320b45..3c13e9b2 100644
--- a/nettle-meta.h
+++ b/nettle-meta.h
@@ -244,7 +244,15 @@ struct nettle_armor
}
/* null-terminated list of armor schemes implemented by this version of nettle */
-extern const struct nettle_armor * const nettle_armors[];
+extern const struct nettle_armor * const _nettle_armors[];
+
+const struct nettle_armor * const *
+#ifdef __GNUC__
+__attribute__((pure))
+#endif
+nettle_get_armors (void);
+
+#define nettle_armors (nettle_get_armors())
extern const struct nettle_armor nettle_base64;
extern const struct nettle_armor nettle_base64url;