Compiling with OpenSSL 1.0.2j I get:

>>
% package require tls
couldn't load file
Undefined symbol "get_dhParams"
<<

Compiling with nss-3.30 I get:

>>
% package require tls
couldn't load file Undefined symbol "SSL_CTX_set_client_CA_list"
<<

When compiling the following warnings:

>>
./tls.c: In function 'CTX_Init':
./tls.c:1182:11: warning: implicit declaration of function 'get_dhParams' [-Wimplicit-function-declaration]
      dh = get_dhParams();
           ^
./tls.c:1182:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
      dh = get_dhParams();
         ^
./tls.c: At top level:
cc1: warning: unrecognized command line option '-Wno-self-assign'
<<