Irssi core bugs

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.
| Tasklist |

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
Task Type Bug Report
Category core
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version Irssi 0.8.9
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

I 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

Comment by Grega Pogacnik (fiction) - Saturday, 10 September 2005, 01:41 GMT+2
From openssl man:

#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.
Comment by Alex Bramley (fluffle) - Tuesday, 03 October 2006, 18:20 GMT+2
I ran into the same issue, and you were correct.

Attached is a patch that solves this issue, tested on FreeBSD-STABLE with the irssi subversion snapshot of 20061001.

Hope this helps.

--alex

Loading...