Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Tan Haoqiang C Language Exercise 5.7-How to Deal with Integer Data Overflow in this Example
Tan Haoqiang C Language Exercise 5.7-How to Deal with Integer Data Overflow in this Example
*

* Finally, the function prototype of the GSSAPI routine.

*/

# If (_ win32) has been defined &; & already defined (_MSC_VER)

# GSS dynamic link library file

# define GSS_DLLIMP __declspec(dllexport)

# Otherwise

# define GSS_DLLIMP __declspec(dllimport)

# endif

# Otherwise

# define GSS_DLLIMP

#endif

...........

/*

* Implementation must be

* gss_OID_desc object containing the value.

* { 10,(void *)" \ x2a \ x86 \ x48 \ x86 \ xf7 \ x 12 \ x 0 1 \ x02 \ x 0 1 \ x02 " },

* corresponding to the object identifier value

* {iso( 1) member institutions (2) Massachusetts Institute of Technology (840) in the United States (1 13554)

* Infosys( 1)gssapi(2)generic( 1)machine _ uid _ name(2)}。

* Constant GSS computer name should be

* initialized to point to desc OID GSS.

*/

GSS _ DLLIMP extern GSS _ OID GSS _ C _ NT _ MACHINE _ UID _ NAME;

And the following:

#ifndef KRB5_CALLCONV

# Define KRB5_CALLCONV

# define KRB5_CALLCONV_C

#endif

......

OM _ uint 32 KRB5 _ call conv GSS _ acquire _ cred

(OM_uint32 *,/* minor_status */

gss_name_t,/* desired_name */

OM_uint32,/* time_req */

gss_OID_set,/* desired_mechs */

gss_cred_usage_t,/* cred_usage */

gss_cred_id_t *,/* output_cred_handle */

GSS _ OID _ setting *,/* actual _ mechanical */

OM_uint32 * /* time_rec */

);