aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-04-30 18:31:48 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-04-30 18:31:48 +0000
commitbc2e33ca964b8e3dfcc70e4edd0b111187fb12fa (patch)
tree42d7a611fb8072efff1e1ebda222059e0bd309b8 /src/libstrongswan
parent8af25c56af21a1756f9d6a323c8c5338fb802856 (diff)
downloadstrongswan-bc2e33ca964b8e3dfcc70e4edd0b111187fb12fa.tar.bz2
strongswan-bc2e33ca964b8e3dfcc70e4edd0b111187fb12fa.tar.xz
pluto and scepclient use the random plugin from libstrongswan
Diffstat (limited to 'src/libstrongswan')
-rw-r--r--src/libstrongswan/library.h7
-rw-r--r--src/libstrongswan/plugins/curl/curl_fetcher.c1
2 files changed, 6 insertions, 2 deletions
diff --git a/src/libstrongswan/library.h b/src/libstrongswan/library.h
index d26905a60..c343249fa 100644
--- a/src/libstrongswan/library.h
+++ b/src/libstrongswan/library.h
@@ -61,10 +61,15 @@
#include <settings.h>
#include <plugins/plugin_loader.h>
#include <crypto/crypto_factory.h>
-#include <credentials/credential_factory.h>
#include <fetcher/fetcher_manager.h>
#include <database/database_factory.h>
+#ifdef NO_CREDENTIAL_FACTORY
+ typedef struct credential_factory_t credential_factory_t;
+#else
+ #include <credentials/credential_factory.h>
+#endif
+
typedef struct library_t library_t;
/**
diff --git a/src/libstrongswan/plugins/curl/curl_fetcher.c b/src/libstrongswan/plugins/curl/curl_fetcher.c
index 9d881875b..7ee9fa1bd 100644
--- a/src/libstrongswan/plugins/curl/curl_fetcher.c
+++ b/src/libstrongswan/plugins/curl/curl_fetcher.c
@@ -67,7 +67,6 @@ static size_t append(void *ptr, size_t size, size_t nmemb, chunk_t *data)
static status_t fetch(private_curl_fetcher_t *this, char *uri, chunk_t *result)
{
char error[CURL_ERROR_SIZE];
- char buf[256];
status_t status;
*result = chunk_empty;