gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: util: declare test variables that are co


From: gnunet
Subject: [gnunet] branch master updated: util: declare test variables that are const as const
Date: Mon, 09 Sep 2024 10:08:52 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 494a1b512 util: declare test variables that are const as const
494a1b512 is described below

commit 494a1b5120c9e269c6d45c47899e13361e60d0a1
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Mon Sep 9 10:08:21 2024 +0200

    util: declare test variables that are const as const
---
 src/lib/util/test_crypto_hpke.c | 128 ++++++++++++++++++++--------------------
 1 file changed, 64 insertions(+), 64 deletions(-)

diff --git a/src/lib/util/test_crypto_hpke.c b/src/lib/util/test_crypto_hpke.c
index 7f6e9065e..cf8d3a0f1 100644
--- a/src/lib/util/test_crypto_hpke.c
+++ b/src/lib/util/test_crypto_hpke.c
@@ -26,75 +26,75 @@
 #include "platform.h"
 #include "gnunet_util_lib.h"
 
-static char *rfc9180_a2_1_skEm_str =
+static const char *rfc9180_a2_1_skEm_str =
   "f4ec9b33b792c372c1d2c2063507b684ef925b8c75a42dbcbf57d63ccd381600";
-static char *rfc9180_a2_1_skRm_str =
-  "8057991eef8f1f1af18f4a9491d16a1ce333f695d4db8e38da75975c4478e0fb";
-static char *rfc9180_a2_1_enc_str =
-  "1afa08d3dec047a643885163f1180476fa7ddb54c6a8029ea33f95796bf2ac4a";
-static char *rfc9180_a2_1_shared_secret_str =
-  "0bbe78490412b4bbea4812666f7916932b828bba79942424abb65244930d69a7";
-static char *rfc9180_a2_1_key_str =
-  "ad2744de8e17f4ebba575b3f5f5a8fa1f69c2a07f6e7500bc60ca6e3e3ec1c91";
-static char *rfc9180_a2_1_base_nonce_str =
-  "5c4d98150661b848853b547f";
-static char *rfc9180_a2_1_info_str =
-  "4f6465206f6e2061204772656369616e2055726e";
-static char *rfc9180_a2_1_pt_str =
-  "4265617574792069732074727574682c20747275746820626561757479";
-static char *rfc9180_a2_1_aad_seq0_str =
-  "436f756e742d30";
-static char *rfc9180_a2_1_aad_seq1_str =
-  "436f756e742d31";
-static char *rfc9180_a2_1_aad_seq255_str =
-  "436f756e742d323535";
-static char *rfc9180_a2_1_ct_seq0_str =
-  
"1c5250d8034ec2b784ba2cfd69dbdb8af406cfe3ff938e131f0def8c8b60b4db21993c62ce81883d2dd1b51a28";
-static char *rfc9180_a2_1_ct_seq1_str =
-  
"6b53c051e4199c518de79594e1c4ab18b96f081549d45ce015be002090bb119e85285337cc95ba5f59992dc98c";
-static char *rfc9180_a2_1_ct_seq255_str =
+static const char *rfc9180_a2_1_skRm_str =
+  "8057const 991eef8f1f1af18f4a9491d16a1ce333f695d4db8e38da75975c4478e0fb";
+static const char *rfc9180_a2_1_enc_str =
+  "1afaconst 08d3dec047a643885163f1180476fa7ddb54c6a8029ea33f95796bf2ac4a";
+static const char *rfc9180_a2_1_shared_secret_str =
+  "0bbeconst 78490412b4bbea4812666f7916932b828bba79942424abb65244930d69a7";
+static const char *rfc9180_a2_1_key_str =
+  "ad27const 44de8e17f4ebba575b3f5f5a8fa1f69c2a07f6e7500bc60ca6e3e3ec1c91";
+static const char *rfc9180_a2_1_base_nonce_str =
+  "5c4dconst 98150661b848853b547f";
+static const char *rfc9180_a2_1_info_str =
+  "4f64const 65206f6e2061204772656369616e2055726e";
+static const char *rfc9180_a2_1_pt_str =
+  "4265const 617574792069732074727574682c20747275746820626561757479";
+static const char *rfc9180_a2_1_aad_seq0_str =
+  "436fconst 756e742d30";
+static const char *rfc9180_a2_1_aad_seq1_str =
+  "436fconst 756e742d31";
+static const char *rfc9180_a2_1_aad_seq255_str =
+  "436fconst 756e742d323535";
+static const char *rfc9180_a2_1_ct_seq0_str =
+  "1c52const 
50d8034ec2b784ba2cfd69dbdb8af406cfe3ff938e131f0def8c8b60b4db21993c62ce81883d2dd1b51a28";
+static const char *rfc9180_a2_1_ct_seq1_str =
+  "6b53const 
c051e4199c518de79594e1c4ab18b96f081549d45ce015be002090bb119e85285337cc95ba5f59992dc98c";
+static const char *rfc9180_a2_1_ct_seq255_str =
   
"18ab939d63ddec9f6ac2b60d61d36a7375d2070c9b683861110757062c52b8880a5f6b3936da9cd6c23ef2a95c";
 
-static char *rfc9180_a2_4_skEm_str =
-  "5e6dd73e82b856339572b7245d3cbb073a7561c0bee52873490e305cbb710410";
-static char *rfc9180_a2_4_skRm_str =
-  "7b36a42822e75bf3362dfabbe474b3016236408becb83b859a6909e22803cb0c";
-static char *rfc9180_a2_4_enc_str =
-  "656a2e00dc9990fd189e6e473459392df556e9a2758754a09db3f51179a3fc02";
-static char *rfc9180_a2_4_shared_secret_str =
-  "86a6c0ed17714f11d2951747e660857a5fd7616c933ef03207808b7a7123fe67";
-static char *rfc9180_a2_4_key_str =
-  "49c7e6d7d2d257aded2a746fe6a9bf12d4de8007c4862b1fdffe8c35fb65054c";
-static char *rfc9180_a2_4_base_nonce_str =
-  "abac79931e8c1bcb8a23960a";
-static char *rfc9180_a2_4_info_str =
-  "4f6465206f6e2061204772656369616e2055726e";
-static char *rfc9180_a2_4_pt_str =
-  "4265617574792069732074727574682c20747275746820626561757479";
-static char *rfc9180_a2_4_psk_str =
-  "0247fd33b913760fa1fa51e1892d9f307fbe65eb171e8132c2af18555a738b82";
-static char *rfc9180_a2_4_psk_id_str =
-  "456e6e796e20447572696e206172616e204d6f726961";
-static char *rfc9180_a2_4_skSm_str =
-  "90761c5b0a7ef0985ed66687ad708b921d9803d51637c8d1cb72d03ed0f64418";
-static char *rfc9180_a2_4_aad_seq0_str =
-  "436f756e742d30";
-static char *rfc9180_a2_4_aad_seq1_str =
-  "436f756e742d31";
-static char *rfc9180_a2_4_aad_seq255_str =
-  "436f756e742d323535";
-static char *rfc9180_a2_4_ct_seq0_str =
-  
"9aa52e29274fc6172e38a4461361d2342585d3aeec67fb3b721ecd63f059577c7fe886be0ede01456ebc67d597";
-static char *rfc9180_a2_4_ct_seq1_str =
-  
"59460bacdbe7a920ef2806a74937d5a691d6d5062d7daafcad7db7e4d8c649adffe575c1889c5c2e3a49af8e3e";
-static char *rfc9180_a2_4_ct_seq255_str =
+static const char *rfc9180_a2_4_skEm_str =
+  "5e6dconst d73e82b856339572b7245d3cbb073a7561c0bee52873490e305cbb710410";
+static const char *rfc9180_a2_4_skRm_str =
+  "7b36const a42822e75bf3362dfabbe474b3016236408becb83b859a6909e22803cb0c";
+static const char *rfc9180_a2_4_enc_str =
+  "656aconst 2e00dc9990fd189e6e473459392df556e9a2758754a09db3f51179a3fc02";
+static const char *rfc9180_a2_4_shared_secret_str =
+  "86a6const c0ed17714f11d2951747e660857a5fd7616c933ef03207808b7a7123fe67";
+static const char *rfc9180_a2_4_key_str =
+  "49c7const e6d7d2d257aded2a746fe6a9bf12d4de8007c4862b1fdffe8c35fb65054c";
+static const char *rfc9180_a2_4_base_nonce_str =
+  "abacconst 79931e8c1bcb8a23960a";
+static const char *rfc9180_a2_4_info_str =
+  "4f64const 65206f6e2061204772656369616e2055726e";
+static const char *rfc9180_a2_4_pt_str =
+  "4265const 617574792069732074727574682c20747275746820626561757479";
+static const char *rfc9180_a2_4_psk_str =
+  "0247const fd33b913760fa1fa51e1892d9f307fbe65eb171e8132c2af18555a738b82";
+static const char *rfc9180_a2_4_psk_id_str =
+  "456econst 6e796e20447572696e206172616e204d6f726961";
+static const char *rfc9180_a2_4_skSm_str =
+  "9076const 1c5b0a7ef0985ed66687ad708b921d9803d51637c8d1cb72d03ed0f64418";
+static const char *rfc9180_a2_4_aad_seq0_str =
+  "436fconst 756e742d30";
+static const char *rfc9180_a2_4_aad_seq1_str =
+  "436fconst 756e742d31";
+static const char *rfc9180_a2_4_aad_seq255_str =
+  "436fconst 756e742d323535";
+static const char *rfc9180_a2_4_ct_seq0_str =
+  "9aa5const 
2e29274fc6172e38a4461361d2342585d3aeec67fb3b721ecd63f059577c7fe886be0ede01456ebc67d597";
+static const char *rfc9180_a2_4_ct_seq1_str =
+  "5946const 
0bacdbe7a920ef2806a74937d5a691d6d5062d7daafcad7db7e4d8c649adffe575c1889c5c2e3a49af8e3e";
+static const char *rfc9180_a2_4_ct_seq255_str =
   
"4d4c462f7b9b637eaf1f4e15e325b7bc629c0af6e3073422c86064cc3c98cff87300f054fd56dd57dc34358beb
 ";
 
 static int
-parsehex (char *src, char *dst, size_t dstlen, int invert)
+parsehex (const char *src, char *dst, size_t dstlen, int invert)
 {
-  char *line = src;
-  char *data = line;
+  const char *line = src;
+  const char *data = line;
   int off;
   int read_byte;
   int data_len = 0;
@@ -150,7 +150,7 @@ print_bytes (void *buf,
 }
 
 
-int
+static int
 test_mode_base ()
 {
 
@@ -323,7 +323,7 @@ test_mode_base ()
 }
 
 
-int
+static int
 test_mode_auth_psk ()
 {
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]