patch-include_rpcsecgss_rpc_auth_gss_h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --- librpcsecgss-0.19.orig/include/rpcsecgss/rpc/auth_gss.h 2009-05-13 23:33:08.000000000 +0200
  2. +++ librpcsecgss-0.19/include/rpcsecgss/rpc/auth_gss.h 2014-05-19 15:34:51.506269269 +0200
  3. @@ -95,34 +95,38 @@ 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 *pd));
  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 *pd);
  36. -int authgss_set_debug_level __P((int new_level));
  37. -void authgss_log_err __P((char *format, ...));
  38. -void authgss_log_dbg __P((char *format, ...));
  39. -void authgss_log_status __P((char *m, OM_uint32 maj_stat,
  40. - OM_uint32 min_stat));
  41. -void authgss_perror __P((int err, char *msg));
  42. -void authgss_log_hexdump __P((const u_char *buf, int len, int offset));
  43. +int authgss_set_debug_level (int new_level);
  44. +void authgss_log_err (char *format, ...);
  45. +void authgss_log_dbg (char *format, ...);
  46. +void authgss_log_status (char *m, OM_uint32 maj_stat,
  47. + OM_uint32 min_stat);
  48. +void authgss_perror (int err, char *msg);
  49. +void authgss_log_hexdump (const u_char *buf, int len, int offset);
  50. -__END_DECLS
  51. +#ifdef __cplusplus
  52. +}
  53. +#endif
  54. /* Debugging */
  55. extern int authgss_debug_level;