mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
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:
parent
1cc04b777d
commit
c71bde1e47
@ -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);
|
||||
}
|
||||
|
@ -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");
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user