From fa4ee4043473185a5894274a2fa7fa2c4dc15a3c Mon Sep 17 00:00:00 2001 From: willmafh Date: Fri, 1 Mar 2024 21:12:21 +0800 Subject: [PATCH] Typo fixes and an addition of an empty line to follow the code style CLA: trivial Reviewed-by: Tom Cosgrove Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23721) --- crypto/objects/obj_dat.pl | 2 +- include/internal/packet.h | 2 +- ssl/ssl_sess.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crypto/objects/obj_dat.pl b/crypto/objects/obj_dat.pl index 60a5e5a6833..715c06e0328 100644 --- a/crypto/objects/obj_dat.pl +++ b/crypto/objects/obj_dat.pl @@ -134,7 +134,7 @@ for (my $i = 0; $i < $n; $i++) { my $r = &der_it($v); my $z = ""; my $length = 0; - # Format using fixed-with because we use strcmp later. + # Format using fixed-width because we use strcmp later. foreach (unpack("C*",$r)) { $z .= sprintf("0x%02X,", $_); $length++; diff --git a/include/internal/packet.h b/include/internal/packet.h index 7abc6b8b1bc..7e28ff61968 100644 --- a/include/internal/packet.h +++ b/include/internal/packet.h @@ -627,7 +627,7 @@ __owur static ossl_inline int PACKET_get_length_prefixed_3(PACKET *pkt, return 1; } -/* Writeable packets */ +/* Writable packets */ typedef struct wpacket_sub WPACKET_SUB; struct wpacket_sub { diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c index 3857e027ee0..e7c5c2a36f9 100644 --- a/ssl/ssl_sess.c +++ b/ssl/ssl_sess.c @@ -287,6 +287,7 @@ const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s, unsigned int *len) *len = (unsigned int)s->session_id_length; return s->session_id; } + const unsigned char *SSL_SESSION_get0_id_context(const SSL_SESSION *s, unsigned int *len) { -- 2.47.2