mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-11 01:11:42 +08:00
Correct compile-time guard around unhexify() in ssl_server2
This commit is contained in:
parent
a34ff5b9a2
commit
554b6ea30a
@ -924,7 +924,8 @@ int sni_callback( void *p_info, mbedtls_ssl_context *ssl,
|
|||||||
|
|
||||||
#endif /* SNI_OPTION */
|
#endif /* SNI_OPTION */
|
||||||
|
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED)
|
#if defined(MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED) || \
|
||||||
|
defined(MBEDTLS_SSL_CID)
|
||||||
|
|
||||||
#define HEX2NUM( c ) \
|
#define HEX2NUM( c ) \
|
||||||
do \
|
do \
|
||||||
@ -967,6 +968,10 @@ int unhexify( unsigned char *output, const char *input, size_t *olen )
|
|||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED)
|
||||||
|
|
||||||
typedef struct _psk_entry psk_entry;
|
typedef struct _psk_entry psk_entry;
|
||||||
|
|
||||||
struct _psk_entry
|
struct _psk_entry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user