Don't skip leading zeroes in PSK keys.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 8 Jun 2016 18:01:42 +0000 (19:01 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 12 Jun 2016 19:10:51 +0000 (20:10 +0100)
commit80e07cc7f0ce97b8898780082d70e0cb0adb3f61
tree7764123b7e213c8106aa2a7516698bd7bd9e8474
parent63b2499b6733022c6d1906709df4d808c44b634e
Don't skip leading zeroes in PSK keys.

Don't use BN_hex2bn() for PSK key conversion as the conversion to
BN and back removes leading zeroes, use OPENSSL_hexstr2buf() instead.

RT#4554

Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit 6ec6d5207187dbc1dbd971bd50ea17c9a94906d0)

Conflicts:
apps/s_client.c
apps/s_server.c
apps/s_client.c
apps/s_server.c