Mercurial > pidgin
comparison libpurple/ciphers/hmac.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 | 45f318d865ac |
children |
comparison
equal
deleted
inserted
replaced
31352:0888025a3a5d | 31353:ca94413ccd0e |
---|---|
189 | 189 |
190 return hctx->blocksize; | 190 return hctx->blocksize; |
191 } | 191 } |
192 | 192 |
193 static PurpleCipherOps HMACOps = { | 193 static PurpleCipherOps HMACOps = { |
194 .set_option = hmac_set_opt, | 194 hmac_set_opt, /* Set option */ |
195 .get_option = hmac_get_opt, | 195 hmac_get_opt, /* Get option */ |
196 .init = hmac_init, | 196 hmac_init, /* init */ |
197 .reset = hmac_reset, | 197 hmac_reset, /* reset */ |
198 .uninit = hmac_uninit, | 198 hmac_uninit, /* uninit */ |
199 .append = hmac_append, | 199 NULL, /* set iv */ |
200 .digest = hmac_digest, | 200 hmac_append, /* append */ |
201 .set_key = hmac_set_key, | 201 hmac_digest, /* digest */ |
202 .get_block_size = hmac_get_block_size, | 202 NULL, /* encrypt */ |
203 .set_key_with_len = hmac_set_key_with_len, | 203 NULL, /* decrypt */ |
204 NULL, /* set salt */ | |
205 NULL, /* get salt size */ | |
206 hmac_set_key, /* set key */ | |
207 NULL, /* get key size */ | |
208 NULL, /* set batch mode */ | |
209 NULL, /* get batch mode */ | |
210 hmac_get_block_size, /* get block size */ | |
211 hmac_set_key_with_len /* set key with len */ | |
204 }; | 212 }; |
205 | 213 |
206 PurpleCipherOps * | 214 PurpleCipherOps * |
207 purple_hmac_cipher_get_ops(void) { | 215 purple_hmac_cipher_get_ops(void) { |
208 return &HMACOps; | 216 return &HMACOps; |