RE: About the usage of SSL_get_ex_new_index

2012-02-07 Thread Bruce (Riji) Cai
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. While from my observation, the returned index is increased when SSL_get_ex_new_index is called once, no matter called by A connection or B connection.

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 = SSL_get

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: Openssl as a library in iOS/Certificate Signing Request PKCS10

2012-02-07 Thread Dr. Stephen Henson
On Mon, Feb 06, 2012, Kacper86 wrote: > Hi, > > I would like to use openssl library in my iOS application > (Objective-C) to generate certificate signing request. > > If I wanted to use openssl application in linux I would write > something like that: > > openssl req -new -newkey rsa:2048 -node

openssl_private_encrypt crashes browser after 10 seconds

2012-02-07 Thread ownager
Hi everyone, i got a serious problem here. Here is the setup const certificate_path = 'license/testpub.pem'; const pass_phrase = '12345'; const private_key_path = 'license/test.pem'; /** * * Encrypt data using a private key that has bee