Fix link error.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 12 Jun 2016 22:22:30 +0000 (23:22 +0100)
committerRich Salz <rsalz@openssl.org>
Mon, 13 Jun 2016 01:28:12 +0000 (21:28 -0400)
Use string_to_hex, OPENSSL_hexstr2buf() doesn't exist in OpenSSL 1.0.2

Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/s_client.c
apps/s_server.c

index 80cbd94a5f580869d707d6984fb957b391bf158f..951a20277184597528e1859790ebcfaaca00c916 100644 (file)
@@ -267,7 +267,7 @@ static unsigned int psk_client_cb(SSL *ssl, const char *hint, char *identity,
                    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);
index ceacd898ccadc5a8f05eb2354ff88c88ddc5aee0..d6c53d9476fa1f1c57557a9aa30f519a8605e007 100644 (file)
@@ -376,7 +376,7 @@ static unsigned int psk_server_cb(SSL *ssl, const char *identity,
         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);