Skip to content

Supybot Website

Sections
Personal tools
You are here: Home » Supybot Discussion Forums » Developer Forum » SSL support added (to this irc bot)

 • SSL support added (to this irc bot)

Document Actions
Replies: 3   Views: 4736
Up one level
You need to be a registered member to post to this forum. Register now.

 • SSL support added (to this irc bot)

Posted by ali at 11:00 March 04, 2005
I have added basic SSL server support to the Twisted driver, using PyOpenSSL. Users identify that a network should use SSL connections by setting the <network>.ssl registry value to True.

Currently, all it does is connect to the server. I am happy to take suggestions on what it *should* do, for example verify server certificates etc.

I would implement this in a way that other drivers would be able use (if they ever get SSL-able).

Also, should I change the supybot-wizard to ask the SSL question? It strikes me that if users can't connect the bot to a server, they can't change the registry value to indicate SSL (without hand-editing the registry). On the other hand, users may not have Twisted installed at all.

Regards,

Ali
ali
Member
Posts: 11

 • Re: SSL support added (to this irc bot)

Posted by jemfinch at 01:59 March 06, 2005
No, I imagine only advanced users will use the SSL support.

Some code should probably be added to the Socket driver to make sure it refuses to connect when network.ssl is set to True.

Jeremy
Anonymous
Posts: n/a

 • Re: SSL support added (to this irc bot)

Posted by ali at 05:18 March 06, 2005

Should one call self.irc.die() on this kind of fatal error? Or should the Irc object be left hanging around?

Ali

ali
Member
Posts: 11

 • Re: SSL support added (to this irc bot)

Posted by jemfinch at 02:33 March 11, 2005
A plugin should never call irc.die unless it wants the entire bot process to exit. Irc objects never die.

Jeremy
Anonymous
Posts: n/a

 

Powered by Plone

This site conforms to the following standards: