summarylogtreecommitdiffstats
path: root/14-MinGW-w64-add-LIBSASL_API-to-function-definitions.patch
blob: d7dbf10abf26c694e7d1171f90ccda8c51d64cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
diff -urN a/sasldb/db_berkeley.c b/sasldb/db_berkeley.c
--- a/sasldb/db_berkeley.c	2014-08-12 22:40:34.277570400 +0100
+++ b/sasldb/db_berkeley.c	2014-08-12 22:40:35.109618000 +0100
@@ -358,7 +358,7 @@
   return result;
 }
 
-int _sasl_check_db(const sasl_utils_t *utils,
+LIBSASL_API int _sasl_check_db(const sasl_utils_t *utils,
 		   sasl_conn_t *conn)
 {
     const char *path = SASL_DB_PATH;
@@ -412,7 +412,7 @@
     DBC *cursor;
 } berkleyhandle_t;
 
-sasldb_handle _sasldb_getkeyhandle(const sasl_utils_t *utils,
+LIBSASL_API sasldb_handle _sasldb_getkeyhandle(const sasl_utils_t *utils,
 				   sasl_conn_t *conn) 
 {
     int ret;
@@ -447,7 +447,7 @@
     return (sasldb_handle)handle;
 }
 
-int _sasldb_getnextkey(const sasl_utils_t *utils __attribute__((unused)),
+LIBSASL_API int _sasldb_getnextkey(const sasl_utils_t *utils __attribute__((unused)),
 		       sasldb_handle handle, char *out,
 		       const size_t max_out, size_t *out_len) 
 {
@@ -501,7 +501,7 @@
 }
 
 
-int _sasldb_releasekeyhandle(const sasl_utils_t *utils,
+LIBSASL_API int _sasldb_releasekeyhandle(const sasl_utils_t *utils,
 			     sasldb_handle handle) 
 {
     berkleyhandle_t *dbh = (berkleyhandle_t *)handle;
diff -urN a/sasldb/db_gdbm.c b/sasldb/db_gdbm.c
--- a/sasldb/db_gdbm.c	2014-08-12 22:40:34.276570300 +0100
+++ b/sasldb/db_gdbm.c	2014-08-12 22:40:35.111618100 +0100
@@ -221,7 +221,7 @@
   return result;
 }
 
-int _sasl_check_db(const sasl_utils_t *utils,
+LIBSASL_API int _sasl_check_db(const sasl_utils_t *utils,
 		   sasl_conn_t *conn)
 {
     const char *path = SASL_DB_PATH;
@@ -270,7 +270,7 @@
     int first;
 } handle_t;
 
-sasldb_handle _sasldb_getkeyhandle(const sasl_utils_t *utils,
+LIBSASL_API sasldb_handle _sasldb_getkeyhandle(const sasl_utils_t *utils,
 				   sasl_conn_t *conn) 
 {
     const char *path = SASL_DB_PATH;
@@ -316,7 +316,7 @@
     return (sasldb_handle)handle;
 }
 
-int _sasldb_getnextkey(const sasl_utils_t *utils __attribute__((unused)),
+LIBSASL_API int _sasldb_getnextkey(const sasl_utils_t *utils __attribute__((unused)),
 		       sasldb_handle handle, char *out,
 		       const size_t max_out, size_t *out_len) 
 {
@@ -346,7 +346,7 @@
     return SASL_CONTINUE;
 }
 
-int _sasldb_releasekeyhandle(const sasl_utils_t *utils,
+LIBSASL_API int _sasldb_releasekeyhandle(const sasl_utils_t *utils,
 			     sasldb_handle handle) 
 {
     handle_t *dbh = (handle_t *)handle;
diff -urN a/sasldb/db_ndbm.c b/sasldb/db_ndbm.c
--- a/sasldb/db_ndbm.c	2014-08-12 22:40:34.276570300 +0100
+++ b/sasldb/db_ndbm.c	2014-08-12 22:40:35.112618100 +0100
@@ -231,7 +231,7 @@
 #define SUFLEN 5
 #endif
 
-int _sasl_check_db(const sasl_utils_t *utils,
+LIBSASL_API int _sasl_check_db(const sasl_utils_t *utils,
 		   sasl_conn_t *conn)
 {
     const char *path = SASL_DB_PATH;
@@ -304,7 +304,7 @@
     int first;
 } handle_t;
 
-sasldb_handle _sasldb_getkeyhandle(const sasl_utils_t *utils,
+LIBSASL_API sasldb_handle _sasldb_getkeyhandle(const sasl_utils_t *utils,
 				   sasl_conn_t *conn) 
 {
     const char *path = SASL_DB_PATH;
@@ -350,7 +350,7 @@
     return (sasldb_handle)handle;
 }
 
-int _sasldb_getnextkey(const sasl_utils_t *utils __attribute__((unused)),
+LIBSASL_API int _sasldb_getnextkey(const sasl_utils_t *utils __attribute__((unused)),
 		       sasldb_handle handle, char *out,
 		       const size_t max_out, size_t *out_len) 
 {
@@ -380,7 +380,7 @@
     return SASL_CONTINUE;
 }
 
-int _sasldb_releasekeyhandle(const sasl_utils_t *utils,
+LIBSASL_API int _sasldb_releasekeyhandle(const sasl_utils_t *utils,
 			     sasldb_handle handle) 
 {
     handle_t *dbh = (handle_t *)handle;
diff -urN a/sasldb/db_none.c b/sasldb/db_none.c
--- a/sasldb/db_none.c	2014-08-12 22:40:34.276570300 +0100
+++ b/sasldb/db_none.c	2014-08-12 22:40:35.114618300 +0100
@@ -73,21 +73,21 @@
     return SASL_FAIL;
 }
 
-int _sasl_check_db(const sasl_utils_t *utils,
+LIBSASL_API int _sasl_check_db(const sasl_utils_t *utils,
 		   sasl_conn_t *conn)
 {
     if(conn) utils->seterror(conn, 0, "No Database Driver");
     return SASL_FAIL;
 }
 
-sasldb_handle _sasldb_getkeyhandle(const sasl_utils_t *utils,
+LIBSASL_API sasldb_handle _sasldb_getkeyhandle(const sasl_utils_t *utils,
                                    sasl_conn_t *conn) 
 {
     if(conn) utils->seterror(conn, 0, "No Database Driver");
     return NULL;
 }
 
-int _sasldb_getnextkey(const sasl_utils_t *utils __attribute__((unused)),
+LIBSASL_API int _sasldb_getnextkey(const sasl_utils_t *utils __attribute__((unused)),
                        sasldb_handle handle __attribute__((unused)),
 		       char *out __attribute__((unused)),
                        const size_t max_out __attribute__((unused)),
@@ -96,7 +96,7 @@
     return SASL_FAIL;
 }
 
-int _sasldb_releasekeyhandle(const sasl_utils_t *utils __attribute__((unused)),
+LIBSASL_API int _sasldb_releasekeyhandle(const sasl_utils_t *utils __attribute__((unused)),
                              sasldb_handle handle __attribute__((unused)))  
 {
     return SASL_FAIL;