The following test script segfaults Scheme on my Debian 5.0 server:<br><br>#lang scheme<br>(require web-server/stuffers/hmac-sha1)<br>(HMAC-SHA1 <br> (string->bytes/utf-8 "secret")<br> (string->bytes/utf-8 "foo bar baz"))<br>
<br>I ran (enter! web-server/stuffers/hmac-sha1) from a scheme REPL, and verified that HMAC-SHA1/raw is the source of the segfault, but I don't know anything about FFI programming so I can't see how to go forward with it from there. <br>
<br>This is a very bare-bones server, so it's probably just missing a library or such. I do see that it's looking for libcrypto, and (IIUC) it will accept 0.9.8. I have the following libcryptos:<br><br>/usr/lib/libcrypto.a<br>
/usr/lib/libcrypto.so<br>/usr/lib/libcrypto.so.0.9.8<br>/usr/lib/pkgconfig/libcrypto.pc<br><br>...so I would have thought it would work. <br><br>Any suggestions on where to look next?<br><br>Dave<br>