Fixed typos in code
diff --git a/library/error.c b/library/error.c
index 2ca755c..3cc3aa3 100644
--- a/library/error.c
+++ b/library/error.c
@@ -430,7 +430,7 @@
if( use_ret == -(POLARSSL_ERR_SSL_PK_TYPE_MISMATCH) )
snprintf( buf, buflen, "SSL - Public key type mismatch (eg, asked for RSA key exchange and presented EC key)" );
if( use_ret == -(POLARSSL_ERR_SSL_UNKNOWN_IDENTITY) )
- snprintf( buf, buflen, "SSL - Unkown identity received (eg, PSK identity)" );
+ snprintf( buf, buflen, "SSL - Unknown identity received (eg, PSK identity)" );
if( use_ret == -(POLARSSL_ERR_SSL_INTERNAL_ERROR) )
snprintf( buf, buflen, "SSL - Internal error (eg, unexpected failure in lower-level module)" );
if( use_ret == -(POLARSSL_ERR_SSL_COUNTER_WRAPPING) )
diff --git a/library/pk.c b/library/pk.c
index cfde265..25c9d85 100644
--- a/library/pk.c
+++ b/library/pk.c
@@ -86,7 +86,7 @@
case POLARSSL_PK_ECDSA:
return &ecdsa_info;
#endif
- /* POLARSSL_PK_RSA_ALT ommited on purpose */
+ /* POLARSSL_PK_RSA_ALT omitted on purpose */
default:
return NULL;
}
diff --git a/library/pk_wrap.c b/library/pk_wrap.c
index 96695d4..61e78fe 100644
--- a/library/pk_wrap.c
+++ b/library/pk_wrap.c
@@ -259,7 +259,7 @@
};
/*
- * EC key resticted to ECDH
+ * EC key restricted to ECDH
*/
static int eckeydh_can_do( pk_type_t type )
{