[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Spiffy & OpenSSL in compiled code
From: |
Andy Bennett |
Subject: |
[Chicken-users] Spiffy & OpenSSL in compiled code |
Date: |
Wed, 19 Sep 2012 18:44:56 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 |
Hi,
I have the following repro-case:
-----
(use spiffy openssl)
(define port 8080)
(define stderr (current-error-port))
(debug-log stderr)
(error-log stderr)
(let ((listener (ssl-listen port)))
(ssl-load-certificate-chain! listener "ssl-cert-snakeoil.pem")
(ssl-load-private-key! listener "ssl-cert-snakeoil.key")
(accept-loop listener ssl-accept))
-----
This works if invoked as 'csi -s ./tmp.scm' but not when compiled and
invoked thusly: 'csc tmp.scm && ./tmp'
In the compiled case, the binary runs but the following is produced on
stderr when a connection is attempted:
-----
primordial: Connection handshake error: "bad argument type - not a fixnum"
-----
I note that, with the interpreted version, this happens when a
connection occurs that causes the browser (Firefox 10.0.7) to display a
certificate warning:
-----
$ csi -s ./tmp.scm
primordial: Incoming request from 127.0.0.1
thread73: Uncaught exception: "SSL socket already closed" (SHOULD NOT
HAPPEN!)
-----
I am on chicken-4.7.0 and I just tried it with the latest openssl from
chicken-install.
Regards,
@ndy
--
address@hidden
http://www.ashurst.eu.org/
0x7EBA75FF
- [Chicken-users] Spiffy & OpenSSL in compiled code,
Andy Bennett <=