I did compile OpenSSL 1.0.1g for n900 some time ago. I used without issues, so you could try it out http://talk.maemo.org/showthread.php?t=91787