All the Irssi bugs should go here, please select the proper version when reporting the bug.
Please see the Irssi core http://www.irssi.org/ChangeLog for recent updates.
Please see the Irssi core http://www.irssi.org/ChangeLog for recent updates.
FS#305 - /connect -ssl_cert password_protected.pem problem
Attached to Project:
Irssi core bugs
Opened by Grega Pogacnik (fiction) - Thursday, 08 September 2005, 00:25 GMT+2
Opened by Grega Pogacnik (fiction) - Thursday, 08 September 2005, 00:25 GMT+2
|
DetailsI tried /connect -ssl_cert with a password protected PEM file.
23:55:15 [ircnet2] -!- Irssi: Connecting to ircs.ircnet.ee [2001:7d0:0:f37d::6667] port 6667 [23:55:15] [fic] [1:ircnet2 (change with ^X)] [Act: 45] [(status)] Enter PEM pass phrase: After that PEM pass phrase prompt irssi starts behaving weird - for every key I press I see two characters etc. I'm running irssi on FreeBSD 5.4, but that shouldn't be relevant. |
This task depends upon
irssi-ssl-passphrase.patch
#include <openssl/ssl.h>
void SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb);
void SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u);
int pem_passwd_cb(char *buf, int size, int rwflag, void *userdata);
Setting up a costum password prompt will probably fix the issue.
Attached is a patch that solves this issue, tested on FreeBSD-STABLE with the irssi subversion snapshot of 20061001.
Hope this helps.
--alex