comparison libpurple/ciphers/md5.c @ 31802:ca94413ccd0e

Named initializers and most other C99isms don't work in Visual C++ .NET 2005 in C mode. This is troublesome for Instantbird. This remedies the problem for the cipher code, which allows Instantbird's libpurple build to work again. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author Florian Quèze <florian@instantbird.org>
date Sun, 13 Mar 2011 16:47:36 +0000
parents 2b041e31b825
children
comparison
equal deleted inserted replaced
31801:0888025a3a5d 31802:ca94413ccd0e
295 295
296 return TRUE; 296 return TRUE;
297 } 297 }
298 298
299 static PurpleCipherOps MD5Ops = { 299 static PurpleCipherOps MD5Ops = {
300 .init = md5_init, 300 NULL, /* Set Option */
301 .reset = md5_reset, 301 NULL, /* Get Option */
302 .uninit = md5_uninit, 302 md5_init, /* init */
303 .append = md5_append, 303 md5_reset, /* reset */
304 .digest = md5_digest, 304 md5_uninit, /* uninit */
305 .get_block_size = md5_get_block_size, 305 NULL, /* set iv */
306 md5_append, /* append */
307 md5_digest, /* digest */
308 NULL, /* encrypt */
309 NULL, /* decrypt */
310 NULL, /* set salt */
311 NULL, /* get salt size */
312 NULL, /* set key */
313 NULL, /* get key size */
314 NULL, /* set batch mode */
315 NULL, /* get batch mode */
316 md5_get_block_size, /* get block size */
317 NULL /* set key with len */
306 }; 318 };
307 319
308 PurpleCipherOps * 320 PurpleCipherOps *
309 purple_md5_cipher_get_ops(void) { 321 purple_md5_cipher_get_ops(void) {
310 return &MD5Ops; 322 return &MD5Ops;