aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2013-02-12 16:16:27 +0800
committergahr <gahr@FreeBSD.org>2013-02-12 16:16:27 +0800
commit4794bb539e72b8bc9c6828ae273aff4563d243f4 (patch)
treecfcc63a2c12fc4a366e35de6c21d876a32cfaafa
parent1d97cb7a6a9be26d804d2c84796bd440d5c9fda4 (diff)
downloadfreebsd-ports-gnome-4794bb539e72b8bc9c6828ae273aff4563d243f4.tar.gz
freebsd-ports-gnome-4794bb539e72b8bc9c6828ae273aff4563d243f4.tar.zst
freebsd-ports-gnome-4794bb539e72b8bc9c6828ae273aff4563d243f4.zip
- Unbreak on GCC
-rw-r--r--devel/ucommon/files/patch-openssl_hmac.cpp44
1 files changed, 44 insertions, 0 deletions
diff --git a/devel/ucommon/files/patch-openssl_hmac.cpp b/devel/ucommon/files/patch-openssl_hmac.cpp
new file mode 100644
index 000000000000..abdf6eb01771
--- /dev/null
+++ b/devel/ucommon/files/patch-openssl_hmac.cpp
@@ -0,0 +1,44 @@
+--- openssl/hmac.cpp.orig 2013-02-12 08:59:05.000000000 +0100
++++ openssl/hmac.cpp 2013-02-12 09:00:43.000000000 +0100
+@@ -17,12 +17,12 @@
+
+ #include "local.h"
+
+-bool HMAC::has(const char *id)
++bool ::HMAC::has(const char *id)
+ {
+ return (EVP_get_digestbyname(id) != NULL);
+ }
+
+-void HMAC::set(const char *digest, const char *key, size_t len)
++void ::HMAC::set(const char *digest, const char *key, size_t len)
+ {
+ secure::init();
+
+@@ -39,7 +39,7 @@
+ }
+ }
+
+-void HMAC::release(void)
++void ::HMAC::release(void)
+ {
+ if(context)
+ HMAC_cleanup((HMAC_CTX *)context);
+@@ -53,7 +53,7 @@
+ textbuf[0] = 0;
+ }
+
+-bool HMAC::put(const void *address, size_t size)
++bool ::HMAC::put(const void *address, size_t size)
+ {
+ if(!context)
+ return false;
+@@ -62,7 +62,7 @@
+ return true;
+ }
+
+-const unsigned char *HMAC::get(void)
++const unsigned char *::HMAC::get(void)
+ {
+ unsigned count = 0;
+ unsigned size = 0;