]> Sergey Matveev's repositories - public-inbox.git/commit
daemon: use ->can to check for IO::Socket::SSL
authorEric Wong <e@yhbt.net>
Tue, 16 Jun 2020 22:31:20 +0000 (22:31 +0000)
committerEric Wong <e@yhbt.net>
Sun, 21 Jun 2020 00:42:32 +0000 (00:42 +0000)
commit8fd41797b24736dfdccfacc5acc473234a29758a
tree0a6f467777653ff98a5b933f0bd8bb748c809ff2
parent74c897120af8ac4cac17d9f76d21c84f903e24be
daemon: use ->can to check for IO::Socket::SSL

Doing a ref($obj) string comparison ties us to IO::Socket::SSL
(and OpenSSL) In the future, we may support GnuTLS or other TLS
implementations.  This was already done in the IMAP code.
lib/PublicInbox/DS.pm
lib/PublicInbox/HTTP.pm
lib/PublicInbox/NNTP.pm