Is possible add openssl in arducopter?

Hi I want to use some functions in openssl in arducopter(SITL) and I have to add the openssl library. How can I add this library? I suppose I have to modify wscript, I tried to modify def configure by adding

     cfg.env.append_value('LINKFLAGS', '-lcrypto')
     cfg.env.append_value('LINKFLAGS', '-lssl')

but I get

Checking for library ssl : not found

I tried to modify def build by inserting

bld.env.LINKFLAGS += [’-lssl’, ‘-lcrypto’]
bld.read_shlib(‘ssl’, paths=[’/usr/lib/x86_64-linux-gnu/’])

but I get the following errors

GCS_MAVLink.cpp errors:(.text._mav_finalize_message_chan_send+0xb4): undefined reference to `EVP_sha1’.

GCS_MAVLink.cpp:(.text._mav_finalize_message_chan_send+0xd4): undefined reference to `PKCS5_PBKDF2_HMAC’ uild failed

-> task in ‘bin/arduplane’ failed (exit status 1):

How can add openssl lib? i’m lost with waf