Hello
As soon as I use MIRACL (http://indigo.ie/~mscott/) in a module,
irssi (or whatever) kills its cinstr function (and probably more).
I have used latest MIRACL lib, it compiled great. All example
programs work aswell. I am very sure its not a MIRACL issue.
The problem with cinstr will show up ONLY when using it in a
plugin. I have tried latest CVS build aswell as latest official build.
Therefore I suspect irssi to have some problem with using
libraries in plugins.
I have also used 2 different linux machines to test it.
It looks like that:
#include "miracl.h"
void west_init(void)
{
unsigned char raw[130], key1[1000]={0}, key2[1000]={0};
unsigned long seed, i;
csprng RNG;
miracl *mip;
big keyA, prime, keyB;
mip=mirsys(1000,16);
mip->TRACER=TRUE;
mip->IOBASE=16;
keyA=mirvar(0);
keyB=mirvar(0);
prime=mirvar(0);
strong_init(&RNG, sizeof(raw), raw, seed);
strong_bigdig(&RNG, 1024, 2, keyA); <== usually kills cinstr, but
// sometimes cinstr is not working no matter if any strong_* function was used
strong_kill(&RNG);
cinstr(prime, "12345"); <= result prime = 0 :(
....
Maybe someone could look into irssi's module handling, thank you.
bye