diff libpurple/ciphers/hmac.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 45f318d865ac
children
line wrap: on
line diff
--- a/libpurple/ciphers/hmac.c	Sun Mar 13 16:43:09 2011 +0000
+++ b/libpurple/ciphers/hmac.c	Sun Mar 13 16:47:36 2011 +0000
@@ -191,16 +191,24 @@
 }
 
 static PurpleCipherOps HMACOps = {
-	.set_option = hmac_set_opt,
-	.get_option = hmac_get_opt,
-	.init = hmac_init,
-	.reset = hmac_reset,
-	.uninit = hmac_uninit,
-	.append = hmac_append,
-	.digest = hmac_digest,
-	.set_key = hmac_set_key,
-	.get_block_size = hmac_get_block_size,
-	.set_key_with_len = hmac_set_key_with_len,
+	hmac_set_opt,           /* Set option */
+	hmac_get_opt,           /* Get option */
+	hmac_init,               /* init */
+	hmac_reset,              /* reset */
+	hmac_uninit,             /* uninit */
+	NULL,                   /* set iv */
+	hmac_append,             /* append */
+	hmac_digest,             /* digest */
+	NULL,                   /* encrypt */
+	NULL,                   /* decrypt */
+	NULL,                   /* set salt */
+	NULL,                   /* get salt size */
+	hmac_set_key,           /* set key */
+	NULL,                   /* get key size */
+	NULL,                   /* set batch mode */
+	NULL,                   /* get batch mode */
+	hmac_get_block_size,    /* get block size */
+	hmac_set_key_with_len   /* set key with len */
 };
 
 PurpleCipherOps *