If a callback is generating a new session ID for SSLv2, then upon exiting,
authorGeoff Thorpe <geoff@openssl.org>
Wed, 21 Feb 2001 21:38:32 +0000 (21:38 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Wed, 21 Feb 2001 21:38:32 +0000 (21:38 +0000)
commitec0f19597ee5358dd9f455db997f86f47008802c
treeb65b7465fd530d9c96481cf6756a2abe76e5906b
parentfa2b8db4994d61f4a907a6a97568d6f72f20568f
If a callback is generating a new session ID for SSLv2, then upon exiting,
the ID will be padded out to 16 bytes if the callback attempted to generate
a shorter one. The problem is that the uniqueness checking function used in
callbacks may mistakenly think a 9-byte ID is unique when in fact its
padded 16-byte version is not. This makes the checking function detect
SSLv2 cases, and ensures the padded form is checked rather than the shorter
one passed by the callback.
ssl/ssl_lib.c