Matt Caswell
94f98a9019
Remove cookie validation return value trick
...
In the DTLS ClientHello processing the return value is stored in |ret| which
by default is -1. |ret| is only updated to a positive value once we are past
all points where we could hit an error. We wish to return 1 on success or 2
on success *and* we have validated the DTLS cookie. Previously on successful
validation of the cookie we were setting |ret| to -2, and then once we were
past all error points we set |ret = -ret|. This is non-obvious behaviour and
could be error prone. This commit tries to make this a bit more intuitive.
Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-12-01 15:23:42 +00:00
..
2015-09-20 14:21:18 +01:00
2015-08-28 11:59:23 -04:00
2015-08-11 22:22:38 +01:00
2015-11-10 18:44:56 +00:00
2015-03-19 11:11:22 +00:00
2015-11-04 14:46:03 +00:00
2015-05-22 09:44:44 +01:00
2015-01-22 09:31:38 +00:00
2015-11-10 19:24:20 +00:00
2015-02-27 20:31:28 +00:00
2015-01-22 09:31:38 +00:00
2012-05-10 15:01:26 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2015-07-27 16:50:38 +01:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-03-19 12:58:35 +00:00
2015-01-22 09:31:38 +00:00
2015-04-29 17:23:45 +01:00
2015-04-08 16:28:42 +02:00
2015-09-02 00:37:58 +01:00
2015-11-21 05:23:20 -05:00
2015-11-20 15:47:44 +00:00
2015-11-20 15:47:44 +00:00
2015-11-24 21:56:33 +01:00
2015-01-22 09:31:38 +00:00
2015-07-30 10:18:43 +01:00
2015-12-01 15:23:42 +00:00
2015-09-02 00:29:00 +01:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-09-16 18:09:00 +01:00
2015-11-24 21:54:38 +01:00
2015-11-20 15:47:44 +00:00
2015-03-18 12:31:06 +00:00
2015-01-22 09:31:38 +00:00
2015-11-20 15:47:44 +00:00
2015-11-24 21:54:38 +01:00
2015-11-20 15:47:44 +00:00
2015-11-20 15:47:44 +00:00
2015-09-02 00:01:29 +01:00
2015-05-05 19:50:12 +01:00
2015-01-22 09:31:48 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-07 02:15:35 +01:00
2015-11-20 15:47:44 +00:00
2015-05-26 12:42:40 +02:00
2015-01-22 09:31:38 +00:00
2015-11-20 15:47:44 +00:00
2015-01-22 09:31:38 +00:00
2015-11-20 15:47:44 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-01-22 09:31:38 +00:00
2015-10-23 20:32:58 +02:00
2015-04-16 13:50:01 -04:00