Debian Codegraph @

src/pam/ChangeLog

raw
1 2009-08-08 Moritz <[email protected]>
2
3 * pam_poldi.c: Implement new option: scdaemon-options.
4 (pam_sm_authenticate): Pass ctx->scdaemon_options to scd_connect().
5 (pam_sm_authenticate): Changed some user messages.
6
7 2009-05-16 Moritz <[email protected]>
8
9 * pam_poldi.c (enum opt_ids, opt_specs, pam_poldi_options_cb):
10 Implement new option "modify-environment".
11 (modify_environment_putenv, modify_environment): New functions.
12 (pam_sm_authenticate): Call modify_environment() if
13 ctx->modify_environment is true.
14
15 2009-02-16 Moritz <[email protected]>
16
17 * pam_poldi.c (pam_sm_authenticate): Include name of the file that
18 could not be opened in error message.
19
20 2009-01-17 Moritz <[email protected]>
21
22 * pam_poldi.c (enum opt_ids): New entry: opt_quiet.
23 (opt_specs): New entry for opt_quiet.
24 (pam_poldi_options_cb): Parse quiet option.
25 (pam_sm_authenticate): Skip calls to conv_tell in case ctx->quiet
26 is true. Thanks, Gordian.
27
28 2008-12-22 Moritz <[email protected]>
29
30 * pam_poldi.c (pam_sm_authenticate): Be more verbose in debugging
31 mode.
32
33 * Makefile.am (pam_poldi.so): Removed $(LIBGCRYPT_LDFLAGS); it's
34 not used in libgcrypt.m4.
35
36 2008-08-17 Moritz <[email protected]>
37
38 * pam_poldi.c (pam_sm_authenticate): Removed code related to
39 system scdaemon settings.
40
41 * Makefile.am: Use CLEANFILES intead of clean-local target for
42 pam_poldi.so.
43 (uninstall-local, install-exec-local): New targets.
44
45 2008-08-07 Moritz <[email protected]>
46
47 * pam_poldi.c (pam_sm_authenticate): Removed second call to
48 log_set_flags(). Some cosmetic changes.
49 (pam_sm_authenticate): Only free username_authenticated in case
50 the authentication method returns success. Use xfree instead of
51 free. Changed two messages.
52 (destroy_context): Do not free ctx->cookie -- that's the
53 responsibility of the authentication methods _deinit function.
54
55 2008-08-04 Moritz <[email protected]>
56
57 * pam_poldi.c (pam_sm_authenticate): New variable:
58 getpin_cb_data. Call scd_set_pincb().
59 Include "getpin-cb.h".
60
61 * auth-methods.h: Removed some disabled code.
62
63 * pam_poldi.c: Marked strings for i18n.
64
65 2008-07-29 Moritz <[email protected]>
66
67 * pam_poldi.c (i18n_cb): New function...
68 (create_context, pam_sm_authenticate): ... use it here.
69
70 2008-07-14 Moritz <[email protected]>
71
72 * auth-methods.h: Include simpleparse.h instead of argparse.h.
73 (auth_method_func_parsecb_t): Removed type.
74 (struct auth_method_parse_cookie): New struct.
75 (struct auth_method_s): Dropped members func_parsecb, arg_otps,
76 new members opt_specs, parsecb.
77
78 * pam_poldi.c: Include poldi.h, simplelog.h, simpleparse.h instead
79 of not config.h, jnlib/logging.h, optparse.h.
80 Replace parsing/logging related code in favour of new
81 simplelog/simpleparse subsystem.
82
83
84 2008-05-25 Moritz <[email protected]>
85
86 Some cleanups, added GPL3 headers.
87
88 * pam_poldi.c: New conf options: arg_scdaemon_socket, arg_scdaemon_program.
89 (pam_poldi_options_cb): Handle new options.
90 (create_context): Initialize new context struct members.
91 (destroy_context): Release them.
92 (pam_sm_authenticate): Pass scdaemon_socket and scdaemon_program to scd_connect.
93 (auth_method_lookup): Return -1 in case the auth method could not be found.
94
95 2008-05-03 Moritz <[email protected]>
96
97 * Makefile.am: Link pam_poldi.so against shared library version of
98 internal libraries. Link against internal libassuan. Use gcc for
99 linking, not ld.
100
101 2008-04-05 Moritz <[email protected]>
102
103 * pam_poldi.so: Slightly reorganized.
104
105 * auth-method-localdb, auth-method-x509, auth-support: New
106 directories.
107 * auth-simpledb.c, auth-test.c, auth-x509.c, conv.c, conv.h,
108 getpin-cb.c, pam-util.c, pam-util.h, wait-for-card.c,
109 wait-for-card.h: Removed (or rather: moved into other
110 directories).
111
112 * auth-methods.h: Mostly rewritten.
113
114 2008-02-21 Moritz Schulte <[email protected]>
115
116 * Makefile.am: Use new variables SCD, DIRMNGR to implement
117 conditional linking of scdaemon/dirmngr.
118
119 * auth-methods.h: Include <gpg-error.h>, <jnlib/argparse.h>; new
120 types: auth_method_func_init_t, auth_method_func_deinit_t,
121 auth_method_func_parsecb_t, auth_method_func_auth_t;
122 auth_method_t; removed type: auth_method_func_t.
123
124
125 2008-02-15 Moritz Schulte <[email protected]>
126
127 * auth-x509.c (email_address_match)
128 (email_address_extract_account): New functions.
129 (extract_username_from_cert): Rewritten to use above function.
130
131 2008-01-04 Moritz Schulte <[email protected]>
132
133 * pam_poldi.c (arg_opts): Cosmetic change in description of
134 logfile option.
135
136 2007-12-15 Moritz Schulte <[email protected]>
137
138 * pam_poldi.c (enum arg_opt_ids): New entry for arg_dirmngr_socket.
139 (arg_opts): Likewise.
140 (pam_poldi_options_cb): Handle arg_dirmngr_socket. Use strdup
141 instead of xstrdup.
142 (destroy_context, create_context): New functions ...
143 (pam_sm_authenticate): ... use them here.
144
145 * auth-x509.c: Include <config.h>.
146 (auth_method_x509): Removed pubkey url overwriting debug code.
147 (auth_method_x509): modified conv_tell interaction with application.
148
149 * getpin-cb.c (getpin_cb): Use gcry_free instead of xfree.
150 (agent_popup_message_start, agent_popup_message_stop): Declare static.
151 (agent_popup_message_start): Removed extra args.
152 (agent_popup_message_stop): Return error code.
153 Do not include jnlib/xmalloc.h.
154
155 2007-11-25 Moritz <[email protected]>
156
157 * Makefile.am (libpam_poldi_a_SOURCES): Added files: conv.h,
158 wait-for-card.h, getpin-cb.h, pam-util.c, pam-util.h.
159
160 * auth-simpledb.c (auth_method_simpledb): Removed local variable
161 username_void. Use retrieve_username_from_pam instead of
162 pam_get_item directly. Use send_username_to_pam instead of
163 pam_set_item.
164
165 * pam-util.h, pam-util.c: New file.
166 * auth-x509.c, auth-simpledb.c: Include "pam-util.h" and use
167 functions contained in pam-util.c for retrieving username from PAM
168 and sending username to PAM.
169 (extract_username_from_cert): New DUMMY(!) function.
170 (lookup_cert_from_file): New function.
171
172 (auth_method_x509): Some cleanups; use retrieve_username_from_pam,
173 allow pubkey_url to be prefixed with "file://" using
174 looking_cert_from_file in that case. Use poldi_dirmngr_validate
175 instead of poldi_dirmngr_isvalid. Handle username.
176
177 * auth-x509.c (auth_method_x509): Call poldi_dirmngr_validate
178 instead of poldi_dirmngr_isvalid.
179
180 007-11-18 Moritz <[email protected]>
181
182 * auth-x509.c (auth_method_x509): In case of a invalid pubkey_url,
183 return GPG_ERR_INV_CARD, not GPG_ERR_GENERAL.
184 (auth_method_x509): Don't forget to release CERT.
185
186 2007-11-11 Moritz <[email protected]>
187
188 * auth-x509.c (auth_method_x509): adjust call to
189 poldi_dirmngr_connect; pass return value from getenv.
190 (extract_public_key_from_cert, verify_challenge_sig): New
191 functions.
192
193 2007-11-10 Moritz <[email protected]>
194
195 * auth-simpledb.c (auth_method_simpledb): Uuuh: return !err,
196 instead of !!err. Currently the semantics for the auth_method_*
197 functions are: they return TRUE for success and FALSE for failure.
198
199 * Makefile.am (AM_CFLAGS): Added: KSBA_CFLAGS.
200 (pam_poldi.so): Added: KSBA_LIBS.
201
202 * pam_poldi.c (pam_sm_authenticate): Connect/disconnect to/from
203 scdaemon.
204
205 * auth-simpledb.c: Added plenty of missing includes.
206 (cardinfo_null): New static variable.
207
208 * pam_poldi.c (pam_sm_authenticate): Use options_parse_argv_const
209 instead of options_parse_argv.
210
211 2007-11-04 Moritz <[email protected]>
212
213 * Makefile.am: Changed the way the pam module gets built. No, a
214 static library libpam_poldi.a is built. Based on conditionals,
215 decide which auth-*.c files shall be built.
216
217 * auth-x509.c: New file.
218 * auth-test.c: New file.
219 * auth-simpledb.c (auth_method_simpledb): New file. Basically
220 contains the former pam_sm_authenticate().
221
222 * auth-methods.h: New file.
223
224 * pam_poldi.c (parse_argv): Removed function.
225 (pam_sm_authenticate): Call options_parse_argv instead of
226 parse_argv.
227 Include auth-methods.h.
228 Added declarations for authentication method functions.
229 (struct auth_method): New.
230 (auth_methods): New array.
231 (struct pam_poldi_opt): Removed.
232 (enum arg_opt_ids): New: arg_auth_method, arg_debug.
233 (arg_opts): New entries for new args.
234 (auth_method_lookup): New function.
235 (pam_poldi_options_cb): Handle new arguments.
236 (pam_sm_authenticate): Heavily stripped. Calls authentication
237 method.
238
239 2007-10-28 Moritz <[email protected]>
240
241 * Makefile.am (pam_poldi.so): Removed reference to
242 libscd-support.a.
243
244 2007-10-27 Moritz <[email protected]>
245
246 * pam_poldi.c (poldi_ctx_NULL): New static variable.
247 (pam_poldi_opt): Removed static structure.
248 (enum arg_opt_ids): Removed all args except arg_logfile,
249 arg_wait_timeout. Note: debug/verbose option handling will
250 be reintegrated soon.
251 (arg_opts): See above.
252 (pam_poldi_options_cb): See above.
253
254 (pam_sm_authenticate): Removed scd_context_t ctx. New variable:
255 poldi_ctx_t ctx; allocate and initialize. Use poldi_scd_*
256 functions instead of scd_*. Use new conv_tell/conv_ask functions
257 instead of old tell_user/ask_user. Removed old conv_opaque
258 struct. Simplified PAM conv calling, no idea why it was written
259 the way it was written before.
260
261 (parse_argv): Made a dummy function for now, proper argument
262 parsing will be integrated soon.
263
264 * Makefile.am (pam_poldi.so): Include conv.o, wait-for-card.o,
265 getpin-cb.o. Removed libscd-support.
266 * Makefile.am: Added new implicit rule for compiling .c objects.
267 (CLEANFILES): Added new object files.
268
269 * conv.c, conv.h: New files, contains slightly modified PAM
270 conversation functions formerly contained in pam_poldi.c. Uses
271 new poldi_ctx_t.
272
273 * getpin-cb.c, getpin-cb.h: New files, contain slightly modified
274 code formerly contained in ../common. Uses new poldi_ctx_t.
275
276 * wait-for-card.c, wait-for-card.h: New files, contain slightly
277 modified code formerly contained in ../common. Uses new
278 poldi_ctx_t.
279
280 2007-08-17 Moritz <[email protected]>
281
282 * pam_poldi.c (pam_sm_authenticate): Call wait_for_card().
283
284 2007-07-13 Moritz <[email protected]>
285
286 * pam_poldi.c (pam_sm_authenticate): Lookup GPG_AGENT_INFO, not
287 SCDAEMON_INFO, error checking after scd_connect.
288
289 2007-06-30 Moritz <[email protected]>
290
291 * pam_poldi.c: Removed includes: <common/options.h>,
292 <libscd/scd.h>; added includes: <common/optparse.h>, <scd/scd.h>,
293 <scd/scd-support.h>. Removed option switches: debug-sc,
294 ctapi-driver, pscs-driver, reader-port, disable-opensc,
295 disable-ccid, debug-ccid-driver
296 (cardinfo_null): New static variable.
297 (pam_sm_authenticate): Quasi rewrite, uses new scd interface.
298
299 * Makefile.am: include $(top_srcdir)/am/cmacros.am.
300 (pam_poldi.so): Removed $(LIBUSB_LIBS) from linking command.
301
302 2006-03-31 Moritz Schulte <[email protected]>
303
304 * pam_poldi.c (pam_sm_authenticate): Adjust call to log_set_syslog
305 to new API; call log_set_prefix() to register a logging prefix;
306 use log_close() instead of closelog().
307
308 2005-12-11 Moritz Schulte <[email protected]>
309
310 * pam_poldi.c: Removed some FIXMEs.
311
312 2005-12-03 Moritz Schulte <[email protected]>
313
314 * pam_poldi.c (ask_user): New parameter: secret.
315 (pam_conversation): Pass SECRET argument.
316 (pam_sm_authenticate): Rewritten in parts, simplified.
317 Adjusted to new usersdb API.
318
319 2005-11-12 Moritz Schulte <[email protected]>
320
321 * pam_poldi.c (pam_sm_authenticate): Adjust to new wait_for_card()
322 API.
323
324 * Makefile.am (libpoldi_common_a_CFLAGS): Added include path:
325 $(top_srcdir)/src/common.
326
327 2005-10-31 Moritz Schulte <[email protected]>
328
329 * pam_poldi.c: Added some more comments.
330 (pam_sm_authenticate): Adjusted to new wait_for_card() API.
331 (conv_opaque_t): New type.
332 (pam_conversation): New function.
333 (wait_for_card): Removed function, it's not included in common/.
334 (do_auth): Removed function; use authenticate() now, which is
335 included in common/.
336
337 (lookup_key): Removed function; use key_lookup_by_username() now,
338 which is included in common/.
339
340 2005-10-29 Moritz Schulte <[email protected]>
341
342 * pam_poldi.c: More verbose logging.
343 (tell_user): Declare FMT const.
344
345 2005-10-23 Moritz Schulte <[email protected]>
346
347 * pam_poldi.c: Remove Syslog logging macros, use jnlib logging
348 only (which does support logging to Syslog now).
349 (pam_sm_authenticate): Call log_set_syslog or log_set_file,
350 depending on the value of pam_poldi_opt.logfile.
351 (username_void, conv_void): New local variables, use them when
352 retrieving items from the PAM environment in order to follow
353 strict-aliasing rules.
354
355 2005-10-16 Moritz Schulte <[email protected]>
356
357 * pam_poldi.c (lookup_key): Use key_filename_construct() instead
358 of make_filename() directly.
359 Re-ordered functions, clean-up, added comments.
360
361 2005-10-15 Moritz Schulte <[email protected]>
362
363 * pam_poldi.c (parse_argv): Fixed typo related to timeout argument
364 parsing.
365
366 2005-10-08 Moritz Schulte <[email protected]>
367
368 * pam_poldi.c: Remove `fake-wait-for-card'-feature.
369
370 * Makefile.am: Drop ugly install-pam-module mechanism, implement
371 install-exec-local and uninstall-local target.
372
373 * pam_poldi.c (pam_sm_authenticate): Disable buffering on stderr.
374 We need to disable bufferring on stderr, since it might have been
375 enabled by log_set_file(). Buffering on stderr will complicate
376 PAM interaction, since e.g. libpam-misc's misc_conv() function
377 does expect stderr to be unbuffered.
378
379 2005-09-27 Moritz Schulte <[email protected]>
380
381 * pam_poldi.c (struct pam_poldi_opt): New member: TIMEOUT.
382 (pam_poldi_opt): Extend struct initialization.
383 (enum arg_opt_ids): New entry: ARG_WAIT_TIMEOUT.
384 (pam_poldi_options_cb): Handle ARG_WAIT_TIMEOUT.
385 (wait_for_card): New variables; TIMEOUT, WAIT; initialize them
386 depending on FAKE and PAM_POLDI_OPT.TIMEOUT; pass TIMEOUT and WAIT
387 to card_init.
388 (lookup_key): Use usersdb_lookup_by_username() instead of
389 username_to_serialno(); remove const attribute from SERIALNO.
390 (wait_for_card): Remove const attribute from SERIALNO.
391 (pam_sm_authenticate): Likewise.
392 (pam_sm_authenticate): Use usersdb_lookup_by_serialno() instead of
393 serialno_to_username(); remove const attribute from account.
394
395
396 2005-07-13 Moritz Schulte <[email protected]>
397
398 * pam_poldi.c (wait_for_card): Adjust to new card_info() API.
399
400 2004-11-27 Moritz Schulte <[email protected]>
401
402 * pam_poldi.c (wait_for_card): Adjust card_init caller. Implement
403 require_card_switch option.