aanoaa / p5-hubot

hubot perl port
15 stars 3 forks source link

Check if Net::SSLeay is installed when HUBOT_IRC_ENABLE_SSL=1 #33

Closed ghost closed 11 years ago

ghost commented 11 years ago

AnyEvent::Handle uses Net::SSLeay, but it doesn't have a dependency on that module.

https://metacpan.org/module/AnyEvent::Handle

TLS mode requires Net::SSLeay to be installed (it will be loaded automatically when you try to create a TLS handle): this module doesn't have a dependency on that module, so if your module requires it, you have to add the dependency yourself. If Net::SSLeay cannot be loaded or is too old, you get an EPROTO error.

It would be good if hubot checks if Net::SSLeay is installed when HUBOT_IRC_ENABLE_SSL=1

aanoaa commented 11 years ago

https://metacpan.org/source/AnyEvent::TLS uses Net::SSLeay

ghost commented 11 years ago

https://metacpan.org/source/MLEHMANN/AnyEvent-7.04/lib/AnyEvent/Handle.pm#L2069

AnyEvent::Handle uses Net::SSLeay too.