mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Rename SKIP_SUITE to something more descriptive. Add some comments.
This commit is contained in:
@@ -43502,7 +43502,8 @@ unsigned long wolfSSL_ERR_peek_error_line_data(const char **file, int *line,
|
|||||||
#if defined(OPENSSL_ALL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)
|
#if defined(OPENSSL_ALL) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)
|
||||||
|
|
||||||
|
|
||||||
static WC_INLINE int SKIP_SUITE(byte suite0, byte suite)
|
/* Is the specified cipher suite a fake one used an an extension proxy? */
|
||||||
|
static WC_INLINE int SCSV_Check(byte suite0, byte suite)
|
||||||
{
|
{
|
||||||
(void)suite0;
|
(void)suite0;
|
||||||
(void)suite;
|
(void)suite;
|
||||||
@@ -43511,6 +43512,7 @@ static WC_INLINE int SKIP_SUITE(byte suite0, byte suite)
|
|||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
#ifdef BUILD_TLS_QSH
|
#ifdef BUILD_TLS_QSH
|
||||||
|
/* This isn't defined as a SCSV, but it acts like one. */
|
||||||
if (suite0 == QSH_BYTE && suite == TLS_QSH)
|
if (suite0 == QSH_BYTE && suite == TLS_QSH)
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
@@ -43553,7 +43555,7 @@ WOLF_STACK_OF(WOLFSSL_CIPHER) *wolfSSL_get_ciphers_compat(const WOLFSSL *ssl)
|
|||||||
|
|
||||||
/* A couple of suites are placeholders for special options,
|
/* A couple of suites are placeholders for special options,
|
||||||
* skip those. */
|
* skip those. */
|
||||||
if (SKIP_SUITE(suites->suites[i], suites->suites[i+1])) {
|
if (SCSV_Check(suites->suites[i], suites->suites[i+1])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user