chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] openssl egg


From: Shawn W.
Subject: Re: [Chicken-users] openssl egg
Date: Wed, 23 May 2007 11:02:26 -0700


On May 23, 2007, at 6:38 AM, Thomas Christian Chust wrote:


your patch looks correct so far. The reason why I didn't include a
procedure like that in the egg in the first place is that its existence suggests the possibility to wrap an SSL transport layer around any given
pair of input and output ports. That is unfortunately not the case,
though. Currently it is only possible to create an SSL wrapper for a
file descriptor.


You CAN make SSL wrappers for sockets, files, strings/memory, in C, using the bio API. Can they be wrapped up in scheme ports?

So you could so something like
(define fp (bio-file-new :output-file "encrypted.out"))
(bio-push fp an-encryption-filter-bio)
(define out-stream (bio->output-stream fp))
(fprintf out-stream "blah blah blah)



--
Shawn W.
address@hidden







reply via email to

[Prev in Thread] Current Thread [Next in Thread]