Clean up server key exchange EC point handling. Encode the point directly
authorjsing <jsing@openbsd.org>
Fri, 14 Apr 2017 15:19:39 +0000 (15:19 +0000)
committerjsing <jsing@openbsd.org>
Fri, 14 Apr 2017 15:19:39 +0000 (15:19 +0000)
commitc8ed7fea408e1363b5a824b3593709c9bb82f415
tree2a76ab350f057907e3acf8b32e3b514b7da9218c
parente165cac938b05211a6cba493f95905bf8eacf546
Clean up server key exchange EC point handling. Encode the point directly
into the CBB memory, rather than mallocing and memcpying, which also makes
makes the code more consistent with the client. Add a missing check for the
first EC_POINT_point2oct() call.

ok beck@
lib/libssl/ssl_srvr.c