Browse Source

added signatures to header file

Larry Bugbee 11 years ago
parent
commit
3f9144c9a7
3 changed files with 11 additions and 12 deletions
  1. 1 6
      demos/demo_crypt_constants.c
  2. 1 6
      demos/demo_crypt_sizes.c
  3. 9 0
      src/headers/tomcrypt_misc.h

+ 1 - 6
demos/demo_crypt_constants.c

@@ -9,6 +9,7 @@
  * Tom St Denis, [email protected], 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;
     

+ 1 - 6
demos/demo_crypt_sizes.c

@@ -9,6 +9,7 @@
  * Tom St Denis, [email protected], 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");

+ 9 - 0
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$ */