+Mon Mar 31 21:22:19 1997 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * krb5_gss_glue.c: Add GSSAPI V2 calls to the glue layer.
+
Fri Mar 28 03:52:14 1997 Theodore Y. Ts'o <tytso@mit.edu>
* import_name.c (krb5_gss_import_name): Add support for importing
the exported name call
- * export_name.c (gss_export_name): Fix export_name emit the token
+ * export_name.c (krb5_gss_export_name): Fix export_name emit the token
exactly as specified by RFC 2078.
Thu Mar 27 15:52:04 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in: Add canon_name.c, duplicate_name.c, export_name.c
to the GSSAPI library.
- * canon_name.c (gss_canonicalize_name): New GSSAPI V2 function
+ * canon_name.c (krb5_gss_canonicalize_name): New GSSAPI V2 function
- * duplicate_name.c (gss_duplicate_name): New GSSAPI V2 function
+ * duplicate_name.c (krb5_gss_duplicate_name): New GSSAPI V2 function
- * export_name.c (gss_export_name): New GSSAPI V2 function
+ * export_name.c (krb5_gss_export_name): New GSSAPI V2 function
* gssapiP_krb5.h (KG_IMPLFLAGS): Add support for
GSS_C_PROT_STATE_READY and GSS_C_TRANS_FLAG
/* This is trivial since we're a single mechanism implementation */
-OM_uint32 gss_canonicalize_name(OM_uint32 *minor_status,
- const gss_name_t input_name,
- const gss_OID mech_type,
- gss_name_t *output_name)
+OM_uint32 krb5_gss_canonicalize_name(OM_uint32 *minor_status,
+ const gss_name_t input_name,
+ const gss_OID mech_type,
+ gss_name_t *output_name)
{
if ((mech_type == GSS_C_NULL_OID) ||
!g_OID_equal(mech_type, gss_mech_krb5)) {
#include "gssapiP_krb5.h"
-OM_uint32 gss_duplicate_name(OM_uint32 *minor_status,
- const gss_name_t input_name,
- gss_name_t *dest_name)
+OM_uint32 krb5_gss_duplicate_name(OM_uint32 *minor_status,
+ const gss_name_t input_name,
+ gss_name_t *dest_name)
{
krb5_context context;
krb5_error_code code;
krb5_principal princ, outprinc;
- int length;
- char *str, *cp;
if (GSS_ERROR(kg_get_context(minor_status, &context)))
return(GSS_S_FAILURE);
}
princ = input_name;
- if (code = krb5_copy_principal(context, princ, &outprinc)) {
+ if ((code = krb5_copy_principal(context, princ, &outprinc))) {
*minor_status = code;
return(GSS_S_FAILURE);
}
#include "gssapiP_krb5.h"
-OM_uint32 gss_export_name(OM_uint32 *minor_status,
- const gss_name_t input_name,
- gss_buffer_t exported_name)
+OM_uint32 krb5_gss_export_name(OM_uint32 *minor_status,
+ const gss_name_t input_name,
+ gss_buffer_t exported_name)
{
krb5_context context;
krb5_error_code code;
gss_OID_set * /* name_types */
));
+OM_uint32 krb5_gss_canonicalize_name
+PROTOTYPE( (OM_uint32 *, /* minor_status */
+ const gss_name_t, /* input_name */
+ const gss_OID, /* mech_type */
+ gss_name_t * /* output_name */
+ ));
+
+OM_uint32 krb5_gss_export_name
+PROTOTYPE( (OM_uint32 *, /* minor_status */
+ const gss_name_t, /* input_name */
+ gss_buffer_t /* exported_name */
+ ));
+
+OM_uint32 krb5_gss_duplicate_name
+PROTOTYPE( (OM_uint32 *, /* minor_status */
+ const gss_name_t, /* input_name */
+ gss_name_t * /* dest_name */
+ ));
+
#endif /* _GSSAPIP_KRB5_H_ */
conf_req_flag, qop_req,
req_output_size, max_input_size));
}
+
+/* V2 interface */
+KRB5_DLLIMP OM_uint32 KRB5_CALLCONV
+gss_canonicalize_name(minor_status, input_name, mech_type, output_name)
+ OM_uint32 *minor_status;
+ const gss_name_t input_name;
+ const gss_OID mech_type;
+ gss_name_t *output_name;
+{
+ return krb5_gss_canonicalize_name(minor_status, input_name,
+ mech_type, output_name);
+}
+
+
+/* V2 interface */
+KRB5_DLLIMP OM_uint32 KRB5_CALLCONV
+gss_export_name(minor_status, input_name, exported_name)
+ OM_uint32 *minor_status;
+ const gss_name_t input_name;
+ gss_buffer_t exported_name;
+{
+ return krb5_gss_export_name(minor_status, input_name, exported_name);
+}
+
+/* V2 interface */
+KRB5_DLLIMP OM_uint32 KRB5_CALLCONV
+gss_duplicate_name(minor_status, input_name, dest_name)
+ OM_uint32 *minor_status;
+ const gss_name_t input_name;
+ gss_name_t *dest_name;
+{
+ return krb5_gss_duplicate_name(minor_status, input_name, dest_name);
+}
+
+
+