1 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
3 * Makefile.am (scdaemon_LDADD): Add ../gl/libgnu.a after
6 2005-09-09 Werner Koch <wk@g10code.com>
8 * pcsc-wrapper.c (main): Removed bogus free.
10 * app-p15.c (do_auth): New.
11 (do_getattr): New attribs $AUTHKEYID and $DISPSERIALNO.
12 * app-openpgp.c (do_getattr): Ditto.
14 2005-09-08 Werner Koch <wk@g10code.com>
16 * app-openpgp.c (do_getattr): New key $AUTHKEYID.
18 2005-09-06 Werner Koch <wk@g10code.com>
20 * app-p15.c (do_sign): Tweaked for BELPIC cards.
21 (read_home_df): New arg R_BELPIC.
22 (app_select_p15): Set card type for BELPIC.
24 2005-09-05 Werner Koch <wk@g10code.com>
26 * iso7816.c (iso7816_select_path): New.
27 * app-p15.c (select_ef_by_path): Allow for direct path selection.
28 (app_select_p15): Try using the Belgian variant of pkcs#15.
30 (read_ef_odf): Generalized.
31 (read_ef_tokeninfo): New.
32 (read_p15_info): Set serialnumber from TokenInfo.
33 (app_select_p15): Don't munge serialNumber - that must be done
36 * iso7816.c (iso7816_read_binary): Use Le=0 when reading all
37 data. Handle 6C00 error and take 6B00 as indication for EOF.
38 * apdu.h (SW_EXACT_LENGTH_P): New.
39 * apdu.c (new_reader_slot, reset_pcsc_reader, pcsc_get_status)
40 (open_pcsc_reader): Set new reader state IS_T0.
41 (apdu_send_le): When doing T=0 make sure not to send Lc and Le.
42 Problem reported by Carl Meijer.
43 (apdu_send_direct): Initialize RESULTLEN.
44 * pcsc-wrapper.c (handle_status): Return the current protocol as
47 2005-08-05 Werner Koch <wk@g10code.com>
49 * apdu.c (open_rapdu_reader): Set the reader number.
51 2005-07-05 Werner Koch <wk@g10code.com>
53 * app-openpgp.c (do_readkey): Return a mallcoed copy of the key as
54 required by the description. Thanks to Moritz for tracking this
57 2005-06-21 Werner Koch <wk@g10code.com>
59 * scdaemon.c (main): ifdef call to ccid_set_debug_level.
61 * apdu.c (reset_pcsc_reader, open_pcsc_reader): Cast size_t to
64 2005-06-06 Werner Koch <wk@g10code.com>
66 * scdaemon.c (main): New option --debug-allow-core-dump.
68 2005-06-03 Werner Koch <wk@g10code.com>
70 * scdaemon.c (handle_connections): Make sure that the signals we
71 are handling are not blocked.Block signals while creating new
73 (handle_connections): Include the file descriptor into the name of
76 2005-06-02 Werner Koch <wk@g10code.com>
78 * app.c (app_dump_state, dump_mutex_state): New.
79 * scdaemon.c (handle_signal): Print it on SIGUSR1.
81 * app-openpgp.c (do_writekey): Typo fix.
83 * command.c (open_card): Check for locked state even if an
84 application context is available.
86 * app-common.h: Add REF_COUNT field.
87 * app.c (release_application, select_application): Implement
88 reference counting to share the context beween connections.
90 * app.c (lock_reader, unlock_reader): Take SLOT instead of APP as
91 argument. Changed all callers.
92 (select_application): Unlock the reader on error. This should fix
93 the hangs I noticed last week.
95 * scdaemon.h: Removed card_ctx_t cruft.
97 2005-06-01 Werner Koch <wk@g10code.com>
99 * scdaemon.c: Include mkdtemp.h.
101 2005-05-31 Werner Koch <wk@g10code.com>
103 * tlv.c [GNUPG_MAJOR_VERSION==1]: Define constants instead of
104 including a gnupg 1.4 header.
106 2005-05-30 Werner Koch <wk@g10code.com>
108 * tlv.c: Add hack to compile without gpg-error.h when used with
111 2005-05-23 Werner Koch <wk@g10code.com>
113 * Makefile.am: Do not build sc-copykeys anymore.
115 * app-openpgp.c (app_openpgp_storekey, app_openpgp_readkey)
116 (app_openpgp_cardinfo): Removed.
118 * ccid-driver.c (parse_ccid_descriptor): SCR335 FW version 5.14 is
120 (do_close_reader): Never do a reset. The caller should instead
121 make sure that the reader has been closed properly. The new retry
122 code in ccid_slot_status will make sure that the readersatrts up
123 fine even if the last process didn't closed the USB connection
125 (ccid_get_atr): For certain readers try switching to ISO mode.
126 Thanks to Ludovic Rousseau for this hint and the magic numbers.
127 (print_command_failed): New.
128 (bulk_in): Use it here. Add new arg NO_DEBUG.
129 (ccid_slot_status): Disabled debugging.
131 2005-05-21 Werner Koch <wk@g10code.com>
133 * scdaemon.c (handle_signal): Print thread info on SIGUSR1.
135 2005-05-20 Werner Koch <wk@g10code.com>
137 * ccid-driver.c: Replaced macro DEBUG_T1 by a new debug level.
138 (parse_ccid_descriptor): Mark SCR335 firmware version 5.18 good.
139 (ccid_transceive): Arghhh. The seqno is another bit in the
140 R-block than in the I block, this was wrong at one place.
142 * scdaemon.c: New options --debug-ccid-driver and
143 --debug-disable-ticker.
145 * app-openpgp.c (do_genkey, do_writekey): Factored code to check
146 for existing key out into ..
147 (does_key_exist): .. New function.
149 2005-05-19 Werner Koch <wk@g10code.com>
151 * tlv.c (parse_sexp): New.
153 * command.c (cmd_writekey): New.
154 * app.c (app_writekey): New.
155 * app-common.c (app_t): Add function ptr WRITEKEY.
156 * app-openpgp.c (do_writekey): New.
158 * app-openpgp.c (do_readkey) [GNUPG_MAJOR_VERSION==1]: Return error.
159 * app-common.h (app_t) [GNUPG_MAJOR_VERSION==1]: Add a field to
160 store the Assuan context.
162 2005-05-17 Werner Koch <wk@g10code.com>
164 * scdaemon.c: Removed non-pth code paths.
165 (create_socket_name, create_server_socket): New. Taken from
167 (cleanup): Changed to adjust for SOCKET_NAME now being malloced.
168 (ticker_thread): Always use pth_event_occurred; it is again
169 defined for all decent PTH versions.
170 (handle_connections): New. Based on the gpg-agent code.
171 (start_connection_thread): Ditto.
172 (ticker_thread): Removed.
173 (cleanup_sh): Removed.
174 (main): Run the handler for the pipe server in a separate
175 thread. This replaces the old ticker thread.
176 (scd_get_socket_name): New.
177 * command.c (cmd_getinfo): New command GETINFO.
178 (scd_command_handler): Renamed argument and changed code to use an
179 already connected FD.
181 2005-05-15 Werner Koch <wk@g10code.com>
183 * app.c, app-common.h, app-nks.c, app-p15.c, app-dinsig.c
184 * app-openpgp.c: Change most function return types from int to
186 * command.c (pin_cb): Ditto.
187 * sc-copykeys.c (pincb): Ditto.
189 * app.c (lock_reader, unlock_reader): New. Changed call handler
190 wrappers to make use of these functions.
192 2005-05-07 Werner Koch <wk@g10code.com>
194 * ccid-driver.c (do_close_reader): Don't do a reset before close.
195 Some folks reported that it makes the SCR335 hang less often.
196 Look at the source on how to re-enable it.
198 2005-04-27 Werner Koch <wk@g10code.com>
200 * app-p15.c (micardo_mse): New.
202 * iso7816.c (iso7816_manage_security_env): Allow passing DATA as
203 NULL to indicate an empty Lc.
204 * tlv.c (find_tlv): Check that a found object fits into the
206 (find_tlv_unchecked): New as replacement for the old non-checking
208 * app.c (select_application): Keep on using the non-checking
210 * app-openpgp.c (get_one_do, dump_all_do): Ditto.
213 Removal of the old OpenSC based code.
215 * app-p15.c: New. Basic support for pkcs15 cards without OpenSC.
216 There are quite a couple of things missing but at least I can use
217 my old TCOS cards from the Aegypten-1 development for signing.
218 * app.c (select_application): Detect pkcs15 applications.
219 * Makefile.am (scdaemon_SOURCES): Removed card.c, card-common.h
220 and card-p15.c because they are now obsolete. Added app-p15.c.
221 Removed all OpenSC stuff.
222 * command.c (do_reset, open_card, cmd_serialno, cmd_learn)
223 (cmd_readcert, cmd_readkey, cmd_pksign, cmd_pkdecrypt): Removed
224 all special cases for the old card.c based mechanisms.
225 * scdaemon.c, apdu.c: Removed all special cases for OpenSC.
227 2005-04-20 Werner Koch <wk@g10code.com>
229 * command.c: Use GPG_ERR_LOCKED instead of EBUSY.
231 2005-04-14 Werner Koch <wk@g10code.com>
233 * app-openpgp.c (retrieve_key_material): Rewritten. Return a
235 (retrieve_next_token): Removed.
236 (retrieve_fpr_from_card): Rewritten to make use of DO caching and
237 to take the KEYNO as arg.
238 (get_public_key): Renamed variable for clarity.
240 2005-04-12 Werner Koch <wk@g10code.com>
242 Basic support for several sessions.
244 * command.c (scd_command_handler): Replace the primary_connection
245 stuff by a real connection list. Release the local context on
247 (scd_update_reader_status_file): Update accordingly. Send signal
248 to all connections who registered an event signal.
249 (cmd_lock, cmd_unlock, register_commands): New commands LOCK and
251 (cmd_setdata, cmd_pksign, cmd_pkauth, cmd_pkdecrypt, cmd_setattr)
252 (cmd_genkey, cmd_passwd, cmd_checkpin): Return an error if reader
254 (do_reset): Handle locking.
255 (open_card): Ditto. Share the reader slot with other sessions.
256 (get_reader_slot): New.
257 (update_card_removed): New. Use it in the TEST_CARD_REMOVAL macro.
259 2005-04-07 Werner Koch <wk@g10code.com>
261 * app-openpgp.c (do_check_pin): Add hack to allow verification of
263 (get_public_key): Don't use gcry functions to create S-expressions.
264 (do_deinit, do_readkey, do_genkey, send_keypair_info): Adjust for
267 2005-03-29 Moritz Schulte <moritz@g10code.com>
269 * app-openpgp.c (retrieve_fpr_from_card): New function.
270 (retrieve_next_token): New function.
271 (retrieve_key_material): New function.
272 (get_public_key): Implement retrival of key through expernal
273 helper (gpg) in case the openpgp card is not cooperative enough.
275 2005-03-16 Werner Koch <wk@g10code.com>
277 * ccid-driver.c (parse_ccid_descriptor): Make SCM workaround
278 reader type specific.
279 (scan_or_find_devices): Do not check the interface subclass in the
280 SPR532 kludge, as this depends on the firmware version.
281 (ccid_get_atr): Get the Slot status first. This solves the
282 problem with readers hanging on recent Linux 2.6.x.
283 (bulk_in): Add argument TIMEOUT and changed all callers to pass an
284 appropriate one. Change the standard timeout from 10 to 5 seconds.
285 (ccid_slot_status): Add a retry code with an initial short timeout.
286 (do_close_reader): Do an usb_reset before closing the reader.
288 2005-02-25 Werner Koch <wk@g10code.com>
290 * app-openpgp.c (get_public_key): Make sure not to return negative
292 (do_sign): Allow passing of indata with algorithm prefix.
293 (do_auth): Allow OPENPGP.3 as an alternative ID.
295 * app.c (app_getattr): Return just the S/N but not the timestamp.
297 2005-02-24 Werner Koch <wk@g10code.com>
299 * app.c (app_getattr): Return APPTYPE or SERIALNO type even if the
300 application does dot support the getattr call.
302 * app-openpgp.c (get_one_do): Never try to get a non cacheable
303 object from the cache.
304 (get_one_do): Add new arg to return an error code. Changed all
306 (do_getattr): Let it return a proper error code.
308 * app.c (select_application): Return an error code and the
309 application context in an new arg.
310 * command.c (open_card): Adjusted for that. Don't use the
311 fallback if no card is present. Return an error if the card has
312 been removed without a reset.
313 (do_reset, cmd_serialno): Clear that error flag.
314 (TEST_CARD_REMOVAL): New. Use it with all command handlers.
315 (scd_update_reader_status_file): Set the error flag on all changes.
317 * scdaemon.c (ticker_thread): Termintate if a shutdown is pending.
319 * apdu.c: Added some PCSC error codes.
320 (pcsc_error_to_sw): New.
321 (reset_pcsc_reader, pcsc_get_status, pcsc_send_apdu)
322 (open_pcsc_reader): Do proper error code mapping.
324 2005-03-16 Werner Koch <wk@g10code.com>
326 * ccid-driver.c (parse_ccid_descriptor): Make SCM workaround
327 reader type specific.
328 (scan_or_find_devices): Do not check the interface subclass in the
329 SPR532 kludge, as this depends on the firmware version.
330 (ccid_get_atr): Get the Slot status first. This solves the
331 problem with readers hanging on recent Linux 2.6.x.
333 2005-02-22 Werner Koch <wk@g10code.com>
335 * app-openpgp.c (app_local_s): New field PK.
336 (do_deinit, do_genkey, app_openpgp_storekey): Clear it.
337 (get_public_key, send_keypair_info): New.
338 (do_learn_status): Send KEYPAIR info
340 * app-common.h (app_ctx_t): Add function pointer READKEY.
341 * app.c (app_readkey): New.
342 * command.c (cmd_readkey): Use READKEY function if possible.
344 2005-01-26 Werner Koch <wk@g10code.com>
346 * ccid-driver.c (parse_ccid_descriptor): Need the CSM workaround
347 also for newer firmware versions. Need to get a list of fixed
348 firmware versions and use that.
350 2005-01-25 Werner Koch <wk@g10code.com>
352 * apdu.c (apdu_send_le, apdu_send_direct): Fix some compiler
355 * app-openpgp.c (get_cached_data): New arg GET_IMMEDIATE to bypass
356 the cache. Changed all callers.
357 (get_one_do): Bypass the cache if the value would have been read
358 directly for v1.1 cards.It makes things a bit slower but obnly for
359 1.0 cards and there are not that many cards out in the wild. This
360 is required to fix a caching bug when generating new keys; as a
361 side effect of the retrieval of the the C4 DO from the 6E DO the
362 cached fingerprint will get updated to the old value and later
363 when signing the generated key the checking of the fingerprint
364 fails because it won't match the new one. Thanks to Moritz for
365 analyzing this problem.
366 (verify_chv3): Removed the CHV status reread logic because we
367 won't cache the C4 DO anymore.
369 2004-12-28 Werner Koch <wk@g10code.com>
371 * ccid-driver.c (find_endpoint): New.
372 (scan_or_find_devices): Add new args to return endpoint info and
374 (ccid_open_reader, ccid_shutdown_reader): Take care of these new
376 (bulk_in, bulk_out): Use the correct endpoints.
377 (ccid_transceive_apdu_level): New.
378 (ccid_transceive): Divert to above.
379 (parse_ccid_descriptor): Allow APDU level exchange mode.
380 (do_close_reader): Pass the interface number to usb_release_interface.
382 2004-12-21 Werner Koch <wk@g10code.com>
384 * scdaemon.c (main): Use default_homedir().
386 2004-12-18 Werner Koch <wk@g10code.com>
388 * scdaemon.c (main) [W32]: Remove special Pth initialize..
390 * scdaemon.h (map_assuan_err): Define in terms of
391 map_assuan_err_with_source.
393 2004-12-15 Werner Koch <wk@g10code.com>
395 * scdaemon.c [W32]: Various hacks to make it run under W32.
397 * command.c (scd_update_reader_status_file) [W32]: Don't use kill.
399 * apdu.c [W32]: Disable use of pcsc_wrapper.
401 * Makefile.am (scdaemon_LDADD): Reorder libs.
402 (sc_copykeys_LDADD): Add libassuan because it is needed for W32.
404 2004-12-06 Werner Koch <wk@g10code.com>
406 * Makefile.am (pkglib_PROGRAMS): Build only for W32.
408 2004-10-22 Werner Koch <wk@g10code.com>
410 * app-openpgp.c (verify_chv3): The minium length for CHV3 is
411 8. Changed string to match the other ones.
413 2004-10-21 Werner Koch <wk@g10code.com>
415 * app-openpgp.c (do_sign): Replace asprintf by direct allocation.
416 This avoids problems with missing vasprintf implementations in
419 * app-common.h (app_openpgp_storekey: Add prototype.
421 2004-10-20 Werner Koch <wk@g10code.com>
423 * sc-investigate: Removed.
424 * Makefile.am (sc_investigate): Removed.
426 * pcsc-wrapper.c (load_pcsc_driver): Load get_status_change func.
427 (handle_open): Succeed even without a present card.
428 (handle_status, handle_reset): New.
430 * apdu.c (apdu_open_reader): Load pcsc_get_status_change fucntion.
431 (pcsc_get_status): Implemented.
432 (reset_pcsc_reader): Implemented.
433 (open_pcsc_reader): Succeed even with no card inserted.
434 (open_ccid_reader): Set LAST_STATUS.
436 * iso7816.c (iso7816_select_application): Always use 0 for P1.
438 2004-10-18 Werner Koch <wk@g10code.com>
440 * ccid-driver.c (ccid_get_atr): Reset T=1 state info.
442 2004-10-14 Werner Koch <wk@g10code.com>
444 * app-openpgp.c (parse_login_data): New.
445 (app_select_openpgp): Call it.
446 (do_setattr): Reparse it after change.
448 2004-10-06 Werner Koch <wk@g10code.de>
450 * ccid-driver.c (ccid_open_reader): Store the vendor ID.
451 (ccid_transceive_secure): New.
452 (parse_ccid_descriptor): Workaround for an SCM reader problem.
454 2004-10-04 Werner Koch <wk@g10code.de>
456 * ccid-driver.c (send_escape_cmd): New.
458 2004-09-30 Werner Koch <wk@g10code.com>
460 * Makefile.am: Adjusted for gettext 0.14.
462 * app-openpgp.c (do_sign): Add the error string to the verify
465 2004-09-27 Werner Koch <wk@g10code.com>
469 * app-openpgp.c: Made all strings translatable.
470 (verify_chv3) [GNUPG_MAJOR_VERSION]: Make opt.allow_admin
471 available for use in gnupg 2.
472 (verify_chv3): Reimplemented countdown showing to use only
473 functions from this module. Flush the CVH status cache on a
475 (get_one_do): Hack to bypass the cache for cards versions > 1.0.
476 (store_fpr): Store the creation date for card version > 1.0.
478 * app-openpgp.c (app_openpgp_storekey): Call flush_cache.
479 (get_cached_data): Move local data initialization to ..
480 (app_select_openpgp): .. here. Read some flags for later use.
481 (do_getattr): New read-only attribute EXTCAP.
483 * apdu.c (open_pcsc_reader): Do not print empty reader string.
485 * ccid-driver.c (do_close_reader): Factored some code out from ...
486 (ccid_close_reader): ..here.
487 (ccid_shutdown_reader): New.
489 * apdu.c (apdu_shutdown_reader): New.
490 (shutdown_ccid_reader): New.
492 * apdu.c (open_ccid_reader): New arg PORTSTR. Pass it to
494 (apdu_open_reader): Pass portstr to open_ccid_reader.
495 (apdu_open_reader): No fallback if a full CCID reader id has been
498 * ccid-driver.c (ccid_get_reader_list): New.
499 (ccid_open_reader): Changed API to take a string for the reader.
500 Removed al the cruft for the libusb development vesion which seems
501 not to be maintained anymore and there are no packages anyway.
502 The stable library works just fine.
503 (struct ccid_reader_id_s): Deleted and replaced everywhere by a
505 (usb_get_string_simple): Removed.
506 (bulk_in): Do valgrind hack here and not just everywhere.
508 * ccid-driver.c (read_device_info): Removed.
509 (make_reader_id, scan_or_find_devices): New.
510 (ccid_open_reader): Simplified by make use of the new functions.
511 (ccid_set_debug_level): New. Changed the macros to make use of
512 it. It has turned out that it is often useful to enable debugging
513 at runtime so I added this option.
515 From gnupg 1.3 - David Shaw <dshaw@jabberwocky.com>
517 * app-openpgp.c (verify_chv3): Show a countdown of how many wrong
518 admin PINs can be entered before the card is locked.
520 * app-openpgp.c (get_cached_data): Avoid mallocing zero since it
521 breaks us when using --enable-m-guard.
523 * ccid-driver.c (usb_get_string_simple): Replacement function to
524 work with older libusb.
526 * ccid-driver.c (read_device_info): Fix segfault when usb device
528 (ccid_open_reader): Allow working with an even older version of
529 libusb (usb_busses global instead of usb_get_busses()).
531 2004-09-11 Werner Koch <wk@g10code.com>
533 * app-openpgp.c (app_select_openpgp): Its app_munge_serialno and
534 not app_number_serialno.
536 2004-08-20 Werner Koch <wk@g10code.de>
538 * app.c (select_application): Fixed serial number extraction and
539 added the BMI card workaround.
540 (app_munge_serialno): New.
541 * app-openpgp.c (app_select_openpgp): Try munging serialno.
543 2004-08-05 Werner Koch <wk@g10code.de>
545 * scdaemon.c (main): New option --disable-application.
546 * app.c (is_app_allowed): New.
547 (select_application): Use it to check for disabled applications.
549 * ccid-driver.h (CCID_DRIVER_ERR_ABORTED): New.
550 * ccid-driver.c (ccid_open_reader): Support the stable 0.1 version
552 (ccid_get_atr): Handle short messages.
554 * apdu.c (my_rapdu_get_status): Implemented.
556 2004-07-27 Moritz Schulte <moritz@g10code.com>
558 * apdu.c: Include <signal.h>.
560 * Makefile.am: Use @DL_LIBS@ instead of -ldl.
562 2004-07-22 Werner Koch <wk@g10code.de>
564 * Makefile.am: Make OpenSC lib link after libgcrypt. Do not link
566 * apdu.c: Don't use Pth if we use OpenSC.
567 * sc-investigate.c, scdaemon.c: Disable use of pth if OpenSC is used.
569 * scdaemon.c (main): Bumbed thread stack size up to 512k.
571 2004-07-16 Werner Koch <wk@gnupg.org>
573 * apdu.c (reader_table_s): Add function pointers for the backends.
574 (apdu_close_reader, apdu_get_status, apdu_activate)
575 (send_apdu): Make use of them.
576 (new_reader_slot): Intialize them to NULL.
577 (dump_ccid_reader_status, ct_dump_reader_status): New.
578 (dump_pcsc_reader_status): New.
579 (open_ct_reader, open_pcsc_reader, open_ccid_reader)
580 (open_osc_reader, open_rapdu_reader): Intialize function pointers.
581 (ct_activate_card, ct_send_apdu, pcsc_send_apdu, osc_send_apdu)
582 (error_string): Removed. Replaced by apdu_strerror.
583 (get_ccid_error_string): Removed.
584 (ct_activate_card): Remove the unused loop.
585 (reset_ct_reader): Implemented.
586 (ct_send_apdu): Activate the card if not yet done.
587 (pcsc_send_apdu): Ditto.
589 2004-07-15 Werner Koch <wk@gnupg.org>
591 * ccid-driver.h: Add error codes.
592 * ccid-driver.c: Implement more or less proper error codes all
595 * apdu.c (apdu_send_direct): New.
596 (get_ccid_error_string): Add some error code mappings.
597 (send_apdu): Pass error codes along for drivers already supporting
599 (host_sw_string): New.
600 (get_ccid_error_string): Use above.
601 (send_apdu_ccid): Reset the reader if it has not yet been done.
602 (open_ccid_reader): Don't care if the ATR can't be read.
603 (apdu_activate_card): New.
604 (apdu_strerror): New.
605 (dump_reader_status): Only enable it with opt.VERBOSE.
606 * iso7816.c (map_sw): Add mappings for the new error codes.
608 2004-07-02 Werner Koch <wk@gnupg.org>
610 * apdu.c (open_ct_reader, open_pcsc_reader, open_ccid_reader)
611 (reset_ccid_reader, open_osc_reader): Call dump_reader_status only
614 2004-07-01 Werner Koch <wk@gnupg.org>
616 * sc-investigate.c: Initialize Pth which is now required.
617 (interactive_shell): New command "readpk".
619 * app-openpgp.c (do_getattr): Fix for sending CA-FPR.
621 2004-06-30 Werner Koch <wk@gnupg.org>
623 * app-openpgp.c (app_openpgp_readkey): Fixed check for valid
626 2004-06-18 Werner Koch <wk@g10code.com>
628 * sc-investigate.c (my_read_line): Renamed from read_line.
630 2004-06-16 Werner Koch <wk@gnupg.org>
632 * apdu.c (osc_get_status): Fixed type in function name. Noted by
633 Axel Thimm. Yes, I didn't tested it with OpenSC :-(.
635 2004-04-28 Werner Koch <wk@gnupg.org>
637 * app-openpgp.c (do_setattr): Sync FORCE_CHV1.
639 2004-04-27 Werner Koch <wk@gnupg.org>
641 * app-common.h: Do not include ksba.h for gnupg 1.
643 2004-04-26 Werner Koch <wk@gnupg.org>
645 * app-common.h: New members FNC.DEINIT and APP_LOCAL.
646 * app.c (release_application): Call new deconstructor.
647 * app-openpgp.c (do_deinit): New.
648 (get_cached_data, flush_cache_item, flush_cache_after_error)
650 (get_one_do): Replaced arg SLOT by APP. Make used of cached data.
651 (verify_chv2, verify_chv3): Flush some cache item after error.
652 (do_change_pin): Ditto.
654 (do_setattr): Flush cache item.
655 (do_genkey): Flush the entire cache.
656 (compare_fingerprint): Use cached data.
658 * scdaemon.c (main): Do the last change the usual way. This is so
659 that we can easily test for versioned config files above.
661 2004-04-26 Marcus Brinkmann <marcus@g10code.de>
663 * scdaemon.c (main): For now, always print default filename for
664 --gpgconf-list, and never /dev/null.
666 2004-04-21 Werner Koch <wk@gnupg.org>
668 * command.c (scd_update_reader_status_file): Send a signal back to
670 (option_handler): Parse the new event-signal option.
672 * scdaemon.c (handle_signal): Do not use SIGUSR{1,2} anymore for
673 changing the verbosity.
675 2004-04-20 Werner Koch <wk@gnupg.org>
677 * command.c (scd_update_reader_status_file): Write status files.
679 * app-help.c (app_help_read_length_of_cert): Fixed calculation of
682 * pcsc-wrapper.c: New.
683 * Makefile.am (pkglib_PROGRAMS): Install it here.
684 * apdu.c (writen, readn): New.
685 (open_pcsc_reader, pcsc_send_apdu, close_pcsc_reader): Use the
686 pcsc-wrapper if we are using Pth.
687 (apdu_send_le): Reinitialize RESULTLEN. Handle SW_EOF_REACHED
690 2004-04-19 Werner Koch <wk@gnupg.org>
692 * ccid-driver.c (parse_ccid_descriptor): Store some of the reader
693 features away. New arg HANDLE
694 (read_device_info): New arg HANDLE. Changed caller.
695 (bulk_in): Handle time extension requests.
696 (ccid_get_atr): Setup parameters and the IFSD.
697 (compute_edc): New. Factored out code.
698 (ccid_transceive): Use default NADs when required.
700 2004-04-14 Werner Koch <wk@gnupg.org>
702 * scdaemon.h (server_control_s): Add member READER_SLOT.
703 * scdaemon.c (scd_init_default_ctrl): Initialize READER_SLOT to -1.
704 * command.c (open_card): Reuse an open slot.
705 (reset_notify): Just reset the slot if supported by the reader.
706 (do_reset): Factored code from above out.
707 (scd_command_handler): Use it for cleanup.
709 * apdu.h: New pseudo stati SW_HOST_NOT_SUPPORTED,
710 SW_HOST_LOCKING_FAILED and SW_HOST_BUSY.
711 * iso7816.c (map_sw): Map it.
713 * ccid-driver.c (ccid_slot_status): Add arg STATUSBITS.
714 * apdu.c (apdu_get_status): New.
715 (ct_get_status, pcsc_get_status, ocsc_get_status): New stubs.
716 (get_status_ccid): New.
718 (reset_ct_reader, reset_pcsc_reader, reset_osc_reader): New stubs.
719 (reset_ccid_reader): New.
720 (apdu_enum_reader): New.
722 * apdu.c (lock_slot, trylock_slot, unlock_slot): New helpers.
723 (new_reader_slot) [USE_GNU_PTH]: Init mutex.
724 (apdu_reset, apdu_get_status, apdu_send_le): Run functions
727 * command.c (scd_update_reader_status_file): New.
728 * scdaemon.c (handle_tick): Call it.
730 2004-04-13 Werner Koch <wk@gnupg.org>
732 * scdaemon.c: Convert to a Pth application.
733 (handle_signal, ticker_thread, handle_tick): New.
734 (main): Fire up the ticker thread in server mode.
736 2004-03-23 Werner Koch <wk@gnupg.org>
738 * scdaemon.c (main) <gpgconf_list>: Fixed output for pcsc_driver.
740 2004-03-17 Werner Koch <wk@gnupg.org>
742 * tlv.c (parse_ber_header): Do not check for tag overflow - it
743 does not make sense. Simplified the check for length overflow.
745 * scdaemon.c (main) <gpgconf>: Fixed default value quoting.
747 2004-03-16 Werner Koch <wk@gnupg.org>
749 * app-dinsig.c: Implemented. Based on app-nks.c and card-dinsig.c
750 * app-nks.c (get_length_of_cert): Removed.
752 (app_help_read_length_of_cert): New. Code taken from above. New
753 optional arg R_CERTOFF.
755 * card-dinsig.c: Removed.
756 * card.c (card_get_serial_and_stamp): Do not bind to the old and
757 never finsiged card-dinsig.c.
759 * iso7816.c (iso7816_read_binary): Allow for an NMAX > 254.
761 2004-03-11 Werner Koch <wk@gnupg.org>
763 * scdaemon.h (out_of_core): Removed. Replaced callers by standard
766 * apdu.c, iso7816.c, ccid-driver.c [GNUPG_SCD_MAIN_HEADER]: Allow
767 to include a header defined by the compiler. This helps us to
768 reuse the source in other software.
770 2004-03-10 Werner Koch <wk@gnupg.org>
772 * iso7816.c (iso7816_read_record): New arg SHORT_EF. Changed all
775 2004-02-18 Werner Koch <wk@gnupg.org>
777 * sc-investigate.c (main): Setup the used character set.
778 * scdaemon.c (main): Ditto.
780 * scdaemon.c (set_debug): New. Add option --debug-level.
781 (main): Add option --gpgconf-list.
783 2004-02-12 Werner Koch <wk@gnupg.org>
785 * Makefile.am: Include cmacros.am for common flags.
787 2004-01-29 Werner Koch <wk@gnupg.org>
789 * command.c (reset_notify): Release the application context and
792 2004-01-28 Werner Koch <wk@gnupg.org>
794 * iso7816.c (iso7816_manage_security_env): New.
795 (iso7816_decipher): Add PADIND argument.
797 2004-01-27 Werner Koch <wk@gnupg.org>
799 * command.c (cmd_readcert, cmd_readkey): Work on a copy of LINE.
801 * app-common.h (app_ctx_s): Added readcert field.
802 * app.c (app_readcert): New.
803 * tlv.c (parse_ber_header): Added; taken from libksba.
805 2004-01-26 Werner Koch <wk@gnupg.org>
807 * card.c (map_sc_err): Use SCD as the error source.
809 * command.c (open_card): ADD arg NAME to allow requesting a
810 specific application. Changed all callers.
811 (cmd_serialno): Allow optional argument to select the desired
816 * scdaemon.h (opt): Add READER_PORT.
817 * scdaemon.c (main): Set it here.
818 * app.c (app_set_default_reader_port): Removed.
819 (select_application): Add NAME arg and figure out a
820 default serial number from the GDO. Add SLOT arg and remove all
822 (release_application): New.
823 (app_write_learn_status): Output an APPTYPE status line.
824 * command.c (open_card): Adapt for select_application change.
825 * app-openpgp.c (app_select_openpgp): Removed SN and SNLEN args
826 and set it directly. Changed all callers.
828 2004-01-25 Werner Koch <wk@gnupg.org>
830 * iso7816.c (iso7816_select_application): P1 kludge for OpenPGP
832 * app-openpgp.c (find_tlv): Factor out this function to ..
833 * tlv.c, tlv.h: .. new.
835 * scdaemon.h: Introduced app_t and ctrl_t as the new types for APP
838 2004-01-21 Werner Koch <wk@gnupg.org>
840 * apdu.c (apdu_send_le): Treat SW_EOF_REACHED as a warning.
842 2004-01-20 Werner Koch <wk@gnupg.org>
844 * iso7816.c (iso7816_read_binary): New.
845 (iso7816_select_file): New.
846 (iso7816_list_directory): New.
848 * sc-investigate.c: Add option -i.
849 (select_app, read_line, interactive_shell): New.
851 2004-01-16 Werner Koch <wk@gnupg.org>
853 * apdu.h: Add SW_FILE_NOT_FOUND.
854 * iso7816.c (map_sw): Map it to GPG_ERR_ENOENT.
855 * iso7816.c (iso7816_select_file): New.
857 * app-dinsig.c: New file w/o any real code yet.
858 * Makefile.am (scdaemon_SOURCES,sc_investigate_SOURCES): Add file.
860 * sc-investigate.c: Add option --disable-ccid.
862 2003-12-19 Werner Koch <wk@gnupg.org>
864 * apdu.c (apdu_send_le): Send a get_response with the indicated
865 length and not the 64 bytes we used for testing.
867 * app-openpgp.c (verify_chv2, verify_chv3, do_sign): Check the
868 minimum length of the passphrase, so that we don't need to
869 decrement the retry counter.
871 2003-12-17 Werner Koch <wk@gnupg.org>
873 * card-p15.c (p15_enum_keypairs): Replaced KRC by RC.
874 * card-dinsig.c (dinsig_enum_keypairs): Ditto.
876 2003-12-16 Werner Koch <wk@gnupg.org>
878 * scdaemon.c (main): Set the prefixes for assuan logging.
880 2003-11-17 Werner Koch <wk@gnupg.org>
882 * scdaemon.c, scdaemon.h: New options --allow-admin and --deny-admin.
883 * app-openpgp.c (verify_chv3): Check it here.
885 2003-11-12 Werner Koch <wk@gnupg.org>
887 Adjusted for API changes in Libksba.
889 2003-10-30 Werner Koch <wk@gnupg.org>
891 * apdu.c (close_ct_reader, close_pcsc_reader): Implemented.
892 (get_ccid_error_string): New. Not very useful messages, though.
894 2003-10-25 Werner Koch <wk@gnupg.org>
896 * ccid-driver.c (ccid_open_reader): Return an error if no USB
899 * command.c (cmd_genkey, cmd_passwd): Fixed faulty use of
902 * apdu.c (apdu_open_reader): Hacks for PC/SC under Windows.
904 2003-10-20 Werner Koch <wk@gnupg.org>
906 * command.c (cmd_checkpin): New.
907 (register_commands): Add command CHECKPIN.
908 * app.c (app_check_pin): New.
909 * app-openpgp.c (check_against_given_fingerprint): New. Factored
910 out that code elsewhere.
913 2003-10-10 Werner Koch <wk@gnupg.org>
915 * ccid-driver.c (ccid_close_reader): New.
917 * apdu.c (close_ccid_reader, close_ct_reader, close_csc_reader)
918 (close_osc_reader, apdu_close_reader): New. Not all are properly
921 2003-10-09 Werner Koch <wk@gnupg.org>
923 * ccid-driver.c (ccid_transceive): Add T=1 chaining for sending.
925 2003-10-08 Werner Koch <wk@gnupg.org>
927 * app-openpgp.c (do_getattr): Support SERIALNO and AID.
929 2003-10-01 Werner Koch <wk@gnupg.org>
931 * ccid-driver.c: Detect GnuPG 1.3 and include appropriate files.
933 * app-openpgp.c: Ditto.
935 (generate_keypair): Renamed to ..
936 (do_generate_keypair): .. this.
937 * app-common.h [GNUPG_MAJOR_VERSION]: New.
938 * iso7816.h [GNUPG_MAJOR_VERSION]: Include cardglue.h
940 2003-09-30 Werner Koch <wk@gnupg.org>
942 * command.c (cmd_getattr): New command GETATTR.
943 * app.c (app_setattr): New.
945 (do_learn_status): Reimplemented in terms of do_getattr.
947 * app-openpgp.c (do_change_pin): Make sure CVH1 and CHV2 are
949 (verify_chv2, verify_chv3): New. Factored out common code.
950 (do_setattr, do_sign, do_auth, do_decipher): Change the names of
951 the prompts to match that we have only 2 different PINs.
952 (app_select_openpgp): Check whether the card enforced CHV1.
953 (convert_sig_counter_value): New. Factor out code from
956 2003-09-28 Werner Koch <wk@gnupg.org>
958 * app-openpgp.c (dump_all_do): Use gpg_err_code and not gpg_error.
960 2003-09-19 Werner Koch <wk@gnupg.org>
962 * ccid-driver.c (parse_ccid_descriptor): New.
963 (read_device_info): New.
964 (ccid_open_reader): Check that the device has all required features.
966 2003-09-06 Werner Koch <wk@gnupg.org>
968 * scdaemon.c (main): --pcsc-driver again defaults to pcsclite.
969 David Corcoran was so kind to remove the GPL incompatible
970 advertisng clause from pcsclite.
971 * apdu.c (apdu_open_reader): Actually make pcsc-driver option work.
973 2003-09-05 Werner Koch <wk@gnupg.org>
975 * ccid-driver.c: More work, data can now actually be retrieved.
976 * ccid-driver.c, ccid-driver.h: Alternativley allow use under BSD
979 2003-09-02 Werner Koch <wk@gnupg.org>
981 * scdaemon.c, scdaemon.h: New option --pcsc-ccid.
982 * ccid-driver.c, ccid-driver.h: New but far from being useful.
983 * Makefile.am: Add above.
984 * apdu.c: Add support for that ccid driver.
986 2003-08-26 Timo Schulz <twoaday@freakmail.de>
988 * apdu.c (new_reader_slot): Only set 'is_osc' when OpenSC
991 2003-08-25 Werner Koch <wk@gnupg.org>
993 * command.c (cmd_setattr): Use a copy of LINE.
994 (cmd_genkey): Use a copy of KEYNO.
995 (cmd_passwd): Use a copy of CHVNOSTR.
996 (cmd_pksign, cmd_pkauth, cmd_pkdecrypt): s/strdup/xtrystrdup/.
998 2003-08-19 Werner Koch <wk@gnupg.org>
1000 * scdaemon.c, scdaemon.h: New option --pcsc-driver.
1001 * apdu.c (apdu_open_reader): Use that option here instead of a
1004 2003-08-18 Werner Koch <wk@gnupg.org>
1006 * Makefile.am: Add OPENSC_LIBS to all programs.
1008 * scdaemon.c, scdaemon.h: New option --disable-opensc.
1009 * card.c (card_open): Implement it.
1010 * apdu.c (open_osc_reader, osc_send_apdu): New.
1011 (apdu_open_reader) [HAVE_OPENSC]: Use the opensc driver if not
1013 (error_string) [HAVE_OPENSC]: Use sc_strerror.
1014 (send_apdu) [HAVE_OPENSC]: Call osc_apdu_send.
1016 * card-p15.c (p15_enum_keypairs, p15_prepare_key): Adjusted for
1019 2003-08-14 Timo Schulz <twoaday@freakmail.de>
1021 * apdu.c (ct_activate_card): Change the code a little to avoid
1022 problems with other readers.
1023 * Always use 'dynload.h' instead of 'dlfcn.h'.
1025 2003-08-05 Werner Koch <wk@gnupg.org>
1027 * app-openpgp.c (dump_all_do): Don't analyze constructed DOs after
1030 2003-08-04 Werner Koch <wk@gnupg.org>
1032 * app.c (app_set_default_reader_port): New.
1033 (select_application): Use it here.
1034 * scdaemon.c (main): and here.
1035 * sc-copykeys.c: --reader-port does now take a string.
1036 * sc-investigate.c, scdaemon.c: Ditto.
1037 * apdu.c (apdu_open_reader): Ditto. Load pcsclite if no ctapi
1038 driver is configured. Always include code for ctapi.
1039 (new_reader_slot): Don't test for already used ports and remove
1041 (open_pcsc_reader, pcsc_send_apdu, pcsc_error_string): New.
1042 (apdu_send_le): Changed RC to long to cope with PC/SC.
1044 * scdaemon.c, scdaemon.h: New option --ctapi-driver.
1045 * sc-investigate.c, sc-copykeys.c: Ditto.
1047 2003-07-31 Werner Koch <wk@gnupg.org>
1049 * Makefile.am (scdaemon_LDADD): Added INTLLIBS.
1051 2003-07-28 Werner Koch <wk@gnupg.org>
1053 * app-openpgp.c (do_setattr): Change implementation. Allow all
1056 2003-07-27 Werner Koch <wk@gnupg.org>
1058 Adjusted for gcry_mpi_print and gcry_mpi_scan API change.
1060 2003-07-24 Werner Koch <wk@gnupg.org>
1062 * app-openpgp.c (do_learn_status): Print more status information.
1063 (app_select_openpgp): Store the card version.
1064 (store_fpr): Add argument card_version and fix DOs for old cards.
1065 (app_openpgp_storekey): Likewise.
1067 2003-07-23 Werner Koch <wk@gnupg.org>
1069 * command.c (cmd_pkauth): New.
1070 (cmd_setdata): Check whether data was given at all to avoid
1071 passing 0 to malloc.
1073 * app.c (app_auth): New.
1074 * app-openpgp.c (do_auth): New.
1076 2003-07-22 Werner Koch <wk@gnupg.org>
1078 * command.c (cmd_passwd): New.
1079 * app.c (app_change_pin): New.
1080 * app-openpgp.c (do_change_pin): New.
1081 * iso7816.c (iso7816_reset_retry_counter): Implemented.
1083 * sc-investigate.c (main): New option --gen-random.
1084 * iso7816.c (iso7816_get_challenge): Don't create APDUs with a
1085 length larger than 255.
1087 2003-07-17 Werner Koch <wk@gnupg.org>
1089 * command.c (cmd_random): New command RANDOM.
1091 * iso7816.c (map_sw): New. Use it in this file to return
1092 meaningful error messages. Changed all public fucntions to return
1094 (iso7816_change_reference_data): New.
1095 * apdu.c (apdu_open_reader): Use faked status words for soem
1098 2003-07-16 Werner Koch <wk@gnupg.org>
1100 * apdu.c (apdu_send_simple): Use apdu_send_le so that we can
1101 specify not to send Le as it should be.
1103 2003-07-15 Werner Koch <wk@gnupg.org>
1105 * Makefile.am: Add sc-copykeys program.
1106 * sc-copykeys.c: New.
1107 * app-openpgp.c (app_openpgp_storekey): New.
1108 (app_openpgp_cardinfo): New.
1110 (store_fpr): And use it here to get the actual length in bit.
1112 2003-07-03 Werner Koch <wk@gnupg.org>
1114 * app-openpgp.c (do_setattr): Add setting of the URL.
1115 (app_select_openpgp): Dump card data only in very verbose mode.
1118 2003-07-02 Werner Koch <wk@gnupg.org>
1120 * app-openpgp.c (get_sig_counter): New.
1121 (do_sign): Print the signature counter and enable the PIN callback.
1122 (do_genkey): Implement the PIN callback.
1124 2003-07-01 Werner Koch <wk@gnupg.org>
1126 * app-openpgp.c (store_fpr): Fixed fingerprint calculation.
1128 2003-06-26 Werner Koch <wk@gnupg.org>
1130 * app-openpgp.c (find_tlv): Fixed length header parsing.
1132 * app.c (app_genkey): New.
1133 * command.c (cmd_genkey): New.
1135 2003-06-25 Werner Koch <wk@gnupg.org>
1137 * command.c (percent_plus_unescape): New.
1140 2003-06-24 Werner Koch <wk@gnupg.org>
1142 * command.c (send_status_info): New.
1144 * app-openpgp.c (app_select_openpgp): Replace SLOT arg by APP arg
1145 and setup the function pointers in APP on success. Changed callers.
1147 * app-common.h: New.
1148 * scdaemon.h (APP): New type to handle applications.
1149 (server_control_s): Add an APP context field.
1151 * command.c (cmd_serialno): Handle applications.
1152 (cmd_pksign): Ditto.
1153 (cmd_pkdecrypt): Ditto.
1154 (reset_notify): Ditto.
1155 (cmd_learn): For now return error for application contexts.
1156 (cmd_readcert): Ditto.
1157 (cmd_readkey): Ditto.
1159 2003-06-04 Werner Koch <wk@gnupg.org>
1161 * card.c (map_sc_err): Renamed gpg_make_err to gpg_err_make.
1163 Renamed error codes from INVALID to INV and removed _ERROR suffixes.
1165 2003-06-03 Werner Koch <wk@gnupg.org>
1167 Changed all error codes in all files to the new libgpg-error scheme.
1169 * scdaemon.h: Include gpg-error.h and errno.h
1170 * card.c (map_sc_err): Use unknown for the error source.
1171 * Makefile.am: Link with libgpg-error
1173 2003-05-14 Werner Koch <wk@gnupg.org>
1175 * atr.c, atr.h: New.
1176 * sc-investigate.c: Dump the ATR in a human readable format.
1178 2003-05-08 Werner Koch <wk@gnupg.org>
1180 * scdaemon.h (DBG_CARD_IO_VALUE): New.
1182 * sc-investigate.c: New.
1183 * scdaemon.c (main): Removed --print-atr option.
1185 * iso7816.c, iso7816.h, app-openpgp.c: New.
1187 2003-04-29 Werner Koch <wk@gnupg.org>
1189 * scdaemon.c: New options --print-atr and --reader-port
1190 * apdu.c, apdu.h: New
1192 * card.c, card-p15.c, card-dinsig.c: Allow build without OpenSC.
1194 * Makefile.am (LDFLAGS): Removed.
1196 * command.c (register_commands): Adjusted for new Assuan semantics.
1198 2002-08-21 Werner Koch <wk@gnupg.org>
1200 * scdaemon.c (main): New option --daemon so that the program is
1201 not accidently started in the background.
1203 2002-08-16 Werner Koch <wk@gnupg.org>
1205 * scdaemon.c: Include i18n.h.
1207 * card-common.h (struct p15_private_s): Forward declaration. Add
1209 * card.c (card_close): Make sure private data is released.
1210 (card_enum_certs): New.
1211 * card-p15.c (p15_release_private_data): New.
1212 (init_private_data): New to work around an OpenSC weirdness.
1213 (p15_enum_keypairs): Do an OpenSC get_objects only once.
1214 (p15_enum_certs): New.
1215 (card_p15_bind): Bind new function.
1216 * command.c (cmd_learn): Return information about the certificates.
1218 2002-08-09 Werner Koch <wk@gnupg.org>
1220 * card.c (card_get_serial_and_stamp): Use the tokeinfo serial
1221 number as a fallback. Add a special prefix for serial numbers.
1223 2002-07-30 Werner Koch <wk@gnupg.org>
1225 Changes to cope with OpenSC 0.7.0:
1227 * card.c: Removed the check for the packed opensc version.
1228 Changed include file names of opensc.
1229 (map_sc_err): Adjusted error codes for new opensc version.
1230 * card-p15.c: Changed include filename of opensc.
1231 * card-dinsig.c: Ditto.
1233 * card-p15.c (p15_decipher): Add flags argument to OpenSC call.
1235 2002-07-24 Werner Koch <wk@gnupg.org>
1237 * card.c (find_simple_tlv, find_iccsn): New.
1238 (card_get_serial_and_stamp): Improved serial number parser.
1240 2002-06-27 Werner Koch <wk@gnupg.org>
1242 * scdaemon.c (main): Use GNUPG_DEFAULT_HOMEDIR constant.
1244 2002-06-15 Werner Koch <wk@gnupg.org>
1246 * card-dinsig.c: Documented some stuff from the DIN norm.
1248 2002-04-15 Werner Koch <wk@gnupg.org>
1250 * command.c (cmd_pksign, cmd_pkdecrypt): Use a copy of the key ID.
1252 2002-04-12 Werner Koch <wk@gnupg.org>
1254 * scdaemon.c: New option --debug-sc N.
1255 * card.c (card_open): set it here.
1257 * card-p15.c (p15_prepare_key): Factored out common code from ...
1258 (p15_sign, p15_decipher): here and made the decryption work the
1261 2002-04-10 Werner Koch <wk@gnupg.org>
1263 * card.c (card_open): Return immediately when no reader is available.
1265 2002-03-27 Werner Koch <wk@gnupg.org>
1267 * card.c (card_open, card_close): Adjusted for changes in OpenSC.
1269 2002-03-10 Werner Koch <wk@gnupg.org>
1271 * card-p15.c, card-dinsig.c, card-common.h: New.
1272 * card.c: Factored most code out to the new modules, so that we
1273 can better support different types of card applications.
1275 2002-01-26 Werner Koch <wk@gnupg.org>
1277 * scdaemon.c scdaemon.h, command.c: New. Based on the code from
1281 Copyright 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
1283 This file is free software; as a special exception the author gives
1284 unlimited permission to copy and/or distribute it, with or without
1285 modifications, as long as this notice is preserved.
1287 This file is distributed in the hope that it will be useful, but
1288 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
1289 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.