Typo fixes
authorwillmafh <willmafh@hotmail.com>
Fri, 1 Mar 2024 13:12:21 +0000 (21:12 +0800)
committerTomas Mraz <tomas@openssl.org>
Mon, 13 May 2024 09:10:35 +0000 (11:10 +0200)
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)

crypto/objects/obj_dat.pl
include/internal/packet.h
ssl/ssl_sess.c

index 60a5e5a6833e34375cb8c96e05bf4ccd4d079afb..715c06e032874f4188cddeeef6f76a298d94235e 100644 (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++;
index 7abc6b8b1bc971f011c4f772518bfc77d5386bf6..7e28ff619681cb9de3dc8abc5ed22b567e83ef5b 100644 (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 {
index 3857e027ee0d1b1cf0a303e80a9ebca245710df3..e7c5c2a36f965e833b69bc0c8596a14342defa5d 100644 (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)
 {