comparison plugins/ciphertest.c @ 12388:4e045668b9d0

[gaim-migrate @ 14694] Smashing the stack is neither fun nor profitable! Having room for the NUL terminator is a good idea. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 07 Dec 2005 10:38:52 +0000
parents 1112a9ef2cc6
children e024601d45c7
comparison
equal deleted inserted replaced
12387:1112a9ef2cc6 12388:4e045668b9d0
62 62
63 static void 63 static void
64 cipher_test_md5() { 64 cipher_test_md5() {
65 GaimCipher *cipher; 65 GaimCipher *cipher;
66 GaimCipherContext *context; 66 GaimCipherContext *context;
67 gchar digest[32]; 67 gchar digest[33];
68 gboolean ret; 68 gboolean ret;
69 gint i = 0; 69 gint i = 0;
70 70
71 cipher = gaim_ciphers_find_cipher("md5"); 71 cipher = gaim_ciphers_find_cipher("md5");
72 if(!cipher) { 72 if(!cipher) {
119 119
120 static void 120 static void
121 cipher_test_sha1() { 121 cipher_test_sha1() {
122 GaimCipher *cipher; 122 GaimCipher *cipher;
123 GaimCipherContext *context; 123 GaimCipherContext *context;
124 gchar digest[40]; 124 gchar digest[41];
125 gint i = 0; 125 gint i = 0;
126 gboolean ret; 126 gboolean ret;
127 127
128 cipher = gaim_ciphers_find_cipher("sha1"); 128 cipher = gaim_ciphers_find_cipher("sha1");
129 if(!cipher) { 129 if(!cipher) {