Code

network plugin: Fix compile ifndef HAVE_GCRYPT_H
authorDoug MacEachern <Doug.MacEachern@hyperic.com>
Thu, 16 Apr 2009 02:32:52 +0000 (22:32 -0400)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 16 Apr 2009 06:46:10 +0000 (08:46 +0200)
Signed-off-by: Doug MacEachern <Doug.MacEachern@hyperic.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/network.c

index 722f1d674dd6ecd078a19753fbd067cc3393ff18..92714915610b8a9adee1ae4e23f1cb8d273d5994 100644 (file)
@@ -993,7 +993,7 @@ static int parse_part_encr_aes256 (sockent_t *se, /* {{{ */
 
 #else /* if !HAVE_GCRYPT_H */
 static int parse_part_encr_aes256 (sockent_t *se, /* {{{ */
-    void **ret_buffer, size_t *ret_buffer_len)
+    void **ret_buffer, size_t *ret_buffer_len, int flags)
 {
   INFO ("network plugin: Received encrypted packet, but the network "
       "plugin was not linked with libgcrypt, so I cannot "
@@ -1011,8 +1011,8 @@ static int parse_packet (sockent_t *se, /* {{{ */
        notification_t n;
 
        int packet_was_signed = (flags & PP_SIGNED);
-       int packet_was_encrypted = (flags & PP_ENCRYPTED);
 #if HAVE_GCRYPT_H
+        int packet_was_encrypted = (flags & PP_ENCRYPTED);
        int printed_ignore_warning = 0;
 #endif /* HAVE_GCRYPT_H */