Vladimir Timonin just published the OpenSSL 0.9.7d patches for QNX 6 and QNX 4. Download and gunzip the patch:
for QNX6
patch -p1
Modify LD_LIBRARY_PATH to include SSL shared libraries directory (/usr/local/ssl/lib) or otherwise either copy or link these libraries to the directory listed in LD_LIBRARY_PATH.
for QNX4
patch -p1 openssl-0.9.7d.diff ./config no-threads no-shared no-hw [no-krb5] [no-idea] [no-cast] make SHELL=bash make SHELL=bash test su -c "make SHELL=bash install"
Just search for patch and bash on ftp://ftp.qnx.com/usr/free (look in find-ls). You will need perl, so download and install it too.