compiled on Mac; refs #22

master
Marc Wäckerlin 14 years ago
parent 440c1c30dd
commit 7fa2ba91f8
  1. 2
      openssl-act-engine/configure.in
  2. 3
      openssl-act-engine/src/CertificateList.cpp
  3. 4
      openssl-act-engine/src/engine_sct.cpp
  4. 2
      openssl-act-engine/src/makefile.am
  5. 1
      openssl-act-engine/src/test_engine.cpp
  6. 4
      swisssurfer/src/qmake.pro.in

@ -72,6 +72,8 @@ case ${host} in
;; ;;
(*mingw*) LDFLAGS+=" -L../../actlibrary/mingw32-i586/Release" (*mingw*) LDFLAGS+=" -L../../actlibrary/mingw32-i586/Release"
;; ;;
(i386-apple-darwin*) LDFLAGS+=" -L../../actlibrary/MacOSX-10.5-x86_64/Release"
;;
(*) AC_MSG_ERROR([Unknown Host: $host]) (*) AC_MSG_ERROR([Unknown Host: $host])
;; ;;
esac esac

@ -4,6 +4,7 @@
#include "SlotList.h" #include "SlotList.h"
#include "SecOpGuard.h" #include "SecOpGuard.h"
#include <openssl/ssl.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include <openssl/engine.h> #include <openssl/engine.h>
@ -129,7 +130,7 @@ void CertificateList::init(SlotList& slots)
for(cert_map_t::const_iterator it = cert_temp_map.begin(); it != cert_temp_map.end();++it) for(cert_map_t::const_iterator it = cert_temp_map.begin(); it != cert_temp_map.end();++it)
{ {
const act::Blob& certblob = it->first; const act::Blob& certblob = it->first;
const unsigned char *cbp = &certblob[0]; unsigned char *cbp = const_cast<unsigned char*>(&certblob[0]);
cert_p->cert = d2i_X509(NULL, &cbp, certblob.size()); cert_p->cert = d2i_X509(NULL, &cbp, certblob.size());

@ -26,6 +26,8 @@
#include <cstring> #include <cstring>
#include <openssl/ssl.h>
EVP_PKEY *SecureTokenEngine::encapsule_CardKey(CardKey *ck) EVP_PKEY *SecureTokenEngine::encapsule_CardKey(CardKey *ck)
{ {
EVP_PKEY* pk(EVP_PKEY_new()); EVP_PKEY* pk(EVP_PKEY_new());
@ -155,7 +157,7 @@ int SecureTokenEngine::loadCertCtrl(ENGINE *e, load_cert_params *p)
return NULL; return NULL;
const act::Blob& certblob = co.getCertBlob(); const act::Blob& certblob = co.getCertBlob();
const unsigned char *cbp = &certblob[0]; unsigned char *cbp = const_cast<unsigned char*>(&certblob[0]);
p->cert = d2i_X509(NULL, &cbp, certblob.size()); p->cert = d2i_X509(NULL, &cbp, certblob.size());

@ -22,6 +22,6 @@ libengine_act_la_LDFLAGS = -version-info @LIB_VERSION@
libengine_act_la_LIBADD = -lact -ldl libengine_act_la_LIBADD = -lact -ldl
test_engine_SOURCES = test_engine.cpp test_engine_SOURCES = test_engine.cpp
test_engine_LDADD = -lssl test_engine_LDADD = -lssl -lcrypto
MAINTAINERCLEANFILES = makefile.in MAINTAINERCLEANFILES = makefile.in

@ -2,6 +2,7 @@
#include "engine_sct.h" #include "engine_sct.h"
#include <cstring> #include <cstring>
#include <openssl/ssl.h>
#include <openssl/rsa.h> #include <openssl/rsa.h>
#include <openssl/engine.h> #include <openssl/engine.h>

@ -1,14 +1,12 @@
QT += webkit network gui QT += webkit network gui
CONFIG += debug CONFIG += debug
QMAKE_LIBS += -lproxyface -lcryptoki++ -lssl QMAKE_LIBS += -lproxyface -lcryptoki++ -lssl -lcrypto
QMAKE_INCDIR += ../../qt/qt-everywhere-opensource-src-4.6.3/include/Qt \ QMAKE_INCDIR += ../../qt/qt-everywhere-opensource-src-4.6.3/include/Qt \
../../openssl-act-engine/src/ ../../openssl-act-engine/src/
unix { unix {
QMAKE_LIBS += -lproxy
} }
macx { macx {
QMAKE_LIBS += -lproxy
QMAKE_INCDIR += /opt/local/include QMAKE_INCDIR += /opt/local/include
QMAKE_LIBDIR += /opt/local/lib QMAKE_LIBDIR += /opt/local/lib
CONFIG += x86 CONFIG += x86

Loading…
Cancel
Save