Mercurial > pidgin
diff libpurple/ciphers/rc4.c @ 31353: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 | 4418c97490ed |
children |
line wrap: on
line diff
--- a/libpurple/ciphers/rc4.c Sun Mar 13 16:43:09 2011 +0000 +++ b/libpurple/ciphers/rc4.c Sun Mar 13 16:47:36 2011 +0000 @@ -165,14 +165,24 @@ } static PurpleCipherOps RC4Ops = { - .set_option = rc4_set_opt, - .get_option = rc4_get_opt, - .init = rc4_init, - .reset = rc4_reset, - .uninit = rc4_uninit, - .encrypt = rc4_encrypt, - .set_key = rc4_set_key, - .get_key_size = rc4_get_key_size, + rc4_set_opt, /* Set Option */ + rc4_get_opt, /* Get Option */ + rc4_init, /* init */ + rc4_reset, /* reset */ + rc4_uninit, /* uninit */ + NULL, /* set iv */ + NULL, /* append */ + NULL, /* digest */ + rc4_encrypt, /* encrypt */ + NULL, /* decrypt */ + NULL, /* set salt */ + NULL, /* get salt size */ + rc4_set_key, /* set key */ + rc4_get_key_size, /* get key size */ + NULL, /* set batch mode */ + NULL, /* get batch mode */ + NULL, /* get block size */ + NULL /* set key with len */ }; PurpleCipherOps *