Re: About the usage of SSL_get_ex_new_index

2012-02-08 Thread Bruce Stephens
Bruce (Riji) Cai bcai-zm9q81nvl4ufkj6hysv...@public.gmane.org writes: Not quite sure, but to my understand, the ex_data is saved into per ssl connection context, so the index to it should be per connection scope. That's not correct, no. The ex_data mechanism can be used to store many

Re: About the usage of SSL_get_ex_new_index

2012-02-08 Thread Wim Lewis
On 7 Feb 2012, at 8:50 AM, Bruce (Riji) Cai wrote: Hi all, From man page of SSL_CTX_set_verify, I saw this example snippet: /*** snippet begin */ ... mydata_t mydata; ... mydata_index =

About the usage of SSL_get_ex_new_index

2012-02-07 Thread Bruce (Riji) Cai
Hi all, From man page of SSL_CTX_set_verify, I saw this example snippet: /*** snippet begin */ ... mydata_t mydata; ... mydata_index = SSL_get_ex_new_index(0, mydata index, NULL, NULL, NULL); ...

Re: About the usage of SSL_get_ex_new_index

2012-02-07 Thread Dr. Stephen Henson
On Tue, Feb 07, 2012, Bruce (Riji) Cai wrote: Hi all, From man page of SSL_CTX_set_verify, I saw this example snippet: /*** snippet begin */ ... mydata_t mydata; ... mydata_index =

RE: About the usage of SSL_get_ex_new_index

2012-02-07 Thread Bruce (Riji) Cai
to... Thanks -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dr. Stephen Henson Sent: 2012年2月8日 1:27 To: openssl-users@openssl.org Subject: Re: About the usage of SSL_get_ex_new_index On Tue, Feb 07, 2012, Bruce (Riji) Cai wrote