RE: SSL_peek vs. SSL_pending...

2007-09-03 Thread David Schwartz
> sorry, seems I'm unable to get it (I read it several times :)). I > think the select could (if needed) store some flag (associated > with some fd) to remember that it returned that read must not > block by guarantee. Maybe some list including all fds where > select returned this. Any OS function

Re: BIO_set_nbio_accept functionality

2007-09-03 Thread Jim Fox
Doesn't need a faq. The man page says the purpose of the BIO_set_nbio_accept macro is to set blocking or non-blocking mode. Seems like that's what it will do. Jim On Sep 3, 2007, at 11:31 AM, Jim Marshall wrote: Jim Marshall wrote: I'm looking at using non-blocking I/O in some places i

Re: SSL_peek vs. SSL_pending...

2007-09-03 Thread Steffen DETTMER
* David Schwartz wrote on Thu, Aug 30, 2007 at 13:44 -0700: > > If the first byte (or any part of the buffer) could be > > written instantly or (e.g. if no select returned ready before > > :)) after some amount of time waited, write should return to > > give the calling application the control. >

Re: BIO_set_nbio_accept functionality

2007-09-03 Thread Jim Marshall
Jim Marshall wrote: I'm looking at using non-blocking I/O in some places in my code, and I have a question. The 'BIO_set_nbio_accept' says it will set the underlying socket to blocking/non-blocking mode, but all the examples and stuff I see say to use 'BIO_socket_ioctl(SSL_get_fd(ssl),FIONBIO,

Re: usage of DES_encrypt1 in 0.9.7j

2007-09-03 Thread Marek Marcola
Hello, > Really no help with that? I spend so much time on it and you are my last > hope... > > Thanks, > Koza > > > Koza wrote: > > > > I'd like to use function des_encrypt1 and I have the following code: > > > > const_DES_cblock key= {0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11}; > > DES_key_s

Re: Use Rand_Seed on windows?

2007-09-03 Thread Martin Salo
Ok, thanks a lot :) Original-Nachricht > Datum: Mon, 3 Sep 2007 15:02:49 +0200 > Von: "Dr. Stephen Henson" <[EMAIL PROTECTED]> > An: openssl-users@openssl.org > Betreff: Re: Use Rand_Seed on windows? > On Mon, Sep 03, 2007, Martin Salo wrote: > > > Hello Mailinglist, > > > >

Re: Use Rand_Seed on windows?

2007-09-03 Thread Dr. Stephen Henson
On Mon, Sep 03, 2007, Martin Salo wrote: > Hello Mailinglist, > > in the OpenSSL documentation is written that I should initialize with > RAND_seed() before using RSA_public_encrypt() and RSA_generate_key_ex(). But > I havent found any good examples that show how to do this. (For Windows) > Ope

Use Rand_Seed on windows?

2007-09-03 Thread Martin Salo
Hello Mailinglist, in the OpenSSL documentation is written that I should initialize with RAND_seed() before using RSA_public_encrypt() and RSA_generate_key_ex(). But I havent found any good examples that show how to do this. (For Windows) I found this example in the test folder over and over ag

Re: usage of DES_encrypt1 in 0.9.7j

2007-09-03 Thread Koza
Really no help with that? I spend so much time on it and you are my last hope... Thanks, Koza Koza wrote: > > I'd like to use function des_encrypt1 and I have the following code: > > const_DES_cblock key= {0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11}; > DES_key_schedule k; > DES_set_key_unchec

Re: How to use RSA?

2007-09-03 Thread Martin Salo
Thanks a lot. :-))) Original-Nachricht > Datum: Sat, 1 Sep 2007 20:13:50 +0300 > Von: "Stefan Vatev" <[EMAIL PROTECTED]> > An: openssl-users@openssl.org > Betreff: Re: How to use RSA? > You might find this useful : > http://e-doc.svn.sourceforge.net/viewvc/e-doc/trunk/ossl/ >

Re: leaking ?

2007-09-03 Thread jimmy bahuleyan
kris vandercapellen wrote: > Well, not like I'm doing it now anyway : > > Initthread -> array of connections <-> push thread <-> array of > connections <- cleanup thread > > I guess I must be missing something :) > I think the best bet would be to valgrind with some minimal connections and iden

Re: leaking ?

2007-09-03 Thread kris vandercapellen
Well, not like I'm doing it now anyway : Initthread -> array of connections <-> push thread <-> array of connections <- cleanup thread I guess I must be missing something :) On 9/3/07, kris vandercapellen <[EMAIL PROTECTED]> wrote: > Nope, still didn't solve the memory issue. > For now it looks

Re: leaking ?

2007-09-03 Thread kris vandercapellen
Nope, still didn't solve the memory issue. For now it looks like openssl isn't able to share connections in between threads. On 8/31/07, Marek Marcola <[EMAIL PROTECTED]> wrote: > Hello, > > StartupThreads are getting a incomming connection, create a > > SSL_new(ctx), create a BIO_new(BIO_s_socket