mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-24 05:00:45 -04:00
Make pragmas more specific
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
parent
04b03d7712
commit
1c1535f153
@ -19,7 +19,6 @@
|
||||
|
||||
#include "psa_util_internal.h"
|
||||
#include "psa/crypto.h"
|
||||
#pragma GCC diagnostic warning "-Wenum-conversion"
|
||||
#if defined(MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED)
|
||||
/* Define a local translating function to save code size by not using too many
|
||||
* arguments in each translating place. */
|
||||
@ -2086,6 +2085,7 @@ start_processing:
|
||||
ret = mbedtls_pk_verify_new(pk_alg, peer_pk,
|
||||
md_alg, hash, hashlen,
|
||||
p, sig_len);
|
||||
#pragma GCC diagnostic pop
|
||||
} else
|
||||
#endif /* MBEDTLS_X509_RSASSA_PSS_SUPPORT */
|
||||
ret = mbedtls_pk_verify_restartable(peer_pk,
|
||||
|
@ -25,7 +25,6 @@
|
||||
|
||||
#include "psa/crypto.h"
|
||||
#include "psa_util_internal.h"
|
||||
#pragma GCC diagnostic warning "-Wenum-conversion"
|
||||
|
||||
#if defined(MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_SOME_EPHEMERAL_ENABLED)
|
||||
/* Define a local translating function to save code size by not using too many
|
||||
@ -964,9 +963,12 @@ static int ssl_tls13_write_certificate_verify_body(mbedtls_ssl_context *ssl,
|
||||
|
||||
MBEDTLS_SSL_DEBUG_BUF(3, "verify hash", verify_hash, verify_hash_len);
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic warning "-Wenum-conversion"
|
||||
if ((ret = mbedtls_pk_sign_ext(pk_type, own_key,
|
||||
md_alg, verify_hash, verify_hash_len,
|
||||
p + 4, (size_t) (end - (p + 4)), &signature_len)) != 0) {
|
||||
#pragma GCC diagnostic pop
|
||||
MBEDTLS_SSL_DEBUG_MSG(2, ("CertificateVerify signature failed with %s",
|
||||
mbedtls_ssl_sig_alg_to_str(*sig_alg)));
|
||||
MBEDTLS_SSL_DEBUG_RET(2, "mbedtls_pk_sign_ext", ret);
|
||||
|
@ -17,8 +17,6 @@
|
||||
* [SIRO] https://cabforum.org/wp-content/uploads/Chunghwatelecom201503cabforumV4.pdf
|
||||
*/
|
||||
|
||||
#pragma GCC diagnostic warning "-Wenum-conversion"
|
||||
|
||||
#include "x509_internal.h"
|
||||
|
||||
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
||||
|
@ -14,7 +14,6 @@
|
||||
#include <mbedtls/private/pk_private.h>
|
||||
#endif /* MBEDTLS_PK_HAVE_PRIVATE_HEADER */
|
||||
#include "mbedtls/psa_util.h"
|
||||
#pragma GCC diagnostic warning "-Wenum-conversion"
|
||||
|
||||
#if defined(MBEDTLS_USE_PSA_CRYPTO) && \
|
||||
defined(MBEDTLS_PEM_WRITE_C) && defined(MBEDTLS_X509_CSR_WRITE_C)
|
||||
|
Loading…
x
Reference in New Issue
Block a user