Changeset 2449
- Timestamp:
- 08/15/07 12:47:13 (1 year ago)
- Files:
-
- plugins/opie-sync/build/linux/osync_build.py (modified) (2 diffs)
- plugins/opie-sync/src/SConscript (modified) (1 diff)
- plugins/opie-sync/src/md5.c (added)
- plugins/opie-sync/src/md5.h (added)
- plugins/opie-sync/src/opie_sync.c (modified) (1 diff)
- plugins/opie-sync/src/opie_xml.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/opie-sync/build/linux/osync_build.py
r2398 r2449 32 32 env.Exit(1) 33 33 34 if not conf.CheckPKG('openssl >= 0.9.5'):35 print 'openssl >= 0.9.5 not found.'36 env.Exit(1)37 38 34 if not conf.CheckPKG('opensync-1.0 >= 0.30'): 39 35 print 'opensync-1.0 >= 0.30 not found.' … … 48 44 env.ParseConfig('pkg-config --cflags --libs glib-2.0') 49 45 env.ParseConfig('pkg-config --cflags --libs libxml-2.0') 50 env.ParseConfig('pkg-config --cflags --libs openssl')51 46 env.ParseConfig('curl-config --cflags --libs') 52 47 env.ParseConfig('pkg-config --cflags --libs opensync-1.0') plugins/opie-sync/src/SConscript
r2448 r2449 9 9 # basic vformat plugins 10 10 opie = env.SharedLibrary('opie', ['opie_format.c', 'opie_xml_utils.c']) 11 opie_sync = env.SharedLibrary('opie-sync', ['opie_sync.c', 'opie_qcop.c', 'opie_comms.c', 'opie_xml.c', 'opie_xml_utils.c' ])11 opie_sync = env.SharedLibrary('opie-sync', ['opie_sync.c', 'opie_qcop.c', 'opie_comms.c', 'opie_xml.c', 'opie_xml_utils.c', 'md5.c']) 12 12 13 13 plugins/opie-sync/src/opie_sync.c
r2448 r2449 705 705 osync_plugin_unref(plugin); 706 706 707 printf("hash: %s\n", hash_str("hello world")); 708 707 709 return TRUE; 708 710 error: plugins/opie-sync/src/opie_xml.c
r2448 r2449 29 29 #include "opie_sync.h" 30 30 #include "opie_comms.h" 31 #include <openssl/md5.h>31 #include "md5.h" 32 32 33 33 #include <string.h> … … 219 219 char *hash_str(const char *str) { 220 220 unsigned char* t_hash; 221 MD5_CTX c; 222 223 MD5_Init(&c); 221 224 222 t_hash = g_malloc0(MD5_DIGEST_LENGTH + 1); 225 223 226 MD5_Update(&c, str, strlen(str)); 227 228 /* compute the hash */ 229 MD5_Final(t_hash, &c); 230 224 md5(str, strlen(str), t_hash); 231 225 return t_hash; 232 226 }
