+Sat Apr 17 01:23:57 1999 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * gssapi_krb5.h, copy_ccache.c, get_tkt_flags.c, set_ccache.c:
+ Make the krb5 extension functions exportable in a Windows
+ DLL.
+
Fri Mar 26 22:17:20 1999 Theodore Y. Ts'o <tytso@mit.edu>
* acquire_cred.c (krb5_gss_acquire_cred): Don't use strcmp to
#include "gssapiP_krb5.h"
-OM_uint32
+GSS_DLLIMP OM_uint32 KRB5_CALLCONV
gss_krb5_copy_ccache(minor_status, cred_handle, out_ccache)
OM_uint32 *minor_status;
gss_cred_id_t cred_handle;
* $Id$
*/
-OM_uint32
+GSS_DLLIMP OM_uint32 KRB5_CALLCONV
gss_krb5_get_tkt_flags(minor_status, context_handle, ticket_flags)
OM_uint32 *minor_status;
gss_ctx_id_t context_handle;
#define gss_krb5_nt_machine_uid_name gss_nt_machine_uid_name
#define gss_krb5_nt_string_uid_name gss_nt_string_uid_name
-OM_uint32 gss_krb5_get_tkt_flags
+GSS_DLLIMP OM_uint32 KRB5_CALLCONV gss_krb5_get_tkt_flags
PROTOTYPE((OM_uint32 *minor_status,
gss_ctx_id_t context_handle,
krb5_flags *ticket_flags));
-OM_uint32 gss_krb5_copy_ccache
+GSS_DLLIMP OM_uint32 KRB5_CALLCONV gss_krb5_copy_ccache
PROTOTYPE((OM_uint32 *minor_status,
gss_cred_id_t cred_handle,
krb5_ccache out_ccache));
-OM_uint32 gss_krb5_ccache_name
+GSS_DLLIMP OM_uint32 KRB5_CALLCONV gss_krb5_ccache_name
PROTOTYPE((OM_uint32 *minor_status, const char *name,
const char **out_name));
-/* this is for backward compatibility only. It is declared here for
- completeness, but should not be used */
-
-OM_uint32 krb5_gss_set_backward_mode
- PROTOTYPE((OM_uint32 *minor_status,
- int mode));
-
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include "gssapiP_krb5.h"
-OM_uint32
+GSS_DLLIMP OM_uint32 KRB5_CALLCONV
gss_krb5_ccache_name(minor_status, name, out_name)
OM_uint32 *minor_status;
const char *name;
const char **out_name;
{
krb5_context context;
- krb5_error_code retval;
+ krb5_error_code retval;
if (GSS_ERROR(kg_get_context(minor_status, &context)))
return (GSS_S_FAILURE);
if (out_name)
*out_name = krb5_cc_default_name(context);
- if (name) {
- retval = krb5_cc_set_default_name(context, name);
- if (retval) {
- *minor_status = retval;
- return GSS_S_FAILURE;
- }
+
+ retval = krb5_cc_set_default_name(context, name);
+ if (retval) {
+ *minor_status = retval;
+ return GSS_S_FAILURE;
}
return GSS_S_COMPLETE;
}