summaryrefslogtreecommitdiffstats
path: root/demos/cipher
diff options
context:
space:
mode:
authorNeil Horman <nhorman@openssl.org>2024-04-06 10:16:50 -0400
committerNeil Horman <nhorman@openssl.org>2024-04-12 08:02:19 -0400
commitf2f13cff210a1b19cdd76dfab8739567535e2632 (patch)
tree4c11ed9c8a0e07b23f66b54a6117328c35e8cc94 /demos/cipher
parent44f05ded99cab8436f8413efa8b71b8c33e00501 (diff)
Fix warnings found by clang in CI
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> (Merged from https://github.com/openssl/openssl/pull/24047)
Diffstat (limited to 'demos/cipher')
-rw-r--r--demos/cipher/aesccm.c4
-rw-r--r--demos/cipher/aesgcm.c4
-rw-r--r--demos/cipher/aeskeywrap.c4
-rw-r--r--demos/cipher/ariacbc.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/demos/cipher/aesccm.c b/demos/cipher/aesccm.c
index 49a054f9d3..e8fdbee7c8 100644
--- a/demos/cipher/aesccm.c
+++ b/demos/cipher/aesccm.c
@@ -64,8 +64,8 @@ static const unsigned char ccm_tag[] = {
* algorithm implementations. If they are NULL then the default library
* context and properties are used.
*/
-OSSL_LIB_CTX *libctx = NULL;
-const char *propq = NULL;
+static OSSL_LIB_CTX *libctx = NULL;
+static const char *propq = NULL;
static int aes_ccm_encrypt(void)
diff --git a/demos/cipher/aesgcm.c b/demos/cipher/aesgcm.c
index 40465b269c..f5011b8136 100644
--- a/demos/cipher/aesgcm.c
+++ b/demos/cipher/aesgcm.c
@@ -64,8 +64,8 @@ static const unsigned char gcm_tag[] = {
* algorithm implementations. If they are NULL then the default library
* context and properties are used.
*/
-OSSL_LIB_CTX *libctx = NULL;
-const char *propq = NULL;
+static OSSL_LIB_CTX *libctx = NULL;
+static const char *propq = NULL;
static int aes_gcm_encrypt(void)
{
diff --git a/demos/cipher/aeskeywrap.c b/demos/cipher/aeskeywrap.c
index 4d5df4cd98..e1fe9307b4 100644
--- a/demos/cipher/aeskeywrap.c
+++ b/demos/cipher/aeskeywrap.c
@@ -50,8 +50,8 @@ static const unsigned char wrap_ct[] = {
* algorithm implementations. If they are NULL then the default library
* context and properties are used.
*/
-OSSL_LIB_CTX *libctx = NULL;
-const char *propq = NULL;
+static OSSL_LIB_CTX *libctx = NULL;
+static const char *propq = NULL;
static int aes_wrap_encrypt(void)
{
diff --git a/demos/cipher/ariacbc.c b/demos/cipher/ariacbc.c
index 73605d2d6c..4492c46466 100644
--- a/demos/cipher/ariacbc.c
+++ b/demos/cipher/ariacbc.c
@@ -49,8 +49,8 @@ static const unsigned char cbc_ct[] = {
* algorithm implementations. If they are NULL then the default library
* context and properties are used.
*/
-OSSL_LIB_CTX *libctx = NULL;
-const char *propq = NULL;
+static OSSL_LIB_CTX *libctx = NULL;
+static const char *propq = NULL;
static int aria_cbc_encrypt(void)
{