RE: Does Openssl cache App data -- 2nd Try..

2006-07-07 Thread David Schwartz
>    I can't quite follow you. The whole thing you are trying to avoid is>caching of application data, but this is SSL_peek's whole point. The main>difference between SSL_read and SSL_peek is that SSL_peek caches the>application data (so you can peek at it again or read it later) whereas

RE: Does Openssl cache App data -- 2nd Try..

2006-07-06 Thread Gayathri Sundar
-Original Message-From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]]On Behalf Of David SchwartzSent: Friday, July 07, 2006 10:57 AMTo: openssl-users@openssl.orgSubject: RE: Does Openssl cache App data -- 2nd Try..> a. Does this msg_callback get executed after peek? or after read?&

RE: Does Openssl cache App data -- 2nd Try..

2006-07-06 Thread David Schwartz
> a. Does this msg_callback get executed after peek? or after read? > if former, > I could > simply discard the buffer as peek does not dequeue the pkt, so the kernel > can read > it again. If its a "read", then I need to pass on that buffer to > the kernel > module > which does the actual decrypt

RE: Does Openssl cache App data -- 2nd Try..

2006-07-06 Thread Gayathri Sundar
AM To: openssl-users@openssl.org Subject: RE: Does Openssl cache App data -- 2nd Try.. > Thanks david..let me add more clarity to my requirement... > Is there someway for the application to know before calling ssl_read, > that some app data buffer can be got for sure? Only by

Re: Does Openssl cache App data -- 2nd Try..

2006-07-06 Thread Kyle Hamilton
essage- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of David Schwartz Sent: Thursday, July 06, 2006 11:05 AM To: openssl-users@openssl.org Subject: RE: Does Openssl cache App data -- 2nd Try.. > My requirement is that I dont want SSL to cache any bytes whatsoever. &g

RE: Does Openssl cache App data -- 2nd Try..

2006-07-06 Thread David Schwartz
> Thanks david..let me add more clarity to my requirement... > Is there someway for the application to know before calling ssl_read, > that some app data buffer can be got for sure? Only by putting that data in a buffer, which seems to be what you don't want. > Or can SSL_peek prevent m

RE: Does Openssl cache App data -- 2nd Try..

2006-07-06 Thread Richard Salz
> So in a crux, what can I do to ensure that openssl does not read app data > pkts > at all.. Nothing. You have no guarantee how many bytes the kernel's read() will hand back up to you. You will have to severely hack on your kernel and networking implementation to make this happen. You migh

RE: Does Openssl cache App data -- 2nd Try..

2006-07-05 Thread Gayathri Sundar
: Thursday, July 06, 2006 11:05 AM To: openssl-users@openssl.org Subject: RE: Does Openssl cache App data -- 2nd Try.. > My requirement is that I dont want SSL to cache any bytes whatsoever. > Thanks > --Gayathri That sounds like a nonsensical requirement. Suppose O

RE: Does Openssl cache App data -- 2nd Try..

2006-07-05 Thread David Schwartz
> My requirement is that I dont want SSL to cache any bytes whatsoever. > Thanks > --Gayathri That sounds like a nonsensical requirement. Suppose OpenSSL is called to read some data. It calls 'read' and gets part of a record containing application-level data but too little data