diff --git a/demos/demo_crypt_constants.c b/demos/demo_crypt_constants.c index 5ca6a87..d15d0e9 100644 --- a/demos/demo_crypt_constants.c +++ b/demos/demo_crypt_constants.c @@ -9,6 +9,7 @@ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" +#include "tomcrypt_misc.h" /** @file demo_crypt_constants.c @@ -20,12 +21,6 @@ */ -// in lieu of a header file -int crypt_get_constant(const char* namein, int *valueout); -int crypt_list_all_constants(char *names_list, - unsigned long *names_list_size); - - int main(void) { int rc; diff --git a/demos/demo_crypt_sizes.c b/demos/demo_crypt_sizes.c index f2154e2..30f3b89 100644 --- a/demos/demo_crypt_sizes.c +++ b/demos/demo_crypt_sizes.c @@ -9,6 +9,7 @@ * Tom St Denis, tomstdenis@gmail.com, http://libtom.org */ #include "tomcrypt.h" +#include "tomcrypt_misc.h" /** @file demo_crypt_sizes.c @@ -18,12 +19,6 @@ */ -// in lieu of a header file -int crypt_get_size(const char* namein, int *sizeout); -int crypt_list_all_sizes(char *names_list, - unsigned long *names_list_size); - - int main(void) { int rc; printf("\n"); diff --git a/src/headers/tomcrypt_misc.h b/src/headers/tomcrypt_misc.h index e1e4457..ece5d92 100644 --- a/src/headers/tomcrypt_misc.h +++ b/src/headers/tomcrypt_misc.h @@ -49,6 +49,15 @@ extern const char *crypt_build_settings; /* ---- HMM ---- */ int crypt_fsa(void *mp, ...); +/* ---- Dynamic language support ---- */ +int crypt_get_constant(const char* namein, int *valueout); +int crypt_list_all_constants(char *names_list, + unsigned long *names_list_size); + +int crypt_get_size(const char* namein, int *sizeout); +int crypt_list_all_sizes(char *names_list, + unsigned long *names_list_size); + /* $Source$ */ /* $Revision$ */ /* $Date$ */