Re: Doubts about certificates

2010-07-05 Thread Sebastián Treu
Thanks to both. It's much clear to me now. Best regards, -- If you want freedom, compile the source. Sebastián Treu http://labombiya.com.ar __ OpenSSL Project http://www.openssl.org User Su

Doubts about certificates

2010-07-05 Thread Sebastián Treu
gather that certificate to be installed in the fake-server, how can we resolve this or what precautions we need to take for this? Is it a kind of private certificate that we can share? Best regards, -- If you want freedom, compile the source. Sebastiá

Re: Understanding SSL_read()/SSL_write()

2009-12-12 Thread Sebastián Treu
her the list anymore with SSL I/Os (*sic* at least I hope), -- If you want freedom, compile the source. Get gentoo. Sebastián Treu http://labombiya.com.ar __ OpenSSL Project h

Re: Understanding SSL_read()/SSL_write()

2009-12-12 Thread Sebastián Treu
On Sat, Dec 12, 2009 at 7:19 AM, Sebastián Treu wrote: > differents arguments. I also noted that SSL_write() is "clever" enough > to send _any_ length, so segmented writes will be overriding that > warning (if I undestood what man wanted to say). When I say clever > enough,

Re: Understanding SSL_read()/SSL_write()

2009-12-12 Thread Sebastián Treu
ing a 3mb file) SSL_write() sends it by it's own (yielding want_write until it finish with buffered data). The main reason the solution was discarted is because that warning on man pages. Regards, -- If you want freedom, compile the source. Get gentoo. Sebastián Treu http://labombiya.com

Re: Understanding SSL_read()/SSL_write()

2009-12-11 Thread Sebastián Treu
f using the error pending on select() and the sockets error but no one seems to be useful (at least for me) on this issue. Thanks in advance, Regards, -- If you want freedom, compile the source. Get gentoo. Sebastián Treu http://labombiya.com.ar _

Re: SHA-1() question

2009-12-04 Thread Sebastián Treu
0: 01010101 1: 01001000 2: 10111001 3: 1111 4: 1010 5: 11101010 6: 1011 7: 1011 8: 01011101 9: 10: 00101011 11: 11001000 12: 00011100 13: 11010101 14: 10010011 15: 0010 16: 1010 17: 10001001 18: 1010 19: 10101011 Thanks again guys ;-) Regards, -- If you

SHA-1() question

2009-12-02 Thread Sebastián Treu
se the openssl toolkit? I ask this cause sha1sum results are 41 bytes long. the SHA-1() doc says 20bytes for output. Regards, -- If you want freedom, compile the source. Get gentoo. Sebastián Treu http://labombiya.com.ar _

ssl3_write_pending() and SIGSEGV

2009-11-18 Thread Sebastián Treu
eaded", how can we assure that ssl3_write_pending() will write on an existing BIO? Regards, -- If you want freedom, compile the source. Get gentoo. Sebastián Treu http://labombiya.com.ar __ OpenSSL Project

Re: SSL_accept hanging with blocking socket

2009-11-16 Thread Sebastián Treu
27;s bugged until now but maybe you can find some examples on it. (I'm not a developer, just cs student). http://code.google.com/p/tellapic/source/browse/trunk/server.c Regards, -- If you want freedom, compile the source. Get gentoo. Sebastián Treu http://labombiya.com.ar __

Re: Searching the "true" about multithreading

2009-11-11 Thread Sebastián Treu
Hi David, On Wed, Nov 11, 2009 at 6:02 PM, David Schwartz wrote: > > Sebastián Treu wrote: > >> When talking about thead-safeness and the developer responsability. >> Say that I implement static locking callbacks on my application with >> non-blocking BIO. > > Ye

Re: Searching the "true" about multithreading

2009-11-11 Thread Sebastián Treu
while I'm reading/writing on this BIO another thread could be reading/writing to another one. Just that internally maybe it will block on accessing to OpenSSL structures by the callbacks mentioned above. Is this how it works? Regards, -- If you want freedom, compile the source. G

Re: Searching the "true" about multithreading

2009-11-07 Thread Sebastián Treu
Hi David, On Sat, Nov 7, 2009 at 2:35 PM, David Schwartz wrote: > > Sebastián Treu wrote: > >> The main idea was avoid polling in an infinite loop consuming CPU >> resources. I wrote that code thinking in: "If the particular client >> socket is calling our (thread

Re: Searching the "true" about multithreading

2009-11-07 Thread Sebastián Treu
roots of the multithreaded server design) I mean, how can you block execution waiting for a "noise" on the file descriptor to take some action without using select()? I really appreciatte your concern on letting me know my err

Re: Searching the "true" about multithreading

2009-11-05 Thread Sebastián Treu
> for SSL_read() and SSL_get_error() checking the SSL_ERROR_WANT_READ or > SSL_ERROR_WANT_WRITE, when he fetches some data, he then gain > exclusive access to the buffer queue, puts data on it, singals the > "consumer" and goes on to another read. http://pastebin.ca/1658646 Regards, -- If

Re: Searching the "true" about multithreading

2009-11-05 Thread Sebastián Treu
in idea that I have implemented and I'm testing out. Basically, the "consumer" is something like this: http://pastebin.ca/1658628 The code is only with a buffer and not with a queue. I'm thinking on using a queue more ahead. Please, if you have some information about threadin

Re: openssl C server and java clients

2009-09-04 Thread Sebastián Treu
new connection. Regards, -- Sebastián Treu http://labombiya.com.ar __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List

Re: openssl C server and java clients

2009-09-04 Thread Sebastián Treu
tively places. The code is NOT exactly as the one I have, i removed comments and maybe a ';' is missing. I say this just in case someone would say that I have missings {'s and if-else's are wrong. I insist it should be a bad file descriptor association by my part, or lack of the

Re: openssl C server and java clients

2009-09-03 Thread Sebastián Treu
On Thu, Sep 3, 2009 at 7:11 PM, Dave Thompson wrote: >> From: owner-openssl-us...@openssl.org On Behalf Of Sebastián Treu >> Sent: Thursday, 03 September, 2009 06:06 > >> After writing a server in C using select() (a >> multiplexed server) and a java client ... >>

Re: openssl C server and java clients

2009-09-03 Thread Sebastián Treu
openssl and put it on a .jks calling the java app with: -Djavax.net.ssl.trustStore=file.jks My bad, Cheers -- Sebastián Treu http://labombiya.com.ar __ OpenSSL Project http://www.openssl.org User

openssl C server and java clients

2009-09-03 Thread Sebastián Treu
ethod() as method. I followed a couple of examples out there on the web on how to connect to an SSL server and all say almost the same as: SSLSocketFactory s = (SSLSocketFactory) SSLSocketFactory.getDefault(); Socket ns = s.createSocket(host, port); I hope someone can at least help a little,