\brief Produces MD5 hash based on input string */
extern void ast_md5_hash(char *output, char *input);
-extern int ast_base64encode(char *dst, unsigned char *src, int srclen, int max);
-extern int ast_base64decode(unsigned char *dst, char *src, int max);
+extern int ast_base64encode(char *dst, const unsigned char *src, int srclen, int max);
+extern int ast_base64decode(unsigned char *dst, const char *src, int max);
/*! ast_uri_encode
\brief Turn text string to URI-encoded %XX version
# the GNU General Public License
#
-MODS=res_adsi.so res_features.so res_crypto.so res_musiconhold.so res_indications.so res_monitor.so \
+MODS=res_adsi.so res_features.so res_musiconhold.so res_indications.so res_monitor.so \
res_agi.so
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/include/odbcinst.h)$(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/odbcinst.h),)
MODS+=res_odbc.so
endif
+ifneq ($(NOCRYPTO),yes)
+ MODS+=res_crypto.so
+endif
+
ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h),)
MODS+=res_osp.so
OSPLIB=$(CROSS_COMPILE_TARGET)/usr/local/lib/libosptk.a
ptr += sprintf(ptr, "%2.2x", digest[x]);
}
-int ast_base64decode(unsigned char *dst, char *src, int max)
+int ast_base64decode(unsigned char *dst, const char *src, int max)
{
int cnt = 0;
unsigned int byte = 0;
return cnt;
}
-int ast_base64encode(char *dst, unsigned char *src, int srclen, int max)
+int ast_base64encode(char *dst, const unsigned char *src, int srclen, int max)
{
int cnt = 0;
unsigned int byte = 0;