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 18:44:17 +0000 (19:44 +0100)
commit6ec6d5207187dbc1dbd971bd50ea17c9a94906d0
tree95696a2598fcfb82109787255720623b9cdd44ce
parenta3ef2c16792ccbf65ef9861e0df6e7c277bcf770
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>
apps/s_client.c
apps/s_server.c