On Wed, Feb 17, 1999, Toru Takinaka wrote:
> I found bugs in your patch.
> I debug the bugs, and it works!!
> >+ asn1 = (ASN1Obj *)ssl_ds_table_push(mc->tPublicCert, cpVHostID);
> >+ asn1->nData = i2d_X509(pX509Cert, NULL);
> >+ asn1->cpData = ap_palloc(mc->pPool, asn1->nData);
> >+ ucpp = &asn1->cpData; i2d_X509(pX509Cert, ucpp); /* 2nd arg increments */
> + asn1->cpData -= asn1->nData;
>
> >+ asn1 = (ASN1Obj *)ssl_ds_table_push(mc->tPrivateKey, cpVHostID);
> >+ asn1->nData = i2d_RSAPrivateKey(pRSAKey, NULL);
> >+ asn1->cpData = ap_palloc(mc->pPool, asn1->nData);
> >+ ucpp = &asn1->cpData; i2d_RSAPrivateKey(pRSAKey, ucpp); /* 2nd arg
>increments */
> + asn1->cpData -= asn1->nData;
Oh hell, I'm an idiot. I've extra created the ucpp variable and added the
comment to make sure the asn1->cpData is not changed and not forget that it's
changed, but I've done it incorrectly, of course. Sorry, you're right. The
asn1->cpData is still changed and this way breaks. But why to the hell did it
work on my FreeBSD box... hmmm... confusing. Will be fixed. Thanks for the
hint.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
Apache Interface to SSLeay (mod_ssl) www.engelschall.com/sw/mod_ssl/
Official Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]