OSDN Git Service

Modify documents.
[ffftp/ffftp.git] / putty / PGSSAPI.C
1 /* This file actually defines the GSSAPI function pointers for\r
2  * functions we plan to import from a GSSAPI library.\r
3  */\r
4 #include "putty.h"\r
5 \r
6 #ifndef NO_GSSAPI\r
7 \r
8 #include "pgssapi.h"\r
9 \r
10 #ifndef NO_LIBDL\r
11 \r
12 /* Reserved static storage for GSS_oids.  Comments are quotes from RFC 2744. */\r
13 static const gss_OID_desc oids[] = {\r
14     /* The implementation must reserve static storage for a\r
15      * gss_OID_desc object containing the value */\r
16     {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x01"},\r
17     /* corresponding to an object-identifier value of\r
18      * {iso(1) member-body(2) United States(840) mit(113554)\r
19      * infosys(1) gssapi(2) generic(1) user_name(1)}.  The constant\r
20      * GSS_C_NT_USER_NAME should be initialized to point\r
21      * to that gss_OID_desc.\r
22 \r
23      * The implementation must reserve static storage for a\r
24      * gss_OID_desc object containing the value */\r
25     {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x02"},\r
26     /* corresponding to an object-identifier value of\r
27      * {iso(1) member-body(2) United States(840) mit(113554)\r
28      * infosys(1) gssapi(2) generic(1) machine_uid_name(2)}.\r
29      * The constant GSS_C_NT_MACHINE_UID_NAME should be\r
30      * initialized to point to that gss_OID_desc.\r
31 \r
32      * The implementation must reserve static storage for a\r
33      * gss_OID_desc object containing the value */\r
34     {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x03"},\r
35     /* corresponding to an object-identifier value of\r
36      * {iso(1) member-body(2) United States(840) mit(113554)\r
37      * infosys(1) gssapi(2) generic(1) string_uid_name(3)}.\r
38      * The constant GSS_C_NT_STRING_UID_NAME should be\r
39      * initialized to point to that gss_OID_desc.\r
40      *\r
41      * The implementation must reserve static storage for a\r
42      * gss_OID_desc object containing the value */\r
43     {6, (void *)"\x2b\x06\x01\x05\x06\x02"},\r
44     /* corresponding to an object-identifier value of\r
45      * {iso(1) org(3) dod(6) internet(1) security(5)\r
46      * nametypes(6) gss-host-based-services(2)).  The constant\r
47      * GSS_C_NT_HOSTBASED_SERVICE_X should be initialized to point\r
48      * to that gss_OID_desc.  This is a deprecated OID value, and\r
49      * implementations wishing to support hostbased-service names\r
50      * should instead use the GSS_C_NT_HOSTBASED_SERVICE OID,\r
51      * defined below, to identify such names;\r
52      * GSS_C_NT_HOSTBASED_SERVICE_X should be accepted a synonym\r
53      * for GSS_C_NT_HOSTBASED_SERVICE when presented as an input\r
54      * parameter, but should not be emitted by GSS-API\r
55      * implementations\r
56      *\r
57      * The implementation must reserve static storage for a\r
58      * gss_OID_desc object containing the value */\r
59      {10, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x01\x04"},\r
60     /* corresponding to an object-identifier value of {iso(1)\r
61      * member-body(2) Unites States(840) mit(113554) infosys(1)\r
62      * gssapi(2) generic(1) service_name(4)}.  The constant\r
63      * GSS_C_NT_HOSTBASED_SERVICE should be initialized\r
64      * to point to that gss_OID_desc.\r
65      *\r
66      * The implementation must reserve static storage for a\r
67      * gss_OID_desc object containing the value */\r
68     {6, (void *)"\x2b\x06\01\x05\x06\x03"},\r
69     /* corresponding to an object identifier value of\r
70      * {1(iso), 3(org), 6(dod), 1(internet), 5(security),\r
71      * 6(nametypes), 3(gss-anonymous-name)}.  The constant\r
72      * and GSS_C_NT_ANONYMOUS should be initialized to point\r
73      * to that gss_OID_desc.\r
74      *\r
75      * The implementation must reserve static storage for a\r
76      * gss_OID_desc object containing the value */\r
77     {6, (void *)"\x2b\x06\x01\x05\x06\x04"},\r
78      /* corresponding to an object-identifier value of\r
79      * {1(iso), 3(org), 6(dod), 1(internet), 5(security),\r
80      * 6(nametypes), 4(gss-api-exported-name)}.  The constant\r
81      * GSS_C_NT_EXPORT_NAME should be initialized to point\r
82      * to that gss_OID_desc.\r
83      */\r
84 };\r
85 \r
86 /* Here are the constants which point to the static structure above.\r
87  *\r
88  * Constants of the form GSS_C_NT_* are specified by rfc 2744.\r
89  */\r
90 const_gss_OID GSS_C_NT_USER_NAME           = oids+0;\r
91 const_gss_OID GSS_C_NT_MACHINE_UID_NAME    = oids+1;\r
92 const_gss_OID GSS_C_NT_STRING_UID_NAME     = oids+2;\r
93 const_gss_OID GSS_C_NT_HOSTBASED_SERVICE_X = oids+3;\r
94 const_gss_OID GSS_C_NT_HOSTBASED_SERVICE   = oids+4;\r
95 const_gss_OID GSS_C_NT_ANONYMOUS           = oids+5;\r
96 const_gss_OID GSS_C_NT_EXPORT_NAME         = oids+6;\r
97 \r
98 #endif /* NO_LIBDL */\r
99 \r
100 static gss_OID_desc gss_mech_krb5_desc =\r
101 { 9, (void *)"\x2a\x86\x48\x86\xf7\x12\x01\x02\x02" };\r
102 /* iso(1) member-body(2) United States(840) mit(113554) infosys(1) gssapi(2) krb5(2)*/\r
103 const gss_OID GSS_MECH_KRB5 = &gss_mech_krb5_desc;\r
104 \r
105 #endif /* NO_GSSAPI */\r