aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/c1222
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2012-03-11 12:00:00 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2012-03-11 12:00:00 +0000
commit1301b98e251cd01f8adacb80b6fe549061ef2d48 (patch)
tree8385ebe1476cb7e9fc215dbfb9f9aa5ac9f741af /asn1/c1222
parent42df48aab06f55898b63b20c776b3576c08373a2 (diff)
Use _U_ for unused arguments.
svn path=/trunk/; revision=41478
Diffstat (limited to 'asn1/c1222')
-rw-r--r--asn1/c1222/packet-c1222-template.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/asn1/c1222/packet-c1222-template.c b/asn1/c1222/packet-c1222-template.c
index e424c3f97a..3c7fd75b2a 100644
--- a/asn1/c1222/packet-c1222-template.c
+++ b/asn1/c1222/packet-c1222-template.c
@@ -757,10 +757,10 @@ keylookup(guint8 *keybuff, guint8 keyid)
* \param decrypt TRUE if packet is to be authenticated and decrypted; FALSE if authentication only is requested
* \returns TRUE if the requested operation was successful; otherwise FALSE
*/
+#ifdef HAVE_LIBGCRYPT
static gboolean
decrypt_packet(guchar *buffer, guint32 length, gboolean decrypt)
{
-#ifdef HAVE_LIBGCRYPT
#define CANONBUFFSIZE 300U
guchar canonbuff[CANONBUFFSIZE];
guint8 c1222_key[EAX_SIZEOF_KEY];
@@ -796,14 +796,14 @@ decrypt_packet(guchar *buffer, guint32 length, gboolean decrypt)
decrypt ? EAX_MODE_CIPHERTEXT_AUTH : EAX_MODE_CLEARTEXT_AUTH);
}
return status;
+}
#else /* HAVE_LIBCRYPT */
- /* these are to silence compiler unreferenced variable warnings */
- buffer=buffer;
- length=length;
- decrypt=decrypt;
+static gboolean
+decrypt_packet(guchar *buffer _U_, guint32 length _U_, gboolean decrypt _U_)
+{
return FALSE;
-#endif /* HAVE_LIBGCRYPT */
}
+#endif /* HAVE_LIBGCRYPT */
/**
* Checks to make sure that a complete, valid BER-encoded length is in the buffer.