net/tls: improve error handling in mbedtls_dhm_calc_secret()
authorJunyeon LEE <junyeon2.lee@samsung.com>
Thu, 20 Apr 2017 07:00:02 +0000 (16:00 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Sat, 6 May 2017 10:51:22 +0000 (19:51 +0900)
commit5e8ff0aae1da4d14fba2a99d02117bdcc5363a11
treea9ad13aad29d7eff16d1a4b7b632fd2c1fd4d6b0
parent09431def2320c7ca27ee5e0863866da3bccfa2b2
net/tls: improve error handling in mbedtls_dhm_calc_secret()

In case of ctx is NULL or output_size is specified less than expected,
we'd rather bail out earlier without bothering with
see_supported_dhm_size().

Change-Id: I222a7a997de2ce6e27d2525c86a5e6fc9557b147
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
os/net/tls/dhm.c