[openssl] openssl-3.0 update

Dr. Paul Dale pauli at openssl.org
Thu Sep 2 00:06:07 UTC 2021


The branch openssl-3.0 has been updated
       via  a0bbd4be5a8231e26322a8e0a3df68ffd1db0edb (commit)
      from  59f4a51a7f2c53b9fd161b032d0fcb8a85f4f19d (commit)


- Log -----------------------------------------------------------------
commit a0bbd4be5a8231e26322a8e0a3df68ffd1db0edb
Author: Mattias Ellert <mattias.ellert at physics.uu.se>
Date:   Tue Aug 31 08:26:06 2021 +0200

    Openssl fails to compile on Debian with kfreebsd kernels
    (kfreebsd-amd64, kfreebsd-i386). The error reported by the compiler
    is:
    
    ../crypto/uid.c: In function 'OPENSSL_issetugid':
    ../crypto/uid.c:50:22: error: 'AT_SECURE' undeclared (first use in this function)
       50 |     return getauxval(AT_SECURE) != 0;
          |                      ^~~~~~~~~
    
    This commit changes the code to use the freebsd code in this case.
    This fixes the compilation.
    
    CLA: trivial
    
    Reviewed-by: Ben Kaduk <kaduk at mit.edu>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/16477)
    
    (cherry picked from commit 3a1fa0116a92235ba200228e4bb60d6a3a7f4113)

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

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

diff --git a/crypto/uid.c b/crypto/uid.c
index 928b83c026..698127779f 100644
--- a/crypto/uid.c
+++ b/crypto/uid.c
@@ -17,7 +17,7 @@ int OPENSSL_issetugid(void)
     return 0;
 }
 
-#elif defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ > 2) || defined(__DragonFly__)
+#elif defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ > 2) || defined(__DragonFly__) || (defined(__GLIBC__) && defined(__FreeBSD_kernel__))
 
 # include <unistd.h>
 


More information about the openssl-commits mailing list