2008-11-30 14:46:39 -05:00
|
|
|
! Copyright (C) 2008 Slava Pestov.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
USING: accessors io.sockets.secure kernel ;
|
2008-12-14 21:03:00 -05:00
|
|
|
IN: io.sockets.secure.unix.debug
|
2008-11-30 14:46:39 -05:00
|
|
|
|
|
|
|
: with-test-context ( quot -- )
|
|
|
|
<secure-config>
|
2009-02-15 20:53:21 -05:00
|
|
|
"vocab:openssl/test/server.pem" >>key-file
|
|
|
|
"vocab:openssl/test/dh1024.pem" >>dh-file
|
2008-11-30 14:46:39 -05:00
|
|
|
"password" >>password
|
|
|
|
swap with-secure-context ; inline
|