summaryrefslogtreecommitdiff
path: root/security/rubygem-bcrypt/files/patch-ext_mri_wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/rubygem-bcrypt/files/patch-ext_mri_wrapper.c')
-rw-r--r--security/rubygem-bcrypt/files/patch-ext_mri_wrapper.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/security/rubygem-bcrypt/files/patch-ext_mri_wrapper.c b/security/rubygem-bcrypt/files/patch-ext_mri_wrapper.c
new file mode 100644
index 000000000000..ecc49d59831b
--- /dev/null
+++ b/security/rubygem-bcrypt/files/patch-ext_mri_wrapper.c
@@ -0,0 +1,16 @@
+--- ext/mri/wrapper.c.orig 2016-09-01 08:48:10 UTC
++++ ext/mri/wrapper.c
+@@ -185,13 +185,6 @@ char *crypt_ra(__CONST char *key, __CONS
+ return _crypt_blowfish_rn(key, setting, (char *)*data, *size);
+ }
+
+-char *crypt_r(__CONST char *key, __CONST char *setting, void *data)
+-{
+- return _crypt_retval_magic(
+- crypt_rn(key, setting, data, CRYPT_OUTPUT_SIZE),
+- setting, (char *)data);
+-}
+-
+ #define __crypt_gensalt_rn crypt_gensalt_rn
+ #define __crypt_gensalt_ra crypt_gensalt_ra
+ #define __crypt_gensalt crypt_gensalt