Minor fixes

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22037)
This commit is contained in:
Hugo Landau 2024-01-29 15:00:33 +00:00
parent 1cc04b777d
commit c71bde1e47
3 changed files with 6 additions and 6 deletions

View File

@ -603,7 +603,7 @@ void ossl_json_f64(OSSL_JSON_ENC *json, double value)
return;
}
snprintf(buf, sizeof(buf), "%1.17g", value);
BIO_snprintf(buf, sizeof(buf), "%1.17g", value);
json_write_str(json, buf);
json_post_item(json);
}

View File

@ -335,9 +335,9 @@ static void qlog_event_seq_header(QLOG *qlog)
if (qlog->info.override_impl_name != NULL) {
p = qlog->info.override_impl_name;
} else {
snprintf(buf, sizeof(buf), "OpenSSL/%s (%s)",
OpenSSL_version(OPENSSL_FULL_VERSION_STRING),
OpenSSL_version(OPENSSL_PLATFORM) + 10);
BIO_snprintf(buf, sizeof(buf), "OpenSSL/%s (%s)",
OpenSSL_version(OPENSSL_FULL_VERSION_STRING),
OpenSSL_version(OPENSSL_PLATFORM) + 10);
}
ossl_json_key(&qlog->json, "type");

View File

@ -130,8 +130,8 @@ void ossl_qlog_event_connectivity_connection_closed(QLOG *qlog,
if (tcause->error_code >= QUIC_ERR_CRYPTO_ERR_BEGIN
&& tcause->error_code <= QUIC_ERR_CRYPTO_ERR_END) {
snprintf(ce, sizeof(ce), "crypto_error_0x%03llx",
(unsigned long long)tcause->error_code);
BIO_snprintf(ce, sizeof(ce), "crypto_error_0x%03llx",
(unsigned long long)tcause->error_code);
m = ce;
}
/* TODO(QLOG FUTURE): Consider adding ERR information in the output. */