patch-src_des_crypt_c 871 B

123456789101112131415161718192021222324252627
  1. --- libtirpc-0.2.3.orig/src/des_crypt.c 2013-02-13 16:13:59.000000000 +0100
  2. +++ libtirpc-0.2.3/src/des_crypt.c 2014-03-22 13:20:53.000000000 +0100
  3. @@ -39,11 +39,10 @@
  4. static char sccsid[] = "@(#)des_crypt.c 2.2 88/08/10 4.0 RPCSRC; from 1.13 88/02/08 SMI";
  5. #endif
  6. #endif
  7. -#include <sys/cdefs.h>
  8. static int common_crypt( char *, char *, unsigned, unsigned, struct desparams * );
  9. int (*__des_crypt_LOCAL)() = 0;
  10. -extern int _des_crypt_call(char *, int, struct desparams *);
  11. +//extern int _des_crypt_call(char *, int, struct desparams *);
  12. /*
  13. * Copy 8 bytes
  14. */
  15. @@ -145,10 +144,6 @@ common_crypt(key, buf, len, mode, desp)
  16. if (!__des_crypt_LOCAL(buf, len, desp)) {
  17. return (DESERR_HWERROR);
  18. }
  19. - } else {
  20. - if (!_des_crypt_call(buf, len, desp)) {
  21. - return (DESERR_HWERROR);
  22. - }
  23. - }
  24. + }
  25. return(desdev == DES_SW ? DESERR_NONE : DESERR_NOHWDEVICE);
  26. }