Mercurial > pidgin.yaz
diff libpurple/ciphers/sha1.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 | 4ef9165ebe45 |
children |
line wrap: on
line diff
--- a/libpurple/ciphers/sha1.c Sun Mar 13 16:43:09 2011 +0000 +++ b/libpurple/ciphers/sha1.c Sun Mar 13 16:47:36 2011 +0000 @@ -252,14 +252,24 @@ } static PurpleCipherOps SHA1Ops = { - .set_option = sha1_set_opt, - .get_option = sha1_get_opt, - .init = sha1_init, - .reset = sha1_reset, - .uninit = sha1_uninit, - .append = sha1_append, - .digest = sha1_digest, - .get_block_size = sha1_get_block_size, + sha1_set_opt, /* Set Option */ + sha1_get_opt, /* Get Option */ + sha1_init, /* init */ + sha1_reset, /* reset */ + sha1_uninit, /* uninit */ + NULL, /* set iv */ + sha1_append, /* append */ + sha1_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 */ + sha1_get_block_size, /* get block size */ + NULL /* set key with len */ }; PurpleCipherOps *