Skip to content

Commit

Permalink
release 2.1.3 - fixed configure and link issues
Browse files Browse the repository at this point in the history
  • Loading branch information
keldonin committed Mar 25, 2021
1 parent 4192e3b commit 1e97ae5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# [2.1.3] - 2021-03-25
### Fixed
- ensure that openssl 1.1.1e or above is used, issue #27
- ensure that threading library is referenced, to allow building with static OpenSSL library

# [2.1.2] - 2021-02-01
### Fixed
- fixed unallowed memory free, causing command `p11rewrap` to crash
Expand Down
13 changes: 8 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dnl limitations under the License.


AC_PREREQ([2.64])
AC_INIT([pkcs11-tools], [2.1.2], [https://github.com/Mastercard/pkcs11-tools/issues], [pkcs11-tools], [https://github.com/Mastercard/pkcs11-tools])
AC_INIT([pkcs11-tools], [2.1.3], [https://github.com/Mastercard/pkcs11-tools/issues], [pkcs11-tools], [https://github.com/Mastercard/pkcs11-tools])
AC_CONFIG_MACRO_DIR([m4])

dnl adding AM_MAINTAINER_MODE to address autotools issues with git
Expand Down Expand Up @@ -76,7 +76,7 @@ dnl for libcrypto, we are first detecting libcrypo11,
dnl as older distros may still run on top of openssl 1.0,
dnl but have v1.1.x accessible through libcrypto11.pc file
PKG_CHECK_MODULES([LIBCRYPTO],
[libcrypto11 >= 1.1.1],
[libcrypto11 >= 1.1.1e],
[ ac_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="${CPPFLAGS} ${LIBCRYPTO_CFLAGS}"
AC_CHECK_DECLS([OPENSSL_NO_RSA, OPENSSL_NO_DSA, OPENSSL_NO_DH, OPENSSL_NO_EC],
Expand All @@ -85,7 +85,7 @@ PKG_CHECK_MODULES([LIBCRYPTO],
[[ #include <openssl/opensslconf.h> ]])
CPPFLAGS=${ac_save_CPPFLAGS} ],
[ PKG_CHECK_MODULES([LIBCRYPTO],
[libcrypto >= 1.1.1],
[libcrypto >= 1.1.1e],
[ ac_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="${CPPFLAGS} ${LIBCRYPTO_CFLAGS}"
AC_CHECK_DECLS([OPENSSL_NO_RSA, OPENSSL_NO_DSA, OPENSSL_NO_DH, OPENSSL_NO_EC],
Expand All @@ -108,6 +108,9 @@ AM_COND_IF( [TARGET_OS_SOLARIS],
AX_LIB_SOCKET_NSL dnl needed on Solaris hosts, to add proper library nsl and socket
AX_WITH_DMALLOC dnl the project can be compiled with dmalloc for memory debugging

dnl support for pthread is needed if we link with a statically-linked version of OpenSSL
AX_PTHREAD( [], [ AC_MSG_WARN(Caution: no pthread library found, might be an issue when linking)] )


dnl check if nCipher extensions can be compiled. If requested, specific file
AC_ARG_WITH([ncipher],
Expand Down Expand Up @@ -179,10 +182,10 @@ AX_CREATE_TARGET_H([include/target.h])

AC_MSG_NOTICE([------------------------------------------------------------------------])
AC_MSG_NOTICE([compiler : $CC])
AC_MSG_NOTICE([compiler flags : ${LIBCRYPTO_CFLAGS} $CFLAGS])
AC_MSG_NOTICE([compiler flags : ${LIBCRYPTO_CFLAGS} ${PTHREAD_CFLAGS} $CFLAGS])
AC_MSG_NOTICE([linker : $LD])
AC_MSG_NOTICE([linker flags : $LDFLAGS])
AC_MSG_NOTICE([libraries : ${LIBCRYPTO_LIBS} $LIBS])
AC_MSG_NOTICE([libraries : ${LIBCRYPTO_LIBS} ${PTHREAD_LIBS} $LIBS])
AC_MSG_NOTICE([lexer : $LEX])
AC_MSG_NOTICE([parser : $YACC])
AC_MSG_NOTICE([parser flags : $YFLAGS])
Expand Down
4 changes: 2 additions & 2 deletions lib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/include/cryptoki

noinst_LTLIBRARIES = libp11.la
libp11_la_CFLAGS = $(LIBCRYPTO_CFLAGS)
libp11_la_LIBADD = $(LIBCRYPTO_LIBS)
libp11_la_CFLAGS = $(LIBCRYPTO_CFLAGS) $(PTHREAD_CFLAGS)
libp11_la_LIBADD = $(LIBCRYPTO_LIBS) $(PTHREAD_LIBS)

# pick appropriate low-level routines file

Expand Down
3 changes: 2 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/include/oasis-pkcs11/working/3-00-current \
-I$(top_srcdir)/include/cryptoki

AM_CFLAGS = $(LIBCRYPTO_CFLAGS)
AM_CFLAGS = $(LIBCRYPTO_CFLAGS) $(PTHREAD_CFLAGS)
AM_LIBS = $(PTHREAD_LIBS)

if HAS_LIBCRYPTO_RPATH
AM_LDFLAGS = -rpath $(LIBCRYPTO_RPATH)
Expand Down

0 comments on commit 1e97ae5

Please sign in to comment.