fix for ssl-set-verify-hostname!
This commit is contained in:
parent
c5f8aa41ee
commit
ba1f4a6b22
|
@ -1087,7 +1087,7 @@
|
||||||
(unless hostname
|
(unless hostname
|
||||||
(error/ssl who "~a failed (hostname not provided for verification)"
|
(error/ssl who "~a failed (hostname not provided for verification)"
|
||||||
(if connect? "connect" "accept")))
|
(if connect? "connect" "accept")))
|
||||||
(unless (hostname-in-cert? (SSL_get_peer_certificate ssl))
|
(unless (hostname-in-cert? hostname (SSL_get_peer_certificate ssl))
|
||||||
(error/ssl who "~a failed (certificate not valid for hostname)"
|
(error/ssl who "~a failed (certificate not valid for hostname)"
|
||||||
(if connect? "connect" "accept"))))
|
(if connect? "connect" "accept"))))
|
||||||
;; Connection complete; make ports
|
;; Connection complete; make ports
|
||||||
|
|
Loading…
Reference in New Issue
Block a user