Re: Surprising implementation of SSL.hasOp

2012-10-04 Thread Christopher Schultz
Rainer, On 10/4/12 5:27 PM, Rainer Jung wrote: > On 04.10.2012 23:14, Christopher Schultz wrote: >> For instance, we could use a technique similar to the above to set a >> static bitset: >> >> static int supported_ssl_opts = 0; >> >> initialize() { >> ... >> #ifdef SSL_OP_MICROSOFT_SESS_ID_BUG

Re: Surprising implementation of SSL.hasOp

2012-10-04 Thread Rainer Jung
On 04.10.2012 23:14, Christopher Schultz wrote: Rainer, On 10/3/12 2:49 PM, Christopher Schultz wrote: I like the idea of using a macro to compact the code a bit, but in spite of tcnative's use of macros that don't contain "arguments" for all data that will be operated on, I prefer to be explic

Re: Surprising implementation of SSL.hasOp

2012-10-04 Thread Christopher Schultz
Rainer, On 10/3/12 2:49 PM, Christopher Schultz wrote: > I like the idea of using a macro to compact the code a bit, but in spite > of tcnative's use of macros that don't contain "arguments" for all data > that will be operated on, I prefer to be explicit about mentioning all > data that will be u

Re: Surprising implementation of SSL.hasOp

2012-10-03 Thread Christopher Schultz
Rainer, On 10/3/12 1:30 PM, Rainer Jung wrote: > On 03.10.2012 18:02, Christopher Schultz wrote: >> Looking at the OpenSSL API (wow, I really miss javadoc), it doesn't >> appear that there's any function that can sniff the capabilities of the >> engine and check to see whether a particular option

Re: Surprising implementation of SSL.hasOp

2012-10-03 Thread Rainer Jung
Hi Chris, On 03.10.2012 18:02, Christopher Schultz wrote: Looking at the OpenSSL API (wow, I really miss javadoc), it doesn't appear that there's any function that can sniff the capabilities of the engine and check to see whether a particular option is supported. Instead, the technique of using