summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryan Ischo <bryan@ischo.com>2008-08-14 12:14:46 +0000
committerBryan Ischo <bryan@ischo.com>2008-08-14 12:14:46 +0000
commit4e841bcc1010f8dd36031c57460908c368c5cb9f (patch)
tree3189d40ff2ad5e871df575a2d4d80dbb1e4d0e4d /src
parent7fd73adff17c0511cf2c09da16d46d1a8e608866 (diff)
downloadceph-libs3-4e841bcc1010f8dd36031c57460908c368c5cb9f.tar.gz
* Support GNUTLS on Windows. But - it doesn't work. Maybe my GNUTLS
library is too old? Since openssl does work, I expect that I will branch this and revert.
Diffstat (limited to 'src')
-rw-r--r--src/mingw_functions.c16
-rw-r--r--src/request.c17
2 files changed, 13 insertions, 20 deletions
diff --git a/src/mingw_functions.c b/src/mingw_functions.c
index ce86c8e..5ba2211 100644
--- a/src/mingw_functions.c
+++ b/src/mingw_functions.c
@@ -33,27 +33,35 @@ unsigned long pthread_self()
}
-void pthread_mutex_init(pthread_mutex_t *mutex, void *v)
+int pthread_mutex_init(pthread_mutex_t *mutex, void *v)
{
InitializeCriticalSection(&(mutex->criticalSection));
+
+ return 0;
}
-void pthread_mutex_lock(pthread_mutex_t *mutex)
+int pthread_mutex_lock(pthread_mutex_t *mutex)
{
EnterCriticalSection(&(mutex->criticalSection));
+
+ return 0;
}
-void pthread_mutex_unlock(pthread_mutex_t *mutex)
+int pthread_mutex_unlock(pthread_mutex_t *mutex)
{
LeaveCriticalSection(&(mutex->criticalSection));
+
+ return 0;
}
-void pthread_mutex_destroy(pthread_mutex_t *mutex)
+int pthread_mutex_destroy(pthread_mutex_t *mutex)
{
DeleteCriticalSection(&(mutex->criticalSection));
+
+ return 0;
}
diff --git a/src/request.c b/src/request.c
index a7c1347..a0643ac 100644
--- a/src/request.c
+++ b/src/request.c
@@ -705,21 +705,6 @@ static S3Status compose_auth_header(const RequestParams *params,
signbuf_append("%s", values->canonicalizedResource);
-// unsigned int md_len;
-// unsigned char md[EVP_MAX_MD_SIZE];
-//
-// HMAC(EVP_sha1(), params->secretAccessKey, strlen(params->secretAccessKey),
-// (unsigned char *) signbuf, len, md, &md_len);
-//
-// BIO *base64 = BIO_push(BIO_new(BIO_f_base64()), BIO_new(BIO_s_mem()));
-// BIO_write(base64, md, md_len);
-// if (BIO_flush(base64) != 1) {
-// BIO_free_all(base64);
-// return S3StatusInternalError;
-// }
-// BUF_MEM *base64mem;
-// BIO_get_mem_ptr(base64, &base64mem);
-
// Generate a SHA-1 of the signbuf
// Message Digest handle
@@ -822,7 +807,7 @@ static S3Status setup_curl(Request *request,
}
// Debugging only
- // curl_easy_setopt_safe(CURLOPT_VERBOSE, 1);
+ curl_easy_setopt_safe(CURLOPT_VERBOSE, 1);
// Set private data to request for the benefit of S3RequestContext
curl_easy_setopt_safe(CURLOPT_PRIVATE, request);