Hello.
I have a problem with this situation:
I have this code in function A:
char keystr[1024];
...
RSA *rsa=RSA_generate_key((int)1024,0x10001,NULL,NULL);
unsigned char *ptr;
int derlen
ptr=keystr;
derlen=i2d_RSAPublicKey(rsa,&ptr);
ptr=keystr;
In a function B:
unsigned char *ptr;
int len;
ptr=keystr; //keystr is a param but its value is equal keystr in
function A.
printCadena(KCtx->keystr,KCtx->derlen);
rsa=d2i_RSAPublicKey(NULL,&ptr,KCtx->derlen);
But I obtain a NULL (rsa == NULL)
Why?
Thank you
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]