2009-03-18 20:30:57 -04:00
|
|
|
! Copyright (C) 2008, 2009 Slava Pestov.
|
2008-11-30 14:46:39 -05:00
|
|
|
! 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
|
|
|
|
2009-03-18 20:30:57 -04:00
|
|
|
: <test-secure-config> ( -- config )
|
2008-11-30 14:46:39 -05:00
|
|
|
<secure-config>
|
2009-02-15 20:53:21 -05:00
|
|
|
"vocab:openssl/test/server.pem" >>key-file
|
|
|
|
"vocab:openssl/test/dh1024.pem" >>dh-file
|
2009-03-18 20:30:57 -04:00
|
|
|
"password" >>password ;
|
|
|
|
|
|
|
|
: with-test-context ( quot -- )
|
|
|
|
<test-secure-config>
|
2008-11-30 14:46:39 -05:00
|
|
|
swap with-secure-context ; inline
|