summaryrefslogtreecommitdiffstats
path: root/ssl/s3_cbc.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-04-30 20:36:16 +1000
committerPauli <paul.dale@oracle.com>2019-05-01 08:37:11 +1000
commit39147079fc41b1af9a4e2974e89de20668e02aea (patch)
tree3d37a1466917d0ee1a4bf41b38180fee72863f49 /ssl/s3_cbc.c
parenta39eb84006ca68d38d1c7204a6135647d06b5d01 (diff)
Structure alignment macro.
Introduce a macro that allows all structure alignment tricks to be rolled up into a single place. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8845)
Diffstat (limited to 'ssl/s3_cbc.c')
-rw-r--r--ssl/s3_cbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_cbc.c b/ssl/s3_cbc.c
index 8e71a65578..056fb1f6cf 100644
--- a/ssl/s3_cbc.c
+++ b/ssl/s3_cbc.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2012-2018 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2012-2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -136,7 +136,7 @@ int ssl3_cbc_digest_record(const EVP_MD_CTX *ctx,
size_t mac_secret_length, char is_sslv3)
{
union {
- double align;
+ OSSL_UNION_ALIGN;
unsigned char c[sizeof(LARGEST_DIGEST_CTX)];
} md_state;
void (*md_final_raw) (void *ctx, unsigned char *md_out);