Correct compile-time guard around unhexify() in ssl_server2
This commit is contained in:
parent
a34ff5b9a2
commit
554b6ea30a
1 changed files with 6 additions and 1 deletions
|
@ -924,7 +924,8 @@ int sni_callback( void *p_info, mbedtls_ssl_context *ssl,
|
|||
|
||||
#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 ) \
|
||||
do \
|
||||
|
@ -967,6 +968,10 @@ int unhexify( unsigned char *output, const char *input, size_t *olen )
|
|||
return( 0 );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_KEY_EXCHANGE__SOME__PSK_ENABLED)
|
||||
|
||||
typedef struct _psk_entry psk_entry;
|
||||
|
||||
struct _psk_entry
|
||||
|
|
Loading…
Reference in a new issue