Add declspec for Windows

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23026 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-04-17 10:02:03 +00:00
parent 795ee939ea
commit 3b7ff465c1
7 changed files with 28 additions and 27 deletions

View File

@@ -999,7 +999,7 @@ acc_set_default(krb5_context context, krb5_ccache id)
* @ingroup krb5_ccache * @ingroup krb5_ccache
*/ */
const krb5_cc_ops krb5_acc_ops = { KRB5_LIB_VARIABLE const krb5_cc_ops krb5_acc_ops = {
KRB5_CC_OPS_VERSION, KRB5_CC_OPS_VERSION,
"API", "API",
acc_get_name, acc_get_name,

View File

@@ -35,9 +35,9 @@
RCSID("$Id$"); RCSID("$Id$");
const char *krb5_config_file = KRB5_LIB_VARIABLE const char *krb5_config_file =
#ifdef __APPLE__ #ifdef __APPLE__
"/Library/Preferences/edu.mit.Kerberos:" "/Library/Preferences/edu.mit.Kerberos:"
#endif #endif
SYSCONFDIR "/krb5.conf:/etc/krb5.conf"; SYSCONFDIR "/krb5.conf:/etc/krb5.conf";
const char *krb5_defkeyname = KEYTAB_DEFAULT; KRB5_LIB_VARIABLE const char *krb5_defkeyname = KEYTAB_DEFAULT;

View File

@@ -909,7 +909,7 @@ fcc_default_name(krb5_context context, char **str)
* @ingroup krb5_ccache * @ingroup krb5_ccache
*/ */
const krb5_cc_ops krb5_fcc_ops = { KRB5_LIB_VARIABLE const krb5_cc_ops krb5_fcc_ops = {
KRB5_CC_OPS_VERSION, KRB5_CC_OPS_VERSION,
"FILE", "FILE",
fcc_get_name, fcc_get_name,

View File

@@ -873,7 +873,7 @@ kcm_default_name(krb5_context context, char **str)
* @ingroup krb5_ccache * @ingroup krb5_ccache
*/ */
const krb5_cc_ops krb5_kcm_ops = { KRB5_LIB_VARIABLE const krb5_cc_ops krb5_kcm_ops = {
KRB5_CC_OPS_VERSION, KRB5_CC_OPS_VERSION,
"KCM", "KCM",
kcm_get_name, kcm_get_name,

View File

@@ -594,11 +594,6 @@ typedef EncAPRepPart krb5_ap_rep_enc_part;
#define KRB5_DIGEST_NAME ("digest") #define KRB5_DIGEST_NAME ("digest")
/* variables */
extern const char *krb5_config_file;
extern const char *krb5_defkeyname;
typedef enum { typedef enum {
KRB5_PROMPT_TYPE_PASSWORD = 0x1, KRB5_PROMPT_TYPE_PASSWORD = 0x1,
KRB5_PROMPT_TYPE_NEW_PASSWORD = 0x2, KRB5_PROMPT_TYPE_NEW_PASSWORD = 0x2,
@@ -686,21 +681,6 @@ typedef struct krb5_verify_opt {
#define KRB5_VERIFY_LREALMS 1 #define KRB5_VERIFY_LREALMS 1
#define KRB5_VERIFY_NO_ADDRESSES 2 #define KRB5_VERIFY_NO_ADDRESSES 2
extern const krb5_cc_ops krb5_acc_ops;
extern const krb5_cc_ops krb5_fcc_ops;
extern const krb5_cc_ops krb5_mcc_ops;
extern const krb5_cc_ops krb5_kcm_ops;
extern const krb5_cc_ops krb5_scc_ops;
extern const krb5_kt_ops krb5_fkt_ops;
extern const krb5_kt_ops krb5_wrfkt_ops;
extern const krb5_kt_ops krb5_javakt_ops;
extern const krb5_kt_ops krb5_mkt_ops;
extern const krb5_kt_ops krb5_akf_ops;
extern const krb5_kt_ops krb4_fkt_ops;
extern const krb5_kt_ops krb5_srvtab_fkt_ops;
extern const krb5_kt_ops krb5_any_ops;
#define KRB5_KPASSWD_VERS_CHANGEPW 1 #define KRB5_KPASSWD_VERS_CHANGEPW 1
#define KRB5_KPASSWD_VERS_SETPW 0xff80 #define KRB5_KPASSWD_VERS_SETPW 0xff80
@@ -782,5 +762,26 @@ struct sockaddr;
#include <krb5-protos.h> #include <krb5-protos.h>
/* variables */
extern KRB5_LIB_VARIABLE const char *krb5_config_file;
extern KRB5_LIB_VARIABLE const char *krb5_defkeyname;
extern KRB5_LIB_VARIABLE const krb5_cc_ops krb5_acc_ops;
extern KRB5_LIB_VARIABLE const krb5_cc_ops krb5_fcc_ops;
extern KRB5_LIB_VARIABLE const krb5_cc_ops krb5_mcc_ops;
extern KRB5_LIB_VARIABLE const krb5_cc_ops krb5_kcm_ops;
extern KRB5_LIB_VARIABLE const krb5_cc_ops krb5_scc_ops;
extern KRB5_LIB_VARIABLE const krb5_kt_ops krb5_fkt_ops;
extern KRB5_LIB_VARIABLE const krb5_kt_ops krb5_wrfkt_ops;
extern KRB5_LIB_VARIABLE const krb5_kt_ops krb5_javakt_ops;
extern KRB5_LIB_VARIABLE const krb5_kt_ops krb5_mkt_ops;
extern KRB5_LIB_VARIABLE const krb5_kt_ops krb5_akf_ops;
extern KRB5_LIB_VARIABLE const krb5_kt_ops krb4_fkt_ops;
extern KRB5_LIB_VARIABLE const krb5_kt_ops krb5_srvtab_fkt_ops;
extern KRB5_LIB_VARIABLE const krb5_kt_ops krb5_any_ops;
#endif /* __KRB5_H__ */ #endif /* __KRB5_H__ */

View File

@@ -452,7 +452,7 @@ mcc_default_name(krb5_context context, char **str)
* @ingroup krb5_ccache * @ingroup krb5_ccache
*/ */
const krb5_cc_ops krb5_mcc_ops = { KRB5_LIB_VARIABLE const krb5_cc_ops krb5_mcc_ops = {
KRB5_CC_OPS_VERSION, KRB5_CC_OPS_VERSION,
"MEMORY", "MEMORY",
mcc_get_name, mcc_get_name,

View File

@@ -1360,7 +1360,7 @@ scc_set_default(krb5_context context, krb5_ccache id)
* @ingroup krb5_ccache * @ingroup krb5_ccache
*/ */
const krb5_cc_ops krb5_scc_ops = { KRB5_LIB_VARIABLE const krb5_cc_ops krb5_scc_ops = {
KRB5_CC_OPS_VERSION, KRB5_CC_OPS_VERSION,
"SDB", "SDB",
scc_get_name, scc_get_name,