added utils code for C servers, including some fieldmapper handling code
fieldmapper now copies headers over to INCLUDE/openils/
install scripts now install c-apps
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@538
9efc2488-bf62-4759-914b-
345cdb29e865
sleep 1;
echo "Stopping The Router...";
- killall opensrf_router;
+ killall "OpenSRF Router"
sleep 1;
}
-char* md5sum( char* text ) {
+char* md5sum( char* text, ... ) {
struct md5_ctx ctx;
unsigned char digest[16];
MD5_start (&ctx);
+ VA_LIST_TO_STRING(text);
+
int i;
- for ( i=0 ; i != strlen(text) ; i++ )
- MD5_feed (&ctx, text[i]);
+ for ( i=0 ; i != strlen(VA_BUF) ; i++ )
+ MD5_feed (&ctx, VA_BUF[i]);
MD5_stop (&ctx, digest);
Calculates the md5 of the text provided.
The returned string must be freed by the caller.
*/
-char* md5sum( char* text );
+char* md5sum( char* text, ... );
#endif