comparison plugins/ciphertest.c @ 11183:8dca96cbcd64

[gaim-migrate @ 13295] I changed the cipher API to use guchar instead of guint8 This seems to be what gtk/glib uses for random bits of data I don't know what got into me committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 03 Aug 2005 02:57:00 +0000
parents 50224ac8184d
children bb0d7b719af2
comparison
equal deleted inserted replaced
11182:5389d7d497ce 11183:8dca96cbcd64
36 #include "debug.h" 36 #include "debug.h"
37 #include "plugin.h" 37 #include "plugin.h"
38 #include "version.h" 38 #include "version.h"
39 39
40 struct test { 40 struct test {
41 const guint8 *question; 41 const guchar *question;
42 const guint8 *answer; 42 const guchar *answer;
43 }; 43 };
44 44
45 /************************************************************************** 45 /**************************************************************************
46 * MD5 Stuff 46 * MD5 Stuff
47 **************************************************************************/ 47 **************************************************************************/
145 if(sha1_tests[i].question) { 145 if(sha1_tests[i].question) {
146 gaim_cipher_context_append(context, sha1_tests[i].question, 146 gaim_cipher_context_append(context, sha1_tests[i].question,
147 strlen(sha1_tests[i].question)); 147 strlen(sha1_tests[i].question));
148 } else { 148 } else {
149 gint j; 149 gint j;
150 guint8 buff[1000]; 150 guchar buff[1000];
151 151
152 memset(buff, 'a', 1000); 152 memset(buff, 'a', 1000);
153 153
154 for(j = 0; j < 1000; j++) 154 for(j = 0; j < 1000; j++)
155 gaim_cipher_context_append(context, buff, 1000); 155 gaim_cipher_context_append(context, buff, 1000);