Return the cookie_len value from generate_cookie_callback
authorMatt Caswell <matt@openssl.org>
Wed, 17 Jun 2020 10:37:39 +0000 (11:37 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 19 Jun 2020 10:25:56 +0000 (11:25 +0100)
commitf36c3885b500786449f85cf8a89c2a925506a4ed
tree956dd9de805fc2722733dce7d71dc6be85a1b584
parentcfbe41ea9138ba5f4fb6f859a72034ba4ddc693f
Return the cookie_len value from generate_cookie_callback

The generate_cookie_callback was failing to pass back the generated
cookie length to the caller. This results in DTLS connection failures
from s_server.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12179)
apps/lib/s_cb.c