Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/libpurple/ciphers/md5.c Sun Mar 13 16:43:09 2011 +0000 +++ b/libpurple/ciphers/md5.c Sun Mar 13 16:47:36 2011 +0000 @@ -297,12 +297,24 @@ } static PurpleCipherOps MD5Ops = { - .init = md5_init, - .reset = md5_reset, - .uninit = md5_uninit, - .append = md5_append, - .digest = md5_digest, - .get_block_size = md5_get_block_size, + NULL, /* Set Option */ + NULL, /* Get Option */ + md5_init, /* init */ + md5_reset, /* reset */ + md5_uninit, /* uninit */ + NULL, /* set iv */ + md5_append, /* append */ + md5_digest, /* digest */ + NULL, /* encrypt */ + NULL, /* decrypt */ + NULL, /* set salt */ + NULL, /* get salt size */ + NULL, /* set key */ + NULL, /* get key size */ + NULL, /* set batch mode */ + NULL, /* get batch mode */ + md5_get_block_size, /* get block size */ + NULL /* set key with len */ }; PurpleCipherOps *