DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31766>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31766

Error getting client certificate under iPlanet 6.1/Tomact 5.0.28





------- Additional Comments From [EMAIL PROTECTED]  2004-10-22 05:31 -------
I also wrote the following (equivalent?) code to do the same thing.  The only 
thing I am unsure of is what are the implications of using "jk_pool_alloc" to 
allocate the new memory.  Will this be deallocated automatically?

    /* Get the parameter from the parameter block */
    char *certData = jk_pool_alloc(
        &private_data->p, (strlen(s->ssl_cert) + 80) * sizeof(char *));
    certData[0] = 0;

    /* Build the new data for passing to Tomcat, since the data is  */
    /* Base64 encoded, but is missing the CERTIFICATE tags at the   */
    /* start and end */
    strcat(certData, "-----BEGIN CERTIFICATE-----\r\n");
    strcat(certData, s->ssl_cert);
    strcat(certData, "\r\n-----END CERTIFICATE-----\r\n");

    //jk_log(logger, JK_LOG_INFO, "Got client cert \n%s\n", certData);

    /* Use the new data */
    s->ssl_cert = certData;

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to