2005-11-09 22:10:44 +00:00
|
|
|
;;; Copyright (C) 2001, 2003 Eric Marsden
|
|
|
|
;;; Copyright (C) 2005 David Lichteblau
|
|
|
|
;;; "the conditions and ENSURE-SSL-FUNCALL are by Jochen Schmidt."
|
|
|
|
;;;
|
|
|
|
;;; See LICENSE for details.
|
|
|
|
|
|
|
|
;;; We do this in an extra file so that it happens
|
|
|
|
;;; - after the asd file has been loaded, so that users can
|
|
|
|
;;; customize *libssl-pathname* between loading the asd and LOAD-OPing
|
|
|
|
;;; the actual sources
|
|
|
|
;;; - before ssl.lisp is loaded, which needs the library at compilation
|
|
|
|
;;; time on some implemenations
|
2005-11-16 17:07:53 +00:00
|
|
|
;;; - but not every time ffi.lisp is re-loaded as would happen if we
|
|
|
|
;;; put this directly into ffi.lisp
|
2005-11-09 22:10:44 +00:00
|
|
|
|
2009-10-24 20:09:40 +00:00
|
|
|
#+xcvb (module (:depends-on ("package")))
|
|
|
|
|
2006-11-18 09:52:21 +00:00
|
|
|
(in-package :cl+ssl)
|
|
|
|
|
|
|
|
(cffi:define-foreign-library libssl
|
2010-05-28 09:39:01 +00:00
|
|
|
(:windows "libssl32.dll")
|
2007-11-27 06:19:04 +00:00
|
|
|
(:darwin "libssl.dylib")
|
2011-03-25 12:08:03 +00:00
|
|
|
(:openbsd (:or "libssl3.so" "libssl.so.16.0" "libssl.so.15.1"))
|
2012-05-30 20:50:46 +00:00
|
|
|
(:solaris (:or "/lib/64/libssl.so"
|
|
|
|
"libssl.so.0.9.8" "libssl.so" "libssl.so.4"))
|
2011-12-21 16:34:19 +00:00
|
|
|
(:unix (:or "libssl.so.1.0.0" "libssl.so.0.9.8" "libssl.so" "libssl.so.4"))
|
2007-07-14 11:49:29 +00:00
|
|
|
(t (:default "libssl3")))
|
2006-11-18 09:52:21 +00:00
|
|
|
|
|
|
|
(cffi:use-foreign-library libssl)
|
2007-07-14 11:49:29 +00:00
|
|
|
|
|
|
|
(cffi:define-foreign-library libeay32
|
|
|
|
(:windows "libeay32.dll"))
|
|
|
|
|
|
|
|
(cffi:use-foreign-library libeay32)
|