mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
Fix unused function warning in x509.c
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
90282149fa
commit
ffabb7b7da
|
|
@ -134,6 +134,8 @@ int mbedtls_x509_get_alg(unsigned char **p, const unsigned char *end,
|
||||||
/*
|
/*
|
||||||
* Convert md type to string
|
* Convert md type to string
|
||||||
*/
|
*/
|
||||||
|
#if !defined(MBEDTLS_X509_REMOVE_INFO) && defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
|
||||||
|
|
||||||
static inline const char *md_type_to_string(mbedtls_md_type_t md_alg)
|
static inline const char *md_type_to_string(mbedtls_md_type_t md_alg)
|
||||||
{
|
{
|
||||||
switch (md_alg) {
|
switch (md_alg) {
|
||||||
|
|
@ -172,6 +174,8 @@ static inline const char *md_type_to_string(mbedtls_md_type_t md_alg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
|
#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
|
||||||
/*
|
/*
|
||||||
* HashAlgorithm ::= AlgorithmIdentifier
|
* HashAlgorithm ::= AlgorithmIdentifier
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue