patch-tirpc_rpc_des_crypt_h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --- libtirpc-0.2.3.orig/tirpc/rpc/des_crypt.h 2013-02-13 16:13:59.000000000 +0100
  2. +++ libtirpc-0.2.3/tirpc/rpc/des_crypt.h 2014-03-22 13:20:52.000000000 +0100
  3. @@ -43,7 +43,6 @@
  4. #ifndef _DES_DES_CRYPT_H
  5. #define _DES_DES_CRYPT_H
  6. -#include <sys/cdefs.h>
  7. #include <rpc/rpc.h>
  8. #define DES_MAXDATA 8192 /* max bytes encrypted in one call */
  9. @@ -83,23 +82,35 @@
  10. /*
  11. * Cipher Block Chaining mode
  12. */
  13. -__BEGIN_DECLS
  14. +#ifdef __cplusplus
  15. +extern "C" {
  16. +#endif
  17. int cbc_crypt( char *, char *, unsigned int, unsigned int, char *);
  18. -__END_DECLS
  19. +#ifdef __cplusplus
  20. +}
  21. +#endif
  22. /*
  23. * Electronic Code Book mode
  24. */
  25. -__BEGIN_DECLS
  26. +#ifdef __cplusplus
  27. +extern "C" {
  28. +#endif
  29. int ecb_crypt( char *, char *, unsigned int, unsigned int );
  30. -__END_DECLS
  31. +#ifdef __cplusplus
  32. +}
  33. +#endif
  34. /*
  35. * Set des parity for a key.
  36. * DES parity is odd and in the low bit of each byte
  37. */
  38. -__BEGIN_DECLS
  39. +#ifdef __cplusplus
  40. +extern "C" {
  41. +#endif
  42. void des_setparity( char *);
  43. -__END_DECLS
  44. +#ifdef __cplusplus
  45. +}
  46. +#endif
  47. #endif /* _DES_DES_CRYPT_H */