Build problem with libssl 0.9.8

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
jsalk
DCMTK Tester
Posts: 13
Joined: Thu, 2004-11-25, 15:59

Build problem with libssl 0.9.8

#1 Post by jsalk »

Hi,

this is just to let you know that dcmtk-3.5.3 fails to build with libssl-0.9.8.:

Code: Select all

c++   [...]  -Wall  sicert.cc
sicert.cc: In member function 'OFCondition SiCertificate::read(DcmItem&)':
sicert.cc:170: error: invalid conversion from 'Uint8**' to 'const unsigned char**'
sicert.cc:170: error:   initializing argument 2 of 'X509* d2i_X509(X509**, const unsigned char**, long int)'
make[3]: *** [sicert.o] Error 1
The problem is that libssl-0.9.8 has constified all (or almost all) d2i, c2i, s2i and r2i functions.

For the time being I have added a quick fix by changing

Code: Select all

x509 = d2i_X509(NULL, &data, cert->getLength());
to

Code: Select all

x509 = d2i_X509(NULL, (const unsigned char **) &data, cert->getLength());
in dcmsign/libsrc/sicert.cc.

Best regards - Juergen

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest