Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from #22037)
  • Loading branch information
hlandau committed Feb 2, 2024
1 parent 1cc04b7 commit c71bde1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ssl/quic/json_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
6 changes: 3 additions & 3 deletions ssl/quic/qlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions ssl/quic/qlog_event_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit c71bde1

Please sign in to comment.