2012-11-13 12:56:09 +01:00
|
|
|
Index: glibc-2.16.90/crypt/Makefile
|
2012-08-28 14:25:24 +02:00
|
|
|
===================================================================
|
2012-11-13 12:56:09 +01:00
|
|
|
--- glibc-2.16.90.orig/crypt/Makefile
|
|
|
|
+++ glibc-2.16.90/crypt/Makefile
|
2012-08-28 14:25:24 +02:00
|
|
|
@@ -21,6 +21,7 @@
|
2011-07-19 14:17:47 +02:00
|
|
|
subdir := crypt
|
|
|
|
|
|
|
|
headers := crypt.h
|
|
|
|
+headers += gnu-crypt.h ow-crypt.h
|
|
|
|
|
|
|
|
extra-libs := libcrypt
|
|
|
|
extra-libs-others := $(extra-libs)
|
2012-08-28 14:25:24 +02:00
|
|
|
@@ -28,6 +29,8 @@ extra-libs-others := $(extra-libs)
|
2011-07-19 14:17:47 +02:00
|
|
|
libcrypt-routines := crypt-entry md5-crypt sha256-crypt sha512-crypt crypt \
|
|
|
|
crypt_util
|
|
|
|
|
|
|
|
+libcrypt-routines += crypt_blowfish x86 crypt_gensalt wrapper
|
|
|
|
+
|
2012-11-13 12:56:09 +01:00
|
|
|
tests := cert md5c-test sha256c-test sha512c-test badsalttest
|
2011-07-19 14:17:47 +02:00
|
|
|
|
2012-08-28 14:25:24 +02:00
|
|
|
include ../Makeconfig
|
2012-11-13 12:56:09 +01:00
|
|
|
Index: glibc-2.16.90/crypt/Versions
|
2012-08-28 14:25:24 +02:00
|
|
|
===================================================================
|
2012-11-13 12:56:09 +01:00
|
|
|
--- glibc-2.16.90.orig/crypt/Versions
|
|
|
|
+++ glibc-2.16.90/crypt/Versions
|
2011-07-19 14:17:47 +02:00
|
|
|
@@ -1,5 +1,6 @@
|
|
|
|
libcrypt {
|
|
|
|
GLIBC_2.0 {
|
|
|
|
crypt; crypt_r; encrypt; encrypt_r; fcrypt; setkey; setkey_r;
|
|
|
|
+ crypt_rn; crypt_ra; crypt_gensalt; crypt_gensalt_rn; crypt_gensalt_ra;
|
|
|
|
}
|
|
|
|
}
|
2012-11-13 12:56:09 +01:00
|
|
|
Index: glibc-2.16.90/crypt/crypt-entry.c
|
2012-08-28 14:25:24 +02:00
|
|
|
===================================================================
|
2012-11-13 12:56:09 +01:00
|
|
|
--- glibc-2.16.90.orig/crypt/crypt-entry.c
|
|
|
|
+++ glibc-2.16.90/crypt/crypt-entry.c
|
|
|
|
@@ -81,7 +81,7 @@ extern struct crypt_data _ufc_foobar;
|
2011-07-19 14:17:47 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
char *
|
|
|
|
-__crypt_r (key, salt, data)
|
|
|
|
+__des_crypt_r (key, salt, data)
|
|
|
|
const char *key;
|
|
|
|
const char *salt;
|
|
|
|
struct crypt_data * __restrict data;
|
2012-11-13 12:56:09 +01:00
|
|
|
@@ -155,6 +155,7 @@ __crypt_r (key, salt, data)
|
2011-07-19 14:17:47 +02:00
|
|
|
_ufc_output_conversion_r (res[0], res[1], salt, data);
|
|
|
|
return data->crypt_3_buf;
|
|
|
|
}
|
|
|
|
+#if 0
|
|
|
|
weak_alias (__crypt_r, crypt_r)
|
|
|
|
|
|
|
|
char *
|
2012-11-13 12:56:09 +01:00
|
|
|
@@ -197,3 +198,4 @@ __fcrypt (key, salt)
|
2011-07-19 14:17:47 +02:00
|
|
|
return crypt (key, salt);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
+#endif
|