> From: Jeffrey Altman <[EMAIL PROTECTED]>
> 
> jaltman> I'm slowly sorting things out.  To initiate compression in an app make
> jaltman> the following call after SSL_library_init()
> jaltman> 
> jaltman> #ifdef ZLIB
> jaltman>     COMP_METHOD * cm = COMP_zlib();
> jaltman>     if (cm->type != NID_undef)
> jaltman>         SSL_COMP_add_compression_method(cm->type, cm);
> jaltman> #endif /* ZLIB */
> 
> There's one fault in that code.  The first argument to
> SSL_COMP_add_compression_method() is supposed to be the TLS algorithm
> number.  cm->type is the OpenSSL NID for said algorithm, and that's a
> higly internal number that is not to be mixed with anything internal,
> really.
> 
> Of course, since there isn't any algorithm number assigned to ZLIB for
> TLS, the number you use is completely at your leasure :-).  Don't
> count on the above code to work when such a number is assigned,
> however... 

you are absolutely correct.  That is why I need to write the
Internet-Drafts so that numbers can be assigned.  Some much to do, 
so little time ...

I will bring this up at the TLS working group meeting in San Diego 
in two weeks.



                  Jeffrey Altman * Sr.Software Designer
                 The Kermit Project * Columbia University
               612 West 115th St * New York, NY * 10025 * USA
     http://www.kermit-project.org/ * [EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to