[openssl] OpenSSL_1_1_1-stable update

Richard Levitte levitte at openssl.org
Wed Feb 27 10:34:45 UTC 2019


The branch OpenSSL_1_1_1-stable has been updated
       via  e8926acfe25418d029656d4abb321096a2cf17c5 (commit)
       via  5dcfd143e1409b0915875f9dcbbba253db41b138 (commit)
       via  9c8516b63cec92a53f3064ce3acb6d672eeea7a1 (commit)
      from  9c6d536f532a737216f2ae0e7d168c99ed989a0d (commit)


- Log -----------------------------------------------------------------
commit e8926acfe25418d029656d4abb321096a2cf17c5
Author: Richard Levitte <levitte at openssl.org>
Date:   Wed Feb 13 04:23:14 2019 +0100

    Make the padlock engine build correctly
    
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/8220)
    
    (cherry picked from commit 149c12d5e41b238ce4af6d1b6b3a767b40293bd7)

commit 5dcfd143e1409b0915875f9dcbbba253db41b138
Author: Richard Levitte <levitte at openssl.org>
Date:   Wed Feb 13 04:21:59 2019 +0100

    Ensure configured module specific and application specific defines are used
    
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/8220)
    
    (cherry picked from commit 2fce15b58b2502a614529707eb45b6e5cac4eb15)

commit 9c8516b63cec92a53f3064ce3acb6d672eeea7a1
Author: Richard Levitte <levitte at openssl.org>
Date:   Wed Feb 13 03:58:52 2019 +0100

    Add PADLOCK_ASM to dso_defines rather than lib_defines
    
    Since the padlock code is an engine, the assembler is for a module,
    not a library link to when building a program...  there's a
    distinction.
    
    Fixes #2311
    
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/8220)
    
    (cherry picked from commit 88780b1c5f6000fe6731fec74efe697bcf493b6c)

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

Summary of changes:
 Configurations/unix-Makefile.tmpl | 8 ++++++--
 Configure                         | 2 +-
 engines/e_padlock.c               | 6 +++---
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index 288b792..1292053 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -260,8 +260,8 @@ LIB_CPPFLAGS={- our $lib_cppflags =
                 join(' ', $target{lib_cppflags} || (),
                           $target{shared_cppflag} || (),
                           (map { '-D'.$_ }
-                               @{$config{lib_defines}},
-                               @{$config{shared_defines}}),
+                               @{$config{lib_defines} || ()},
+                               @{$config{shared_defines} || ()}),
                           @{$config{lib_cppflags}},
                           @{$config{shared_cppflag}});
                 join(' ', $lib_cppflags,
@@ -285,6 +285,9 @@ LIB_LDFLAGS={- join(' ', $target{shared_ldflag} || (),
 LIB_EX_LIBS=$(CNF_EX_LIBS) $(EX_LIBS)
 DSO_CPPFLAGS={- join(' ', $target{dso_cppflags} || (),
                           $target{module_cppflags} || (),
+                          (map { '-D'.$_ }
+                               @{$config{dso_defines} || ()},
+                               @{$config{module_defines} || ()}),
                           @{$config{dso_cppflags}},
                           @{$config{module_cppflags}},
                           '$(CNF_CPPFLAGS)', '$(CPPFLAGS)') -}
@@ -305,6 +308,7 @@ DSO_LDFLAGS={- join(' ', $target{dso_ldflags} || (),
                          '$(CNF_LDFLAGS)', '$(LDFLAGS)') -}
 DSO_EX_LIBS=$(CNF_EX_LIBS) $(EX_LIBS)
 BIN_CPPFLAGS={- join(' ', $target{bin_cppflags} || (),
+                          (map { '-D'.$_ } @{$config{bin_defines} || ()}),
                           @{$config{bin_cppflags}},
                           '$(CNF_CPPFLAGS)', '$(CPPFLAGS)') -}
 BIN_CFLAGS={- join(' ', $target{bin_cflags} || (),
diff --git a/Configure b/Configure
index aefd0ff..65aa110 100755
--- a/Configure
+++ b/Configure
@@ -1419,7 +1419,7 @@ unless ($disabled{asm}) {
 	push @{$config{lib_defines}}, "X25519_ASM";
     }
     if ($target{padlock_asm_src} ne $table{DEFAULTS}->{padlock_asm_src}) {
-	push @{$config{lib_defines}}, "PADLOCK_ASM";
+	push @{$config{dso_defines}}, "PADLOCK_ASM";
     }
     if ($target{poly1305_asm_src} ne "") {
 	push @{$config{lib_defines}}, "POLY1305_ASM";
diff --git a/engines/e_padlock.c b/engines/e_padlock.c
index f6b1f16..f6c2159 100644
--- a/engines/e_padlock.c
+++ b/engines/e_padlock.c
@@ -41,7 +41,7 @@
  */
 
 #  undef COMPILE_HW_PADLOCK
-#  if !defined(I386_ONLY) && defined(PADLOCK_ASM)
+#  if defined(PADLOCK_ASM)
 #   define COMPILE_HW_PADLOCK
 #   ifdef OPENSSL_NO_DYNAMIC_ENGINE
 static ENGINE *ENGINE_padlock(void);
@@ -148,7 +148,7 @@ static int padlock_init(ENGINE *e)
  * This stuff is needed if this ENGINE is being compiled into a
  * self-contained shared-library.
  */
-#   ifdef DYNAMIC_ENGINE
+#   ifndef OPENSSL_NO_DYNAMIC_ENGINE
 static int padlock_bind_fn(ENGINE *e, const char *id)
 {
     if (id && (strcmp(id, padlock_id) != 0)) {
@@ -164,7 +164,7 @@ static int padlock_bind_fn(ENGINE *e, const char *id)
 
 IMPLEMENT_DYNAMIC_CHECK_FN()
 IMPLEMENT_DYNAMIC_BIND_FN(padlock_bind_fn)
-#   endif                       /* DYNAMIC_ENGINE */
+#   endif                       /* !OPENSSL_NO_DYNAMIC_ENGINE */
 /* ===== Here comes the "real" engine ===== */
 
 /* Some AES-related constants */


More information about the openssl-commits mailing list