compiled on Mac; refs #22
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "SlotList.h"
|
||||
#include "SecOpGuard.h"
|
||||
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/objects.h>
|
||||
#include <openssl/crypto.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)
|
||||
{
|
||||
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());
|
||||
|
||||
|
@@ -26,6 +26,8 @@
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <openssl/ssl.h>
|
||||
|
||||
EVP_PKEY *SecureTokenEngine::encapsule_CardKey(CardKey *ck)
|
||||
{
|
||||
EVP_PKEY* pk(EVP_PKEY_new());
|
||||
@@ -155,7 +157,7 @@ int SecureTokenEngine::loadCertCtrl(ENGINE *e, load_cert_params *p)
|
||||
return NULL;
|
||||
|
||||
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());
|
||||
|
||||
|
@@ -22,6 +22,6 @@ libengine_act_la_LDFLAGS = -version-info @LIB_VERSION@
|
||||
libengine_act_la_LIBADD = -lact -ldl
|
||||
|
||||
test_engine_SOURCES = test_engine.cpp
|
||||
test_engine_LDADD = -lssl
|
||||
test_engine_LDADD = -lssl -lcrypto
|
||||
|
||||
MAINTAINERCLEANFILES = makefile.in
|
||||
|
@@ -2,6 +2,7 @@
|
||||
#include "engine_sct.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/rsa.h>
|
||||
#include <openssl/engine.h>
|
||||
|
||||
|
Reference in New Issue
Block a user