summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2024-01-29 15:00:33 +0000
committerHugo Landau <hlandau@openssl.org>2024-02-02 11:50:30 +0000
commitc71bde1e47020b5d533bf4f14548d8f3e2b030e5 (patch)
tree9e38e62be25d6dfef5cc7a1ca60eeb5329b4f4d4 /ssl
parent1cc04b777dd7febf767e4dcbd4ace014d5521f47 (diff)
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)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/quic/json_enc.c2
-rw-r--r--ssl/quic/qlog.c6
-rw-r--r--ssl/quic/qlog_event_helpers.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/ssl/quic/json_enc.c b/ssl/quic/json_enc.c
index 302479a5d5..da698c2222 100644
--- a/ssl/quic/json_enc.c
+++ b/ssl/quic/json_enc.c
@@ -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);
}
diff --git a/ssl/quic/qlog.c b/ssl/quic/qlog.c
index 7299d69515..1d07b6f629 100644
--- a/ssl/quic/qlog.c
+++ b/ssl/quic/qlog.c
@@ -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");
diff --git a/ssl/quic/qlog_event_helpers.c b/ssl/quic/qlog_event_helpers.c
index 6a72602990..997bf7603a 100644
--- a/ssl/quic/qlog_event_helpers.c
+++ b/ssl/quic/qlog_event_helpers.c
@@ -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. */