mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-11-09 23:00:03 +08:00
Fix style issues
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
parent
2481daa309
commit
f9b95cedaa
@ -319,7 +319,7 @@ int mbedtls_x509_dn_gets(char *buf, size_t size, const mbedtls_x509_name *dn);
|
|||||||
/**
|
/**
|
||||||
* \brief Convert the pk_key_type to a string.
|
* \brief Convert the pk_key_type to a string.
|
||||||
*
|
*
|
||||||
* \param[in] pk A mbedtls_pk_context struct containing the pk_key_type to
|
* \param[in] pk A mbedtls_pk_context struct containing the pk_key_type to
|
||||||
convert
|
convert
|
||||||
* \return A pointer to a string containing the pk_key_type.
|
* \return A pointer to a string containing the pk_key_type.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -130,9 +130,9 @@ const char *pk_key_type_to_string(const mbedtls_pk_context *pk)
|
|||||||
psa_key_type_t key_type;
|
psa_key_type_t key_type;
|
||||||
|
|
||||||
key_type = mbedtls_pk_get_key_type(pk);
|
key_type = mbedtls_pk_get_key_type(pk);
|
||||||
if(PSA_KEY_TYPE_IS_RSA(key_type)){
|
if (PSA_KEY_TYPE_IS_RSA(key_type)) {
|
||||||
return "RSA";
|
return "RSA";
|
||||||
} else if(PSA_KEY_TYPE_IS_ECC(key_type)){
|
} else if (PSA_KEY_TYPE_IS_ECC(key_type)) {
|
||||||
return "EC";
|
return "EC";
|
||||||
} else {
|
} else {
|
||||||
return "NONE";
|
return "NONE";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user