patch-tirpc_rpc_auth_gss_h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --- libtirpc-0.2.3.orig/tirpc/rpc/auth_gss.h 2013-02-13 16:13:59.000000000 +0100
  2. +++ libtirpc-0.2.3/tirpc/rpc/auth_gss.h 2014-03-22 13:20:52.000000000 +0100
  3. @@ -104,28 +104,32 @@ struct rpc_gss_init_res {
  4. #define MAXSEQ 0x80000000
  5. /* Prototypes. */
  6. -__BEGIN_DECLS
  7. -bool_t xdr_rpc_gss_cred __P((XDR *xdrs, struct rpc_gss_cred *p));
  8. -bool_t xdr_rpc_gss_init_args __P((XDR *xdrs, gss_buffer_desc *p));
  9. -bool_t xdr_rpc_gss_init_res __P((XDR *xdrs, struct rpc_gss_init_res *p));
  10. -bool_t xdr_rpc_gss_data __P((XDR *xdrs, xdrproc_t xdr_func,
  11. +#ifdef __cplusplus
  12. +extern "C" {
  13. +#endif
  14. +bool_t xdr_rpc_gss_cred (XDR *xdrs, struct rpc_gss_cred *p);
  15. +bool_t xdr_rpc_gss_init_args (XDR *xdrs, gss_buffer_desc *p);
  16. +bool_t xdr_rpc_gss_init_res (XDR *xdrs, struct rpc_gss_init_res *p);
  17. +bool_t xdr_rpc_gss_data (XDR *xdrs, xdrproc_t xdr_func,
  18. caddr_t xdr_ptr, gss_ctx_id_t ctx,
  19. gss_qop_t qop, rpc_gss_svc_t svc,
  20. - u_int seq));
  21. + u_int seq);
  22. -AUTH *authgss_create __P((CLIENT *, gss_name_t,
  23. - struct rpc_gss_sec *));
  24. -AUTH *authgss_create_default __P((CLIENT *, char *, struct rpc_gss_sec *));
  25. -bool_t authgss_service __P((AUTH *auth, int svc));
  26. -bool_t authgss_get_private_data __P((AUTH *auth,
  27. - struct authgss_private_data *));
  28. -bool_t authgss_free_private_data __P((struct authgss_private_data *));
  29. +AUTH *authgss_create (CLIENT *, gss_name_t,
  30. + struct rpc_gss_sec *);
  31. +AUTH *authgss_create_default (CLIENT *, char *, struct rpc_gss_sec *);
  32. +bool_t authgss_service (AUTH *auth, int svc);
  33. +bool_t authgss_get_private_data (AUTH *auth,
  34. + struct authgss_private_data *);
  35. +bool_t authgss_free_private_data (struct authgss_private_data *);
  36. -void gss_log_debug __P((const char *fmt, ...));
  37. -void gss_log_status __P((char *m, OM_uint32 major,
  38. - OM_uint32 minor));
  39. -void gss_log_hexdump __P((const u_char *buf, int len, int offset));
  40. +void gss_log_debug (const char *fmt, ...);
  41. +void gss_log_status (char *m, OM_uint32 major,
  42. + OM_uint32 minor);
  43. +void gss_log_hexdump (const u_char *buf, int len, int offset);
  44. -__END_DECLS
  45. +#ifdef __cplusplus
  46. +}
  47. +#endif
  48. #endif /* !_TIRPC_AUTH_GSS_H */