Debian Codegraph @

src/util/ChangeLog

raw
1 2009-08-08 Moritz <[email protected]>
2
3 * configure-stamp.in: New file.
4 * Makefile.am (defs.h): Added dependency on configure-stamp.
5 (EXTRA_DIST, CLEANFILES): Added configure-stamp.
6
7 2008-12-22 Moritz <[email protected]>
8
9 * simpleparse.c (internal_process_tokens): Added error message in
10 case lookup_opt_spec_long returned error.
11 (internal_parse_args): cosmetic change to error message.
12 (internal_process_tokens): Added error message in case required
13 argument is missing. Added error message in case an unexpected
14 argument is given.
15 (internal_process_tokens): Changed token processing: implement
16 better error handling than simple assert.
17
18 2008-11-22 Moritz <[email protected]>
19
20 * simplelog.c (internal_log_write): Fallback to log level LOG_ERR
21 in case the caller passes an invalid log level.
22 * support.c: Added <limits.h>, thanks to Peter Lewis.
23
24 2008-08-07 Moritz <[email protected]>
25
26 * defs.h.in (POLDI_USERS_DB_FILE, POLDI_KEY_DIRECTORY): Removed
27 definitions.
28
29 * usersdb.c, usersdb.h: Removed files.
30
31 * defs.h.in (POLDI_OLD_CARD_KEY_RETRIVAL_EXPLANATION): Removed
32 definition.
33 (POLDI_PIN2_QUERY_MSG): Likewise.
34 (POLDI_PIN3_QUERY_MSG): Likewise.
35
36 2008-08-04 Moritz <[email protected]>
37
38 * support.c (file_to_string_internal, sexp_to_string): Use xfree()
39 instead of free().
40
41 * optparse.c, optparse.h: Removed.
42 * simpleparse.c: Marked strings for i18n.
43
44 2008-08-03 Moritz <[email protected]>
45
46 * Makefile.am (poldi_util_SOURCES): Removed i18n.h.
47 (i18n.h): Removed file.
48
49 * simpleparse.c: Include support.h.
50 * support.h (conversation_cb_t): Removed unused type.
51 (enum conversation_type_t): Likewise.
52 * simpleparse.c (my_strlen): Moved funtion ...
53 * support.c (my_strlen): ... here.
54
55 2008-07-29 Moritz <[email protected]>
56
57 * simpleparse.h: New type: simpleparse_i18n_cb_t.
58 Declare new function simpleparse_set_i18n_cb.
59 * simpleparse.c (simpleparse_set_i18n_cb): New function.
60 (translate): New function.
61 Added calls to function translate() throughout the code for i18n.
62
63 2008-07-20 Moritz <[email protected]>
64
65 * sexputil, sexp-parse.h: Removed files.
66 * Makefile.am: dito.
67
68 2008-07-20 Moritz <[email protected]>
69
70 * Makefile.am (poldi_util_SOURCES): added util-local.h,
71 simplelog.c, simplelog.h, simpleparse.c, simpleparse.h,
72 filenames.c, filenames.h.
73 * util.h: Stripped: removed jnlib includes, unused GCC macros,
74 memory manager definitions, unused function declarations.
75 * convert.c: Removed unused functions.
76 * support.c: Removed jnlib includes, include poldi.h.
77 * util-local.h: New file.
78 * membuf.c, membuf.c: Remerged from GnuPG.
79 * membuf.c: Include util-local.h, not config.h.
80 * usersdb.c: Don't include jnlib/stringhelp.h.
81 * filenames.c, filenames.h, simplelog.c, simplelog.h,
82 simpleparse.c, simpleparse.h: New files.
83
84 2008-06-20 Moritz <[email protected]>
85
86 * support.c: Do not include <jnlib/logging.h>.
87
88 2008-06-14 Moritz <[email protected]>
89
90 * util.h: Do not include dotlock.h.
91
92 * membuf.c, membuf.h: Replace with new copy from GnuPG, no idea
93 why secure memory was disabled previously.
94
95 2008-05-01 Moritz <[email protected]>
96
97 * Makefile.am: Build a shared and a nonshared version.
98
99 2008-04-05 Moritz <[email protected]>
100
101 * support.c, support.h (convert_to_hex): Removed function.
102
103 * poldi-ctx.h, poldi-ctx-opaque.h: Removed.
104
105 * support.c: New function: challenge_release; don't include scd.h;
106 removed functions: key_filename_construct, lookup_own_username,
107 key_lookup_by_serialno, directory_process.
108
109 * usersdb.c: Removed functions: usersdb_remove, usersdb_add,
110 usersdb_list.
111 * usersdb.h: Adjusted.
112
113 * util.h: Removed unused definition of HASH_FNC.
114
115 2007-12-15 Moritz Schulte <[email protected]>
116
117 * poldi-ctx.h (struct poldi_ctx_s): Remove const attribute from
118 member: logfile. New member: dirmngr_socket.
119 Added copyright notice.
120
121 * util.h: Removed unused replacement dummy function for ttyname().
122
123 * sexputil.c (cmp_simple_canon_sexp): Removed unused function.
124 (make_simple_sexp_from_hexstr): Likewise.
125
126 * util.h (xmalloc_secure_clear, xmalloc_clear): Removed these
127 compat macro for gpg 1.4.
128 * util.h: Removed declaration for cmp_simple_canon_sexp.
129
130 2007-11-25 Moritz <[email protected]>
131
132 * support.h: Declare function file_to_binstring.
133 * support.c (file_to_string_internal): New function, based in
134 former function file_to_string.
135 (file_to_string): is now a wrapper on top of
136 file_to_string_internal.
137 (file_to_binstring): New function, wrapper on top of
138 file_to_string_internal.
139
140 2007-11-11 Moritz <[email protected]>
141
142 * util.h: Cleanup: removed plenty of unnecessary declarations.
143
144 2007-11-10 Moritz <[email protected]>
145
146 * optparse.c (options_parse_argv): Removed const qualifier from
147 argv. Removed argv_cp related snippets.
148 (options_parse_argv_const): New function, wrapper for
149 options_parse_argv, using char_vector_dup.
150 * optparse.h (options_parse_argv, options_parse_argv, const):
151 Adjusted declarations.
152
153 * support.c (char_vector_dup): Removed unused variable s. Set c[i]
154 to NULL, not to a[i] (which is also NULL), because of const
155 qualifier.
156
157 2007-11-04 Moritz <[email protected]>
158
159 * poldi-ctx.h (struct poldi_ctx_s): New members: auth_method,
160 debug.
161
162 * optparse.c (options_parse_argv): New parameter: flags; declare
163 argv parameter const. New local variable: argv_cp; use
164 char_vector_dup/char_vector_free to create temporary non-const
165 argv. Include "support.h".
166 * optparse.h (OPTPARSE_FLAG_DONT_SKIP_FIRST): New symbol.
167 (options_parse_argv): Adjust declaration.
168 * support.c (char_vector_dup, char_vector_free): New functions.
169 * support.h: Declare new functions.
170
171 2007-11-03 Moritz Schulte <[email protected]>
172
173 * poldi-ctx.h: Include config.h. In case ENABLE_AUTH_METHOD_X509
174 is defined: include dirmngr.h, define dirmngr_ctx_t member in
175 struct poldi_ctx_s.
176 * sexputil.c: New file, taken from GnuPG.
177 * sexp-parse.h: Likewise.
178 * convert.c: Likewise.
179 * Makefile.am (libpoldi_common_a_SOURCES): Added new files.
180
181 2007-10-27 Moritz <[email protected]>
182
183 * poldi-ctx.h, poldi-ctx-opaque.h: New files.
184 * Makefile.am (libpoldi_common_a_SOURCES): Added: poldi-ctx.h,
185 poldi-ctx-opaque.h.
186
187 2007-08-16 Moritz <[email protected]>
188
189 * defs.h.in: Cosmetics.
190
191 2007-06-29 Moritz <[email protected]>
192
193 * Makefile.am (libpoldi_common_a_SOURCES): Adjusted.
194 * card.c, card.h: Removed.
195 * i18n.h, membuf.c, membuf.h, util.h, README: New files.
196 * options.c, options.h: Renamed to optparse.c, optparse.h;
197 adjusted ifndef and include line.
198 * support.c: Include scd.h instead of card.h.
199 (authenticate): Removed function.
200 (wait_for_card): Likewise.
201 (convert_to_hex): New function.
202 * support.h: Added declaration for convert_to_hex, removed
203 declarations for authenticate and wait_for_card. Include scd.h
204 instead of card.h.
205 * usersdb.c: Added some assertions.
206
207 2005-12-11 Moritz Schulte <[email protected]>
208
209 * support.c (authenticate): Use card_auth() instead of
210 card_sign().
211
212 * usersdb.c, usersdb.h: Added documentation.
213
214 2005-12-10 Moritz Schulte <[email protected]>
215
216 * support.c (directory_process): New function.
217 Include <dirent.h>.
218
219 * support.h (directory_process_cb_t): New type.
220 (directory_process): Declare new function.
221
222 2005-12-03 Moritz Schulte <[email protected]>
223
224 * support.c (key_lookup_by_username): Removed function.
225 (key_lookup_by_serialno): New function.
226 (wait_for_card): New parameter: type; pass to card_info.
227
228 * support.h: Include <card.h>.
229 (wait_for_card): New parameter: card_key_t type.
230 (key_lookup_by_username): Removed function.
231 (key_lookup_by_serialno): New function.
232
233 * card.c: Include <card.h>.
234 (key_identifier_codes): New array.
235 (card_info): Adjust API; read-out fingerprint depending on new
236 TYPE parameter.
237 (card_decrypt, card_auth): New functions.
238
239 * card.h (card_key_t): New enumeration list.
240 (card_info): New parameter: card_kye_t type.
241 (card_decrypt, card_auth): Declare new functions.
242
243 * support.c, support.h: Moved usersdb-related code ...
244 * usersdb.c, usersdb.h: ... into these new files.
245 * Makefile.am (libpoldo_common_a_SOURCES): Added new files.
246
247 2005-11-19 Moritz Schulte <[email protected]>
248
249 * card.c (card_read_key): New parameter: *KEY_NBITS, fill with
250 size of RSA modulus in case it is non-NULL.
251 * card.h (card_read_key): Adjust API.
252
253 2005-11-12 Moritz Schulte <[email protected]>
254
255 * support.c (wait_for_card): New parameter: card_key_t type; pass
256 to card_info().
257 * support.h (wait_for_card): Adjust to new API.
258 Include <card.h>.
259
260 * card.h (card_key_t): New type.
261 (card_read_key): New parameter: card_key_t type.
262 (card_info): Likewise.
263
264 * card.c (key_identifier_codes): New static array.
265 (card_read_key): Adjust to new API; return error in case TYPE
266 contains an unknown type; lookup key code in KEY_IDENTIFIER_CODES
267 instead of hard-coding the code for the signature key.
268 Include <card.h>.
269
270
271 2005-10-31 Moritz Schulte <[email protected]>
272
273 * support.c, support.h, card.c, card.h: Added code documentation.
274
275 * support.c (challenge_verify): Renamed parameter KEY to
276 PUBLIC_KEY.
277
278 2005-10-29 Moritz Schulte <[email protected]>
279
280 * support.c (sexp_to_string): Initialize FMT directly, declare
281 const. Added even more comments.
282 (key_lookup_by_username): New function (formerly: lookup_key from
283 pam_poldi.c).
284 Include <jnlib/logging.h>.
285 (authenticate): New function (formerly: do_auth from pam_poldi.c).
286 (wait_for_card): New function (based on former wait_for_card from
287 pam_poldi.c)
288
289 * support.h (key_lookup_by_username): Declare new function.
290 (authenticate): Declare new function.
291 (wait_for_card): New function.
292
293 2005-10-26 Moritz Schulte <[email protected]>
294
295 * support.c (usersdb_remove_entry): Use assert to make verify to
296 enforce calling convention.
297 (usersdb_remove_entry): New argument: NENTRIES; new local variable
298 NENTRIES_REMOVED; count number of removed entries in
299 NENTRIES_REMOVED, store number in NENTRIES on success.
300 * support.h (usersdb_remove_entry): Adjust declaration.
301
302 2005-10-23 Moritz Schulte <[email protected]>
303
304 * support.c (lookup_own_username): New function.
305 * support.h (lookup_own_username): Declare.
306
307 2005-10-16 Moritz Schulte <[email protected]>
308
309 * support.c (key_filename_construct): New function.
310 Include <jnlib/string.h>.
311 Include <jnlib/xmalloc.h> instead of <../jnlib/xmalloc.h>.
312 * support.h (key_filename_construct): Declare function.
313
314 2005-09-26 Moritz Schulte <[email protected]>
315
316 Thanks to Alessandro Rubini:
317
318 * card.c: Include <time.h>.
319 (wait_for_card): New parameter: TIMEOUT; new variables T0, T;
320 return 1 in case the specified timeout elapsed without any card
321 being inserted.
322 (card_init): New parameter: TIMEOUT; new variable: RET; pass
323 TIMEOUT to wait_for_card();
324 * card.h (card_sign): Updated card_init API.
325
326 2005-07-26 Moritz Schulte <[email protected]>
327
328 * support.c (username_to_serialno): Renamed function to ...
329 (usersdb_lookup_by_username): ... this; changed callers.
330 (serialno_to_username): Renamed function to ...
331 (usersdb_lookup_by_serialno): ... this; changed callers.
332 (usersdb_translate): Remove const attribute for FOUND argument;
333 only fill FOUND if non-NULL.
334 (usersdb_lookup_by_serialno): Remove const attreibute for USERNAME
335 argument.
336 (usersdb_lookup_by_username): Remove const attreibute for SERIALNO
337 argument.
338 * support.h: Updated API.
339
340 * card.c: Some cosmetic changes.
341
342 2005-07-13 Moritz Schulte <[email protected]>
343
344 * defs.h.in (POLDI_OLD_CARD_KEY_RETRIVAL_EXPLANATION): New symbol.
345 (POLDI_PIN2_QUERY_MSG, POLDI_PIN3_QUERY_MSG): Change strings.
346
347 * card.c: Include <assert.h>
348 (card_info): New API, return card version information, if
349 requested.
350 * card.h: Update card_info() API.
351
352 2004-11-27 Moritz Schulte <[email protected]>
353
354 * options.c (options_parse_conf): Do not fail if file does not
355 exist.
356
357 * card.c (wait_for_new_card): Renamed to ...
358 (wait_for_card): ... this; new argument: require_card_switch;
359 adjust function accordingly; adjust callers.
360 (card_init): Rename argument `wait_for_card' to `wait'; new
361 argument: require_card_switch; pass to wait_for_card.
362 * card.h (card_open): Update declaration.
363
364 2004-11-13 Moritz Schulte <[email protected]>
365
366 * support.c (file_to_string): NUL-terminate string.
367 * card.c (wait_for_new_card): New function, merged from gscutils ...
368 (card_init): ... use it here.
369