Go to file
Adam Langley 01797e309f psk_client_callback, 128-byte id bug.
Fix a bug in handling of 128 byte long PSK identity in
psk_client_callback.

OpenSSL supports PSK identities of up to (and including) 128 bytes in
length. PSK identity is obtained via the psk_client_callback,
implementors of which are expected to provide a NULL-terminated
identity. However, the callback is invoked with only 128 bytes of
storage thus making it impossible to return a 128 byte long identity and
the required additional NULL byte.

This CL fixes the issue by passing in a 129 byte long buffer into the
psk_client_callback. As a safety precaution, this CL also zeroes out the
buffer before passing it into the callback, uses strnlen for obtaining
the length of the identity returned by the callback, and aborts the
handshake if the identity (without the NULL terminator) is longer than
128 bytes.
2014-06-20 13:17:37 -07:00
crypto psk_client_callback, 128-byte id bug. 2014-06-20 13:17:37 -07:00
doc Inital import. 2014-06-20 13:17:32 -07:00
include/openssl ChaCha20-Poly1305 support. 2014-06-20 13:17:35 -07:00
ssl psk_client_callback, 128-byte id bug. 2014-06-20 13:17:37 -07:00
tool Add AEAD speed tests to the tool binary. 2014-06-20 13:17:35 -07:00
util ChaCha20-Poly1305 support. 2014-06-20 13:17:35 -07:00
.clang-format Inital import. 2014-06-20 13:17:32 -07:00
.gitignore Inital import. 2014-06-20 13:17:32 -07:00
BUGS Inital import. 2014-06-20 13:17:32 -07:00
BUILDING Inital import. 2014-06-20 13:17:32 -07:00
CMakeLists.txt Inital import. 2014-06-20 13:17:32 -07:00