fix several typos and extra blank spaces

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
diff --git a/library/ssl_misc.h b/library/ssl_misc.h
index 37ff223..2c95afe 100644
--- a/library/ssl_misc.h
+++ b/library/ssl_misc.h
@@ -1620,7 +1620,7 @@
  *
  * \param tls_id    The TLS ID to look for
  * \return          A pointer to a const string with the proper name. If TLS
- *                  ID is not suppoted, a NULL pointer is returned instead.
+ *                  ID is not supported, a NULL pointer is returned instead.
  */
 const char* mbedtls_ssl_get_curve_name_from_tls_id( uint16_t tls_id );
 #endif
diff --git a/library/ssl_tls12_client.c b/library/ssl_tls12_client.c
index 4ddb187..a7a1fc1 100644
--- a/library/ssl_tls12_client.c
+++ b/library/ssl_tls12_client.c
@@ -2125,8 +2125,8 @@
         return( MBEDTLS_ERR_SSL_ILLEGAL_PARAMETER );
     }
 
-    /* If the above conversion to TLS ID was fine, then also this one will be, 
-       so there is no need to check the retun value here */
+    /* If the above conversion to TLS ID was fine, then also this one will be,
+       so there is no need to check the return value here */
     mbedtls_ssl_get_psa_curve_info_from_tls_id( tls_id, &ecc_family,
                                 &ssl->handshake->ecdh_bits );
 
diff --git a/library/ssl_tls12_server.c b/library/ssl_tls12_server.c
index 2d7e572..a28cd67 100644
--- a/library/ssl_tls12_server.c
+++ b/library/ssl_tls12_server.c
@@ -2712,7 +2712,7 @@
         }
 
         /* If the above conversion to TLS ID was fine, then also this one will
-            be, so there is no need to check the retun value here */
+           be, so there is no need to check the return value here */
         mbedtls_ssl_get_psa_curve_info_from_tls_id( tls_id, &ecc_family,
                                 &ssl->handshake->ecdh_bits );