[openssl] master update

tomas at openssl.org tomas at openssl.org
Mon May 24 12:39:21 UTC 2021


The branch master has been updated
       via  7217decc7c454eec4a6d4ce163ac44b4558fe03b (commit)
      from  733094ec6b718ebced449b275a780ec3d0a361a5 (commit)


- Log -----------------------------------------------------------------
commit 7217decc7c454eec4a6d4ce163ac44b4558fe03b
Author: Juergen Christ <jchrist at linux.ibm.com>
Date:   Thu May 20 13:27:43 2021 +0200

    Fix warning in gf_serialize
    
    Compiling under -Werror fails in gf_serialize:
    
    crypto/ec/curve448/f_generic.c:21:27: error: argument 1 of type 'uint8_t[56]' {aka 'unsigned char[56]'} with mismatched bound [-Werror=array-parameter=]
       21 | void gf_serialize(uint8_t serial[SER_BYTES], const gf x, int with_hibit)
          |                   ~~~~~~~~^~~~~~~~~~~~~~~~~
    In file included from crypto/ec/curve448/f_generic.c:12:
    crypto/ec/curve448/field.h:65:28: note: previously declared as 'uint8_t *' {aka 'unsigned char *'}
    void gf_serialize(uint8_t *serial, const gf x, int with_highbit);
                      ~~~~~~~~~^~~~~~
    Changed parameter to pointer to fix this warning.
    
    Signed-off-by: Juergen Christ <jchrist at linux.ibm.com>
    
    Reviewed-by: Paul Dale <pauli at openssl.org>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/15376)

-----------------------------------------------------------------------

Summary of changes:
 crypto/ec/curve448/f_generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/ec/curve448/f_generic.c b/crypto/ec/curve448/f_generic.c
index 7e63998a21..3f4d7c7a9e 100644
--- a/crypto/ec/curve448/f_generic.c
+++ b/crypto/ec/curve448/f_generic.c
@@ -18,7 +18,7 @@ static const gf MODULUS = {
 };
 
 /* Serialize to wire format. */
-void gf_serialize(uint8_t serial[SER_BYTES], const gf x, int with_hibit)
+void gf_serialize(uint8_t *serial, const gf x, int with_hibit)
 {
     unsigned int j = 0, fill = 0;
     dword_t buffer = 0;


More information about the openssl-commits mailing list