Use string_to_hex, OPENSSL_hexstr2buf() doesn't exist in OpenSSL 1.0.2
Reviewed-by: Rich Salz <rsalz@openssl.org>
ret);
/* convert the PSK key to binary */
- key = OPENSSL_hexstr2buf(psk_key, &key_len);
+ key = string_to_hex(psk_key, &key_len);
if (key == NULL) {
BIO_printf(bio_err, "Could not convert PSK key '%s' to buffer\n",
psk_key);
BIO_printf(bio_s_out, "PSK client identity found\n");
/* convert the PSK key to binary */
- key = OPENSSL_hexstr2buf(psk_key, &key_len);
+ key = string_to_hex(psk_key, &key_len);
if (key == NULL) {
BIO_printf(bio_err, "Could not convert PSK key '%s' to buffer\n",
psk_key);