patch-src_des_crypt_c 778 B

1234567891011121314151617181920212223
  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 2013-08-12 16:47:07.000000000 +0200
  3. @@ -43,7 +43,7 @@ static char sccsid[] = "@(#)des_crypt.c
  4. static int common_crypt( char *, char *, unsigned, unsigned, struct desparams * );
  5. int (*__des_crypt_LOCAL)() = 0;
  6. -extern int _des_crypt_call(char *, int, struct desparams *);
  7. +//extern int _des_crypt_call(char *, int, struct desparams *);
  8. /*
  9. * Copy 8 bytes
  10. */
  11. @@ -145,10 +145,6 @@ common_crypt(key, buf, len, mode, desp)
  12. if (!__des_crypt_LOCAL(buf, len, desp)) {
  13. return (DESERR_HWERROR);
  14. }
  15. - } else {
  16. - if (!_des_crypt_call(buf, len, desp)) {
  17. - return (DESERR_HWERROR);
  18. - }
  19. - }
  20. + }
  21. return(desdev == DES_SW ? DESERR_NONE : DESERR_NOHWDEVICE);
  22. }