Dear Pearlmonks,

I need Net::SSLeay with SSLv2 and SSLv3 support to do some SSL-checks. There is a guide in the interweb (http://www.techstacks.com/howto/enable-sslv2-methods-in-netssleay.html)

I followed the guide step by step and got an error after performing the "make" command.

root@Kali:/media/sf_interVM/Net-SSLeay-1.72# make Skip blib/lib/Net/SSLeay.pod (unchanged) Skip blib/lib/Net/SSLeay.pm (unchanged) Skip blib/lib/Net/SSLeay/Handle.pm (unchanged) Running Mkbootstrap for Net::SSLeay () chmod 644 SSLeay.bs cc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno +-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FI +LE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.72\" -DXS_VERSION=\"1.72\" - +fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.20/CORE" SSLeay.c SSLeay.xs: In function ‘XS_Net__SSLeay_CTX_v2_new’: SSLeay.xs:1410:28: warning: passing argument 1 of ‘SSL_CTX_new’ makes +pointer from integer without a cast RETVAL = SSL_CTX_new (SSLv2_method()); ^ In file included from SSLeay.xs:167:0: /usr/include/openssl/ssl.h:1693:10: note: expected ‘const struct SSL_M +ETHOD *’ but argument is of type ‘int’ SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth); ^ SSLeay.c: In function ‘XS_Net__SSLeay_SSLv2_method’: SSLeay.c:8366:9: warning: assignment makes pointer from integer withou +t a cast RETVAL = SSLv2_method(); ^ ^CMakefile:356: recipe for target 'SSLeay.o' failed make: *** [SSLeay.o] Unterbrechung

can anybody give me a hint? I use Kali Linx 2 with SSLv2 enabled on openssl (openssl s_client connections work with SSLv2)

Thanks a lot!


In reply to Compiling Net::SSLeay with SSLv2 Support by hardwarefresser

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.