|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Enabling Session CachingHi, everyone. I'm trying to enable session caching, but my server doesn't seem to send a session ID. According to http://www.openssl.org/docs/ssl/SSL_CTX_set_session_id_context.html, all I have to do is invoke SSL_CTX_set_session_id_context() with a pointer to a string (or binary data) and the length of that string. I've done this and the desired session ID and length are correct in both the SSL_CTX structure and (during SSL_accept) in the SSL structure. However, in the Server Hello message, the session ID length is always zero. The client that connects shows a zero-length session ID, which would seem to be consistent with not sendig an ID. I'm using anonymous TLS, so there are no certificates in the server context. The code that I'm using to set up the context is: netSSLServerContextPtr = SSL_CTX_new(TLSv1_server_method());
I've tried this with netSslSessionIdContext indicating both 17- and ten-byte-long strings; neither work, so it seems not to be a string length mismatch issue. What have I missed? Thanks very much, Paul
|
|
|
Re: Enabling Session CachingOn Mon, Nov 02, 2009, Paul Suhler wrote:
> Hi, everyone. > > I'm trying to enable session caching, but my server doesn't seem to send > a session ID. > OpenSSL supports stateless session resumption which doesn't use session IDs. Well all apart from the latest snapshots which do include session IDs. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@... Automated List Manager majordomo@... |
| Free embeddable forum powered by Nabble | Forum Help |