Common LISP: How to open an SSL / TLS stream

NILHere is a tiny code to get a connection to an SSL/TLS server. I am

writing an IRC client and an IRC bot too and it's better to connect

through a secure channel.

This requires usocket and cl+ssl:

(usocket:with-client-socket (socket stream *server* *port*)
  (let ((ssl-stream (cl+ssl:make-ssl-client-stream stream
    						   :external-format '(:iso-8859-1 :eol-style :lf)
    						   :unwrap-stream-p t
    						   :hostname *server*)))
    (format ssl-stream "hello there !~%")
    (force-output ssl-stream)))
Proxy Information
Original URL
gemini://perso.pw/blog//articles/21.gmi
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
196.02749 milliseconds
Gemini-to-HTML Time
0.173575 milliseconds

This content has been proxied by September (ba2dc).