security/rubygem-bcrypt: rip out unused crypt_r implementation

PR:		212304
Submitted by:	xmj
This commit is contained in:
Steve Wills 2016-09-07 18:37:34 +00:00
parent 4f6a2b7197
commit 07e62b8b79
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=421517
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,10 @@
--- ext/mri/ow-crypt.h.orig 2016-09-01 08:48:28 UTC
+++ ext/mri/ow-crypt.h
@@ -16,7 +16,6 @@
#ifndef __SKIP_GNU
extern char *crypt(__CONST char *key, __CONST char *setting);
-extern char *crypt_r(__CONST char *key, __CONST char *setting, void *data);
#endif
#ifndef __SKIP_OW

View file

@ -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