glibc-2.14-crypt.diff 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. diff -urp glibc-2.14.orig/crypt/Makefile glibc-2.14/crypt/Makefile
  2. --- glibc-2.14.orig/crypt/Makefile 2011-05-31 04:12:33 +0000
  3. +++ glibc-2.14/crypt/Makefile 2011-07-16 21:40:56 +0000
  4. @@ -22,6 +22,7 @@
  5. subdir := crypt
  6. headers := crypt.h
  7. +headers += gnu-crypt.h ow-crypt.h
  8. extra-libs := libcrypt
  9. extra-libs-others := $(extra-libs)
  10. @@ -29,6 +30,8 @@ extra-libs-others := $(extra-libs)
  11. libcrypt-routines := crypt-entry md5-crypt sha256-crypt sha512-crypt crypt \
  12. crypt_util
  13. +libcrypt-routines += crypt_blowfish x86 crypt_gensalt wrapper
  14. +
  15. tests := cert md5c-test sha256c-test sha512c-test
  16. distribute := ufc-crypt.h crypt-private.h ufc.c speeds.c README.ufc-crypt \
  17. diff -urp glibc-2.14.orig/crypt/Versions glibc-2.14/crypt/Versions
  18. --- glibc-2.14.orig/crypt/Versions 2011-05-31 04:12:33 +0000
  19. +++ glibc-2.14/crypt/Versions 2011-07-16 21:40:56 +0000
  20. @@ -1,5 +1,6 @@
  21. libcrypt {
  22. GLIBC_2.0 {
  23. crypt; crypt_r; encrypt; encrypt_r; fcrypt; setkey; setkey_r;
  24. + crypt_rn; crypt_ra; crypt_gensalt; crypt_gensalt_rn; crypt_gensalt_ra;
  25. }
  26. }
  27. diff -urp glibc-2.14.orig/crypt/crypt-entry.c glibc-2.14/crypt/crypt-entry.c
  28. --- glibc-2.14.orig/crypt/crypt-entry.c 2011-05-31 04:12:33 +0000
  29. +++ glibc-2.14/crypt/crypt-entry.c 2011-07-16 21:40:56 +0000
  30. @@ -82,7 +82,7 @@ extern struct crypt_data _ufc_foobar;
  31. */
  32. char *
  33. -__crypt_r (key, salt, data)
  34. +__des_crypt_r (key, salt, data)
  35. const char *key;
  36. const char *salt;
  37. struct crypt_data * __restrict data;
  38. @@ -137,6 +137,7 @@ __crypt_r (key, salt, data)
  39. _ufc_output_conversion_r (res[0], res[1], salt, data);
  40. return data->crypt_3_buf;
  41. }
  42. +#if 0
  43. weak_alias (__crypt_r, crypt_r)
  44. char *
  45. @@ -177,3 +178,4 @@ __fcrypt (key, salt)
  46. return crypt (key, salt);
  47. }
  48. #endif
  49. +#endif