This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Problem decrypting ssl packets

0

Installed wireshark 1.4.4 from Sunfreeware on Solaris 10 update 9 sparc platform. I have enabled ssl decoding by setting in the preferences file the correct key files that I would need to decrypt the packets with using the ssl.key_list parameter.

Wireshark starts up fine but when I open my saved file I get the following error reported and the application is killed:

ld.so.1: wireshark: fatal: relocation error: file /usr/local/lib/libwireshark.so.0: symbol gcry_cipher_setkey: referenced symbol not found

Any help would be appreciated.

ldd /usr/bin/wireshark gives me the following output

    libwiretap.so.0 =>       /usr/local/lib/libwiretap.so.0
    libwireshark.so.0 =>     /usr/local/lib/libwireshark.so.0
    libwsutil.so.0 =>        /usr/local/lib/libwsutil.so.0
    libpcap.so.1 =>  /usr/local/lib/libpcap.so.1
    libgtk-x11-2.0.so.0 =>   /usr/local/lib/libgtk-x11-2.0.so.0
    libgdk-x11-2.0.so.0 =>   /usr/local/lib/libgdk-x11-2.0.so.0
    libgdk_pixbuf-2.0.so.0 =>        /usr/local/lib/libgdk_pixbuf-2.0.so.0
    libpango-1.0.so.0 =>     /usr/local/lib/libpango-1.0.so.0
    libgobject-2.0.so.0 =>   /usr/local/lib/libgobject-2.0.so.0
    libpthread.so.1 =>       /usr/lib/libpthread.so.1
    libthread.so.1 =>        /usr/lib/libthread.so.1
    libglib-2.0.so.0 =>      /usr/local/lib/libglib-2.0.so.0
    libc.so.1 =>     /usr/lib/libc.so.1
    libm.so.2 =>     /usr/lib/libm.so.2
    libnsl.so.1 =>   /usr/lib/libnsl.so.1
    libz.so =>       /usr/lib/libz.so
    libgcc_s.so.1 =>         /usr/sfw/lib/libgcc_s.so.1
    libgmodule-2.0.so.0 =>   /usr/local/lib/libgmodule-2.0.so.0
    librt.so.1 =>    /usr/lib/librt.so.1
    libintl.so.8 =>  /usr/local/lib/libintl.so.8
    libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
    libsec.so.1 =>   /usr/lib/libsec.so.1
    libsocket.so.1 =>        /usr/lib/libsocket.so.1
    libadns.so =>    /usr/local/lib/libadns.so
    libgcrypt.so.11 =>       /usr/local/lib/libgcrypt.so.11
    libgpg-error.so.0 =>     /usr/local/lib/libgpg-error.so.0
    libgnutls.so.13 =>       /usr/local/lib/libgnutls.so.13
    libcrypto.so.1.0.0 =>    /usr/local/ssl/lib/libcrypto.so.1.0.0
    libGeoIP.so.1 =>         /usr/local/lib/libGeoIP.so.1
    libXrender.so.1 =>       /usr/openwin/sfw/lib/libXrender.so.1
    libX11.so.4 =>   /usr/lib/libX11.so.4
    libpangocairo-1.0.so.0 =>        /usr/local/lib/libpangocairo-1.0.so.0
    libatk-1.0.so.0 =>       /usr/lib/libatk-1.0.so.0
    libcairo.so.2 =>         /usr/local/lib/libcairo.so.2
    libmlib.so.2 =>  /usr/lib/libmlib.so.2
    libXrandr.so.2 =>        /usr/lib/libXrandr.so.2
    libXext.so.0 =>  /usr/lib/libXext.so.0
    libfontconfig.so.1 =>    /usr/lib/libfontconfig.so.1
    libgthread-2.0.so.0 =>   /usr/local/lib/libgthread-2.0.so.0
    libmp.so.2 =>    /usr/lib/libmp.so.2
    libmd.so.1 =>    /usr/lib/libmd.so.1
    libscf.so.1 =>   /usr/lib/libscf.so.1
    libaio.so.1 =>   /usr/lib/libaio.so.1
    libavl.so.1 =>   /usr/lib/libavl.so.1
    libdl.so.1 =>    /usr/lib/libdl.so.1
    libpangoft2-1.0.so.0 =>  /usr/local/lib/libpangoft2-1.0.so.0
    libfreetype.so.6 =>      /usr/local/lib/libfreetype.so.6
    libpng12.so.0 =>         /usr/local/lib/libpng12.so.0
    libSM.so.6 =>    /usr/lib/libSM.so.6
    libICE.so.6 =>   /usr/lib/libICE.so.6
    libexpat.so.0 =>         /usr/sfw/lib/libexpat.so.0
    libdoor.so.1 =>  /usr/lib/libdoor.so.1
    libuutil.so.1 =>         /usr/lib/libuutil.so.1
    libgen.so.1 =>   /usr/lib/libgen.so.1
    /platform/SUNW,A70/lib/libc_psr.so.1
    /usr/lib/cpu/sparcv9+vis2/libmlib.so.2
    /platform/SUNW,A70/lib/libmd_psr.so.1

asked 21 Mar '11, 08:33

draslpd's gravatar image

draslpd
1111
accept rate: 0%

edited 21 Mar '11, 09:50

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245


One Answer:

0

According to this comment (on a Redhat bug), gcry_cipher_setkey() was changed from macro to function in libgcrypt-1.4.2.

I'm guessing that sunfreeware is compiling against a newer libgcrypt than you have installed. I'd suggest installing sunfreeware's libgcrypt package.

[Update] Don't forget to drop by and Accept this answer if it answered your question.

answered 22 Mar '11, 07:03

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%

edited 09 Mar '12, 07:07