mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Fix updated FALL_THROUGH macro. Fix a couple of case statements and remove a trailing whitespace.
This commit is contained in:
@ -9676,7 +9676,7 @@ int wolfSSL_CTX_get_max_early_data(WOLFSSL_CTX* ctx)
|
||||
*
|
||||
* ssl The SSL/TLS object.
|
||||
* returns BAD_FUNC_ARG when ssl is NULL, or not using TLS v1.3,
|
||||
* SIDE_ERROR when not a server and
|
||||
* SIDE_ERROR when not a server and
|
||||
* returns the maximum amount of early data to be set
|
||||
*/
|
||||
int wolfSSL_get_max_early_data(WOLFSSL* ssl)
|
||||
|
@ -1964,6 +1964,7 @@ int wolfSSL_EVP_PKEY_keygen(WOLFSSL_EVP_PKEY_CTX *ctx,
|
||||
pkey->ownEcc = 1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
|
@ -11682,8 +11682,8 @@ WOLFSSL_API int wc_PKCS7_DecodeAuthEnvelopedData(PKCS7* pkcs7, byte* in,
|
||||
wc_PKCS7_ChangeState(pkcs7, WC_PKCS7_AUTHENV_ATRBEND);
|
||||
FALL_THROUGH;
|
||||
|
||||
authenv_atrbend:
|
||||
case WC_PKCS7_AUTHENV_ATRBEND:
|
||||
authenv_atrbend:
|
||||
#ifndef NO_PKCS7_STREAM
|
||||
if ((ret = wc_PKCS7_AddDataToStream(pkcs7, in, inSz, MAX_LENGTH_SZ +
|
||||
ASN_TAG_SZ, &pkiMsg, &idx)) != 0) {
|
||||
|
@ -315,7 +315,7 @@ decouple library dependencies with standard string, memory and so on.
|
||||
#define FALL_THROUGH fallthrough
|
||||
#elif ((__GNUC__ > 7) || ((__GNUC__ == 7) && (__GNUC_MINOR__ >= 1)))
|
||||
#define FALL_THROUGH ; __attribute__ ((fallthrough))
|
||||
#elif defined(__clang__) && defined(__clang_major__) &&
|
||||
#elif defined(__clang__) && defined(__clang_major__) && \
|
||||
(__clang_major__ >= 4)
|
||||
#define FALL_THROUGH ; __attribute__ ((fallthrough))
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user