]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
format embedded struct declaration for check-format.pl
authorCaolán McNamara <caolanm@gmail.com>
Thu, 18 Sep 2025 07:55:23 +0000 (08:55 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 28 Nov 2025 08:36:45 +0000 (09:36 +0100)
so that subsequent commits to e_chacha20_poly1305.c doesn't trigger
warnings about handling '{' later in this file in related code.

i.e.

crypto/evp/e_chacha20_poly1305.c:610:indent = 0 != 4 for stmt/decl:static const EVP_CIPHER chacha20_poly1305 = {
crypto/evp/e_chacha20_poly1305.c:611:indent = 4 != 45 for hanging '{' or 8 for lines after '{':    NID_chacha20_poly1305,

Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28588)

crypto/evp/e_chacha20_poly1305.c

index 92fdaedb3a4aec2f64ac3fcb6b241ea2039fbf92..a06e9a668233ef55370ce77542d920d9ca9ca052 100644 (file)
@@ -155,7 +155,9 @@ typedef struct {
     unsigned int nonce[12/4];
     unsigned char tag[POLY1305_BLOCK_SIZE];
     unsigned char tls_aad[POLY1305_BLOCK_SIZE];
-    struct { uint64_t aad, text; } len;
+    struct {
+        uint64_t aad, text;
+    } len;
     int aad, mac_inited, tag_len, nonce_len;
     size_t tls_payload_length;
 } EVP_CHACHA_AEAD_CTX;