Typo fixes

and an addition of an empty line to follow the code style

CLA: trivial

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23721)
This commit is contained in:
willmafh 2024-03-01 21:12:21 +08:00 committed by Tomas Mraz
parent 87314d24c4
commit fa4ee40434
3 changed files with 3 additions and 2 deletions

View File

@ -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++;

View File

@ -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 {

View File

@ -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)
{