aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cipher.h8
-rw-r--r--include/util.h6
2 files changed, 13 insertions, 1 deletions
diff --git a/include/cipher.h b/include/cipher.h
index ed553dcb2..fd7886c90 100644
--- a/include/cipher.h
+++ b/include/cipher.h
@@ -88,7 +88,13 @@ int cipher_debug_mode;
#define is_valid_pubkey_algo(a) ( (a) == PUBKEY_ALGO_ELGAMAL )
#endif
-
+/*-- misc.c --*/
+int string_to_cipher_algo( const char *string );
+int string_to_pubkey_algo( const char *string );
+int string_to_digest_algo( const char *string );
+int check_cipher_algo( int algo );
+int check_pubkey_algo( int algo );
+int check_digest_algo( int algo );
/*-- md.c --*/
int md_okay( int algo );
diff --git a/include/util.h b/include/util.h
index 46f337955..34015ffe6 100644
--- a/include/util.h
+++ b/include/util.h
@@ -92,10 +92,16 @@ int answer_is_yes( const char *s );
void free_strlist( STRLIST sl );
#define FREE_STRLIST(a) do { free_strlist((a)); (a) = NULL ; } while(0)
char *memistr( char *buf, size_t buflen, const char *sub );
+char *trim_spaces( char *string );
+int string_count_chr( const char *string, int c );
+
#define stricmp(a,b) strcasecmp((a),(b))
#ifndef HAVE_STPCPY
char *stpcpy(char *a,const char *b);
#endif
+#ifndef HAVE_STRLWR
+char *strlwr(char *a);
+#endif
/******** some macros ************/