Decouples SM from OpenSSL
This commit is contained in:
parent
4814863d18
commit
ffd85adae7
|
@ -486,14 +486,12 @@ PKG_CHECK_MODULES(
|
|||
case "${enable_openssl}" in
|
||||
no)
|
||||
have_openssl="no"
|
||||
enable_sm="no"
|
||||
;;
|
||||
detect)
|
||||
if test "${have_openssl}" = "yes"; then
|
||||
enable_openssl="yes"
|
||||
else
|
||||
enable_openssl="no"
|
||||
enable_sm="no"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
@ -504,6 +502,9 @@ if test "${enable_openssl}" = "yes"; then
|
|||
else
|
||||
AC_MSG_ERROR([OpenSSL linkage required, but no OpenSSL was found])
|
||||
fi
|
||||
else
|
||||
OPENSSL_CFLAGS=""
|
||||
OPENSSL_LIBS=""
|
||||
fi
|
||||
|
||||
if test "${enable_sm}" = "yes"; then
|
||||
|
|
|
@ -8,4 +8,3 @@ SUBDIRS = common scconf pkcs15init libopensc pkcs11 \
|
|||
if ENABLE_SM
|
||||
SUBDIRS += libsm smm
|
||||
endif
|
||||
|
||||
|
|
|
@ -3571,4 +3571,15 @@ sc_get_iasecc_driver(void)
|
|||
return sc_get_driver();
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* we need to define the functions below to export them */
|
||||
#include "errors.h"
|
||||
|
||||
int
|
||||
iasecc_se_get_info()
|
||||
{
|
||||
return SC_ERROR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
#endif /* ENABLE_OPENSSL */
|
||||
|
|
|
@ -1299,4 +1299,10 @@ iasecc_sdo_encode_update_field()
|
|||
return SC_ERROR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
int
|
||||
iasecc_se_get_crt()
|
||||
{
|
||||
return SC_ERROR_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
#endif /* ENABLE_OPENSSL */
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
EXTRA_DIST = Makefile.mak
|
||||
|
||||
if ENABLE_OPENSSL
|
||||
noinst_LTLIBRARIES = libsm.la
|
||||
endif
|
||||
noinst_HEADERS = sm-common.h
|
||||
|
||||
AM_CFLAGS = $(OPTIONAL_OPENSSL_CFLAGS) $(OPTIONAL_READLINE_CFLAGS)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
TOPDIR = ..\..
|
||||
|
||||
!IF "$(OPENSSL_DEF)" == "/DENABLE_OPENSSL"
|
||||
TARGET = libsm.lib
|
||||
OBJECTS = sm-common.obj
|
||||
|
||||
|
@ -9,3 +10,7 @@ $(TARGET): $(OBJECTS)
|
|||
lib $(LIBFLAGS) /out:$(TARGET) $(OBJECTS)
|
||||
|
||||
!INCLUDE $(TOPDIR)\win32\Make.rules.mak
|
||||
|
||||
!ELSE
|
||||
all:
|
||||
!ENDIF
|
||||
|
|
|
@ -10,7 +10,9 @@ LIBS = $(top_builddir)/src/libsm/libsm.la \
|
|||
$(top_builddir)/src/libopensc/libopensc.la \
|
||||
$(top_builddir)/src/common/libcompat.la
|
||||
|
||||
if ENABLE_OPENSSL
|
||||
lib_LTLIBRARIES = libsmm-local.la
|
||||
endif
|
||||
|
||||
libsmm_local_la_SOURCES = smm-local.c sm-module.h \
|
||||
sm-global-platform.c sm-cwa14890.c \
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
TOPDIR = ..\..
|
||||
|
||||
!IF "$(OPENSSL_DEF)" == "/DENABLE_OPENSSL"
|
||||
TARGET = smm-local.dll
|
||||
|
||||
OBJECTS = smm-local.obj sm-global-platform.obj sm-cwa14890.obj sm-card-iasecc.obj sm-card-authentic.obj
|
||||
|
@ -17,3 +18,7 @@ $(TARGET): $(OBJECTS) ..\libsm\libsm.lib ..\libopensc\opensc.lib
|
|||
|
||||
.c.obj:
|
||||
cl $(COPTS) /c $<
|
||||
|
||||
!ELSE
|
||||
all:
|
||||
!ENDIF
|
||||
|
|
Loading…
Reference in New Issue