Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 3496] New: packet-zbee-security.c does not compile if HAVE

Date: Thu, 28 May 2009 01:15:22 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3496

           Summary: packet-zbee-security.c does not compile if
                    HAVE_LIBGCRYPT is not set
           Product: Wireshark
           Version: SVN
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: witek@xxxxxx



Tobias Witek <witek@xxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #3060|                            |review_for_checkin?
               Flag|                            |


Created an attachment (id=3060)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=3060)
fixes to packet packet-zbee-security.c compile when HAVE_LIBGCRYPT is not set

Build Information:
wireshark 1.3.0 (SVN Rev 28502)

Copyright 1998-2009 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GTK+ 2.14.4, with GLib 2.18.2, with libpcap 0.9.8, with libz
1.2.3.3, without POSIX capabilities, without libpcre, without SMI, without
c-ares, without ADNS, without Lua, without GnuTLS, without Gcrypt, without
Kerberos, without GeoIP, without PortAudio, without AirPcap.
NOTE: this build doesn't support the "matches" operator for Wireshark filter
syntax.

Running on Linux 2.6.27-11-generic, with libpcap version 0.9.8.

Built using gcc 4.3.2.

--
If the macro HAVE_LIBGCRYPT is not defined, the file packet-zbee-security.c
does not compile due to function declarations outside the #ifdef.

The patch puts the function declarations for zbee_sec_ccm_decrypt() and
zbee_sec_key_hash() into a #ifdef HAVE_LIBGCRYPT guardian to avoid gcc from
complaining about functions that are declared as 'static' but never defined.

It additionally puts the function zbee_sec_make_nonce() (and its declaration)
into a #ifdef HAVE_LIBGCRYPT guardian to avoid gcc from complaining about a
defined but unused function, if libgcrypt is not used.


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.