return false;
}
-#if defined(__GNUC__) || defined(__clang__)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wsign-compare"
-#endif
-
bool
tls_crypt_unwrap(const struct buffer *src, struct buffer *dst, struct crypto_options *opt)
{
msg(M_FATAL, "ERROR: failed to base64 decode provided metadata");
goto cleanup;
}
- if (decoded_len > TLS_CRYPT_V2_MAX_METADATA_LEN - 1)
+ if ((unsigned int)decoded_len > TLS_CRYPT_V2_MAX_METADATA_LEN - 1)
{
msg(M_FATAL, "ERROR: metadata too long (%d bytes, max %u bytes)", decoded_len,
TLS_CRYPT_V2_MAX_METADATA_LEN - 1);
gc_free(&gc);
}
-
-#if defined(__GNUC__) || defined(__clang__)
-#pragma GCC diagnostic pop
-#endif