okir
12386d65c9
- When encoding a path, either encode _neither_ index/count, or both.
...
- Added new functions sc_der_copy, sc_der_clear to handle DER blobs
- Somewhat improved debug output
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1609 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-19 20:22:52 +00:00
aet
0efe4659ed
- snapshot build fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1608 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-17 18:54:10 +00:00
aet
c6f902911f
- Test commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1605 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-16 16:24:16 +00:00
sth
3b746f0b5e
Add room for SW1-SW2 in case of maximum reply size (256 bytes)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1604 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-14 10:14:54 +00:00
okir
c85357baf9
- remain backward compatible - apdu_masq patch shouldn't break existing
...
config files that use apdu_fix
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1598 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-03 10:20:02 +00:00
okir
8e1443071c
- merged apdu_masq patch from Chaskiel Grundman
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1597 c6295689-39f2-0310-b995-f0e70906c6a9
2003-11-03 10:16:25 +00:00
okir
b3b3b02cf0
- Updated, now registers key objects as well (untested)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1590 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 16:01:35 +00:00
okir
36f170c2e7
- OpenPGP card now supports a fake file hierarchy (basically all objects
...
and constructed objects reprented as DFs and EFs)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1589 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 16:01:00 +00:00
aet
bb97c0d094
- Add new files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1588 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 13:59:27 +00:00
okir
13a11083e1
- initialize tries_left field to -1 when parsing AODF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1587 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 12:31:54 +00:00
okir
16ec507738
- Rewrote sc_pkcs15_bind_synthetic a little
...
- Started work on pkcs15 emulation for OpenPGP card
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1584 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 12:27:14 +00:00
okir
d91ecdc245
- Moved sc_pkcs15_bind_synthetic to a separate file
...
- Moved sc_pkcs15_print_card to ../tests/print.c
- added dll_handle and preferred_language fields to p15card
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1583 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-31 12:26:24 +00:00
okir
0f32616c20
- added initial support for openpgp card driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1580 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:04:22 +00:00
okir
99e999d64c
- added sc_get_data/sc_put_data
...
- added openpgp card driver
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1579 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:04:02 +00:00
okir
c072c5e0fe
- added sc_get_data/sc_put_data
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1578 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:03:41 +00:00
okir
ef4f132e61
- added SC_ERROR_DATA_OBJECT_NOT_FOUND
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1577 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 17:03:09 +00:00
okir
323240fa44
- small fix in mcrd_finish
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1576 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 15:43:19 +00:00
okir
d3d7664c11
- Changed the internal object search machinery quite a bit so it
...
can search for more than one type of object at the same time.
- When enumerating a DF as part of the search, no longer ignore all
errors.
- When parsing a DF, SC_ERROR_ASN1_END_OF_CONTENTS really means
we've just reached the end of data in the file, so return 0
instead
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1573 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 11:43:21 +00:00
okir
6e9412cd98
- When encountering the end of a SEQUENCE, while there should be
...
more items, we used to return SC_ERROR_ASN1_END_OF_CONTENTS.
That error code is reserved for the real end of content markers
though. Changed the return code to SC_ERROR_ASN1_OBJECT_NOT_FOUND
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1572 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-30 11:38:05 +00:00
okir
c29e7d8510
- don't call sc_module_get_address when we dont have a dll handle
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1569 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-28 12:50:43 +00:00
okir
5a27b4e81e
- Changed ui API to offer more knobs and dials
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1567 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-24 13:18:17 +00:00
aet
c693c4799c
- Merging between Makefile.am<>Makefile.mak
...
- Add ui.h to main distribution tarball, snapshots have
been broken for a few days
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1566 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-23 09:12:48 +00:00
aet
e62eea5351
- Minor cleanups and a warning fix
...
- sc_release_context: free ctx->preferred_language if set
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1565 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 18:16:21 +00:00
aet
28fcfde1fd
- Replace WIN32 with HAVE_UNISTD_H instead
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1564 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 08:51:41 +00:00
sth
23d1ca554e
Let the new UI code compile under Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1563 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 08:43:27 +00:00
okir
931a1dd28a
- added error/debug message support to ui.c
...
- sc_error/sc_debug now use the new ui code
- added language support
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1559 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-22 06:49:59 +00:00
okir
5791395e74
- Added new user interface code (not used yet)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1553 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:12:32 +00:00
okir
a644d83d68
- added message for SC_ERROR_CANNOT_LOAD_MODULE
...
- changed the wording of some SC_ERROR_KEYPAD_* messages
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1551 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:11:50 +00:00
okir
72788e32ec
- added SC_ERROR_CANNOT_LOAD_MODULE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1550 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:11:19 +00:00
okir
9e70efba8a
- sc_pkcs15_find_pin_by_reference now searches by reference and path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1548 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 11:02:48 +00:00
okir
70597d4b14
- fixed change/unblock pin with implicit test
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1547 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 08:59:11 +00:00
okir
e7f0dbb4a8
- support UPDATE ACLs when creating a DF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1545 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-21 08:31:45 +00:00
okir
c20fcf5e7b
- bump max number of apps per card to 8
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1544 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-19 18:05:03 +00:00
okir
aae679b28a
- tcos_card_ctl shoudlnt complain about unknown cardctls
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1543 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-19 18:02:37 +00:00
okir
927ae344cc
- fix cflex key generation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1536 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-18 08:39:40 +00:00
aet
603ccec619
- Fixed nightly snapshot generation
...
- Link keycache.h to src/include/opensc
- Move mutex function declarations to opensc.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1525 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 21:56:56 +00:00
okir
734bceb682
- Error logging changes: replace ctx->log_errors with ctx->suppress_errors,
...
so that we can nest error suppression using suppress_errors++/suppress_errors--
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1518 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 09:56:50 +00:00
okir
c323d0a082
- the previous patch was bad; fixed it
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1516 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-14 09:02:51 +00:00
okir
3d283fd925
- fixed a bug in the previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1507 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:52:03 +00:00
okir
45e820cdac
- added sc_pkcs15_find_prkey_by_reference
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1506 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:35:27 +00:00
okir
ecc469d570
- added some more errors
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1505 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:34:52 +00:00
okir
efb19cafe6
- slightly enhanced debugging output
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1504 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:34:38 +00:00
okir
bf7e801fac
- new path functions: sc_append_file_id, sc_compare_path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1503 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-13 14:34:18 +00:00
okir
106351eb5c
- some commands used the wrong APDU case
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1498 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-11 12:41:28 +00:00
aet
a61c95e204
Minor cleanup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1494 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-08 06:46:48 +00:00
sth
e87ba3c387
Fix: add room for a 'last-flag' object (Ivo Pieck)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1490 c6295689-39f2-0310-b995-f0e70906c6a9
2003-10-06 14:22:03 +00:00
sth
2fa013edf0
Fix: don't link by default with openssl
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1480 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-30 09:19:06 +00:00
aet
fe9eac7ad2
Rename HAVE_PCSCLITE to HAVE_PCSC, which is more correct.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1467 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-26 08:15:15 +00:00
aet
345914e9e2
Rename HAVE_PCSCLITE to HAVE_PCSC, which is more correct.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1466 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-26 08:15:15 +00:00
aet
0077a0876d
Fix various C compiler warnings and C++ errors / name conflicts
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1463 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-25 09:33:16 +00:00
sth
cdc2f67c60
Bugfix: return SC_ERROR_OUT_OF_MEMORY if malloc() fails (Kevin Stefanik)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1445 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-16 06:36:41 +00:00
aet
c69ef430ee
C++ warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1438 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-10 22:20:26 +00:00
sth
68c885ebe1
Added version info to the Win32 binaries, and set the version number to 0.8.0.0 (4 numbers seems to be needed)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1437 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-10 14:08:29 +00:00
sth
e6f3f9bb08
Increase log buffer size, so that 255 hex bytes still can be logged
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1429 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-08 13:38:07 +00:00
sth
842b5cd2f5
Fix: let this card driver do the unblocking itself, don't send it to the iso7816 code (Victor Tarasov)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1419 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-05 20:16:52 +00:00
aet
5bd87ee0d0
Warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1418 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-05 07:22:10 +00:00
aet
e66bb1ef16
Remove gcc specific code from usbtoken/openct drivers, untested.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1417 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-04 16:41:49 +00:00
aet
03de5ba32f
error -> sc_error
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1414 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 21:31:14 +00:00
okir
3d7e8a964f
- Properly detect CarDOS lifecycle MANUFACTURING and report it as "OTHER"
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1413 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 18:55:53 +00:00
aet
de2d058617
Typo fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1412 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 18:21:42 +00:00
aet
597877eb49
Move #include <windows.h> to winconfig.h in
...
order to minimize win32 specific code sections.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1411 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 18:18:57 +00:00
aet
c0c3c339d7
SC -> OPENSC, old legacy from the libsc days
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1409 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 17:59:08 +00:00
aet
5616dba08e
- Stop using unflexible automake conditionals when
...
building PC/SC, OpenCT or USBToken support,
use ifdef's directly in source.
- Because of above, add HAVE_PCSCLITE for winconfig.h
- Remove unnecessary includes for log.h, opensc.h and
errors.h in libopensc sources, they're already taken
care by internal.h.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1406 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-03 09:28:55 +00:00
aet
bac2b601a9
Move scdl to it's own subdirectory, although it's merely
...
for internal purposes only.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1403 c6295689-39f2-0310-b995-f0e70906c6a9
2003-09-01 08:43:38 +00:00
aet
bd54ea7a62
- Move all dynamic loading related code to src/common/scdl.c,
...
probably needs some more work.
As a side bonus, we now have a working CT-API support for MacOS X.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1402 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 16:29:52 +00:00
aet
5835e752b5
Cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1401 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 16:26:59 +00:00
okir
dc42cd3fa7
- added sc_print_path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1400 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 12:55:30 +00:00
okir
8fcab2199b
- slightly improved debugging output
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1399 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 12:55:17 +00:00
okir
ef42ba2010
- path cache wasn't cleared on error in flex_select_file
...
- slightly better debugging output
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1398 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-29 12:54:45 +00:00
aet
d59a1034e9
- Cleanups to Makefile.am if / endif mess
...
- Don't bother checking OpenSSL engine
LDFLAGS if no engine detected
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1397 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-28 13:08:57 +00:00
okir
2fd5b30f1a
- added missing newline to error msg
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1396 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-28 12:51:33 +00:00
okir
70c3d91b23
- added missing intialization of apdu struct
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1395 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-28 12:50:51 +00:00
aet
763fc16704
Rename libopensc specific error/debug to sc_error/sc_debug
...
We should have done this ages ago.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1392 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-25 14:21:18 +00:00
okir
3c88da0d81
- Do not barf on empty SEQUENCEs if all elements inside are OPTIONAL
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1386 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-21 05:39:51 +00:00
sth
093adc8c89
Fix: don't DER-en/decode the data in a pkcs15 object
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1385 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-20 14:15:02 +00:00
aet
2b3db944e0
- Rename sysdep_timestamp_t to sc_timestamp_t
...
- Add missing function prototype for sc_current_time
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1384 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-18 14:54:37 +00:00
aet
8cf5945900
Add common versioning to all libraries
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1383 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-18 14:28:47 +00:00
aet
40b747a612
Minor cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1381 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-18 12:06:35 +00:00
sth
c3c68e86f0
Global Platform PIN Encoding: 1. Fix for pin changes: use the real length instead of the max length -- 2. Check for valid pin chars
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1356 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-14 07:13:44 +00:00
okir
9f065e840f
- suppress stupid debug messages for sc_lock/sc_unlock for debug level < 7
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1349 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-11 13:56:07 +00:00
sth
085ec59b3e
correct makefile so that the depending libopensc is updated when a new scconf.lib exist (Ivo Pieck)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1338 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-06 12:13:09 +00:00
aet
3e1dd82f4f
Remove some compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1332 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-05 17:28:29 +00:00
aj
1091548eda
seperator is written to an u8, so it should be a char or u8 anyway.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1324 c6295689-39f2-0310-b995-f0e70906c6a9
2003-08-01 07:03:16 +00:00
okir
7fc4ad2db0
- fixed error message
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1322 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-31 19:06:43 +00:00
sth
c23ff8f56e
Removed a call for a (not yet) existing driver, which I accidentally added along with another change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1321 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-31 08:27:35 +00:00
okir
53b5c2b389
- fixed VERIFY handling
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1317 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-30 11:07:25 +00:00
aet
a9f05d1100
Remove CFLAGS_OPENSC, cleanups to INCLUDES handling.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1316 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-30 09:50:18 +00:00
sth
0b1a65cd81
Added struct sc_card to process_fci(), just like it's done with the orhter card operations
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1311 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-28 13:19:49 +00:00
aet
a327d1994a
Minor cleanups
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1309 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-28 12:11:03 +00:00
aet
40f995994a
Add support for MacOS X with PC/SC framework using autoconfigure.
...
Tested using Panther (WWDC build) + fink. Should work without fink, too.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1307 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-28 10:02:23 +00:00
sth
abc1e8b000
Fix: allways set pag_flags = SC_ALGORITHM_RSA_HASH_NONE if sc_pkcs15_compute_signature() is called with this flag
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1305 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-27 16:50:08 +00:00
sth
18ebc833f8
Fix: don't give an error if the hash algo is SC_ALGORITHM_RSA_HASH_NONE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1302 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-24 14:27:54 +00:00
aet
4de1bef042
- Build fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1301 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-24 13:10:53 +00:00
aj
849d48068e
Nils fixes to starcos.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1296 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-24 06:47:54 +00:00
sth
06d4311e80
Made the construct_fci() a card operaton, just like it has been done with process_fci() before
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1291 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-23 14:31:21 +00:00
aj
c34eb2b147
find the keys by usage (patch by Nils Lars)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1290 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-22 15:51:17 +00:00
aet
118c7a4dcc
Resync .cvsignore files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1271 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-17 12:39:11 +00:00
okir
64c62eb0db
- patch for synthetic p15 cards by Nils Larsch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1268 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-16 15:17:57 +00:00
sth
f563ee6a9e
Moved padding from pkcs15-sec.c to padding.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1266 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-16 11:52:28 +00:00
okir
95e2d8b78a
- Change padding functions
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1264 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-15 10:49:28 +00:00
sth
0a05d8340c
Have process_fci() as a card operation instead of being called internally by iso7816_select_file(). This way card drivers can implement a select_file() and process_fci() independently
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1263 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-14 17:39:19 +00:00
okir
29add3c3c9
- added SC_ERROR_WRONG_PADDING
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1260 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-14 16:56:38 +00:00
okir
82c3efb4bb
- added missing error messages
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1259 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-14 16:56:15 +00:00
okir
c2e40211be
- try to deal with RSA_SIG keys (first try RSA_PURE_SIG, then RSA_SIG)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1258 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-14 16:55:54 +00:00
sth
901a2d90e3
Added 'Global Platform' PIN encoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1257 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-14 13:20:49 +00:00
sth
df89427bfb
Bug fix: let sc_transmit_apdu() returns a negative number or 0 (no positive number)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1248 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-11 09:40:49 +00:00
aj
473a701c80
Forgot to init slot[0].flags to SC_CARD_PRESENT
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1247 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-10 22:31:14 +00:00
sth
4737789ede
Implemented the get_response card operation, is now explicitely called by sc_transmit_apdu()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1246 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-10 11:38:02 +00:00
aj
44dbbffc70
disable usbtoken by default.
...
put usbtokens readers behind openct readers.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1240 c6295689-39f2-0310-b995-f0e70906c6a9
2003-07-01 17:34:58 +00:00
aj
694715e85a
Xander Soldaat <lists@b-yes-d.net> reported this ATR,
...
the card works for him "like a charm."
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1239 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-30 18:25:34 +00:00
sth
3669fa86e7
Increased the pkcs15 ID size from 16 to 255
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1238 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-28 07:02:26 +00:00
aj
4f979cf880
attached is patch for card-starcos.c This patch generalizes
...
the handling of the driver internal extra data (for example this will
be usefull to supply the card driver with the necessary information
to create MF/DF/EF). I also added a workaround for certain
profiles which require that the pin is only verified once (i.e.
the state doesn't change after a signature verification).
And finally I changed the order of some starcos function
(at first the init/free function and then the rest).
If nobody has objections it would be nice if someone could
commit this patch to the CVS.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1237 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-27 23:01:10 +00:00
okir
127f94ad37
- added pinpad support for OpenCT
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1215 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-23 12:56:36 +00:00
sth
79a5456b24
Changed strcat to strncat
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1211 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-17 11:31:48 +00:00
okir
7021fcb5a5
- iso7816_logout now invalidates the path cache
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1204 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-15 12:56:07 +00:00
sth
aecd987286
Add support for non-optional ASN.1 object that are empty
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1195 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-12 21:14:04 +00:00
okir
d86e7fbd52
- starcos fixes from Nils
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1193 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-11 10:56:18 +00:00
okir
0cfd6319bf
- New public function sc_add_padding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1192 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-11 10:56:04 +00:00
okir
6575a4adbf
- iso7816_logout should call driver specific select_file function, not the iso7816 generic version
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1186 c6295689-39f2-0310-b995-f0e70906c6a9
2003-06-10 06:31:48 +00:00
okir
7fe0ba8749
- fixed typodef in sc_pkcs15_*_info_t (spotted by Nils)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1178 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-30 09:54:14 +00:00
okir
2abc504051
- remove signedness warnings printed by new gcc
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1176 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-30 08:54:42 +00:00
okir
48a61e95c0
- added card name to struct sc_card to allow upper level apps to identify
...
card type more precisely
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1173 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-28 20:52:33 +00:00
aj
9da55fc262
configure now accepts a path with --with-openct,
...
and that directory is searched, and variables
OPENCT_CFLAGS, LIBS, LDFLAGS are set (and used in src/libopensc/Makefile).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1163 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-24 19:31:12 +00:00
okir
484fca5308
- in pin_cmd, dont assume the caller has properly initialized max_length and encoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1160 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-23 10:05:12 +00:00
okir
795915e146
- added cryptoflex RSA key generation (not yet functional)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1158 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-22 20:53:15 +00:00
okir
e6864b5897
- less verbose debug messages
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1157 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-22 20:51:45 +00:00
okir
f4d1147224
- change debug level for sc_lock/unlock
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1156 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-22 19:34:45 +00:00
okir
296a9cc54b
- fixed the hang with logout()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1155 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-22 13:59:25 +00:00
sth
fc31b65a88
added sc_logout() functionality
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1153 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-20 08:30:46 +00:00
aj
f75ffc57d9
egate cryptoflex 32 card can generate key. updated the flags.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1140 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 15:30:42 +00:00
okir
67747f45e1
- select file: do not interpret INVALIDATE/REHAB AC bits for DFs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1136 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-16 14:15:36 +00:00
okir
30c094395a
- it seems the upper limit for r/w binary is 244
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1130 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 15:42:45 +00:00
okir
b68cb1e0b3
- added sc_free_apps to undo sc_enum_apps
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1122 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 13:32:17 +00:00
okir
e85ebc6a9d
- fixed card_ctl error message
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1121 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:41:43 +00:00
okir
27e105540e
- added sc_pkcs15_find_pin_by_reference
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1114 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-15 11:27:38 +00:00
okir
8a3992a4db
- bumped buffer sizes for EF(TokenInfo) labels
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1110 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 16:29:47 +00:00
okir
877423b7ec
- restrict max read/write size to 128
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1106 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 12:25:13 +00:00
okir
3ed0c2f5b1
- do not mess with Case 4 APDUs unless we're doing T=0
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1105 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 12:00:57 +00:00
sth
9c198d7b95
Some typos fixed and fixed the algos for use in OpenSSH (Nils Larsch)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1104 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-14 08:47:04 +00:00
okir
41a9e6ff2f
- sc_pkcs15_compute_signature(RSA_RAW): zero pad input if shorter than modulus length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1103 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-13 20:24:24 +00:00
aj
1bfe075ccd
OpenSC header files are included as
...
#include <opensc/opensc.h>
Thus it has to be -I/path/to/opensc/include
and not -I/path/to/opensc/include/opensc
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1102 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-13 14:29:59 +00:00
aj
7cbe523cc4
At least the rainbow ikey 3000 need bigger labels.
...
Label size should be 255, as per pkcs15.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1100 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-13 13:43:09 +00:00
sth
2fae230794
Make sc_pkcs15_read_file() work if the pkcs15 files contain only FIDs instead of file paths (Nils Larsch)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1099 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-13 07:06:29 +00:00
sth
20fa07c022
Added decryption functionality
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1095 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-12 11:51:22 +00:00
sth
55e8c31b12
Fixed: support for X.509 V1 certs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1094 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-11 07:22:27 +00:00
sth
e9e7db89c7
Fix of the previous Win32 patch related to the assumed absence of OPENSSL_cleanse(): this function does is present on OpenSSL 0.9.7 but not on the beta4 version
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1093 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-08 10:42:36 +00:00
aj
dd81cea093
- indent (maybe not such a good idea?)
...
- improved some error messages
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1088 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-02 15:00:34 +00:00
sth
782f5d39e6
Fix for Win32 where there's no OPENSSL_cleanse()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1086 c6295689-39f2-0310-b995-f0e70906c6a9
2003-05-02 14:33:02 +00:00
jey
a70954d2c2
- Yet another test commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1081 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-29 11:37:11 +00:00
sth
9213f6c5cc
Removed some compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1079 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-29 09:27:36 +00:00
jey
b0d4f06703
- Renamed card->chopsize to max_le, which is more descriptive
...
- Changed a few checks to asserts
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1078 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-28 16:34:38 +00:00
aj
a6e7fa3af9
Nils fixed asn1 code to detect two byte "file name" versus
...
longer real paths.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1077 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-28 16:29:57 +00:00
aj
f5bed52c76
Comment fixed by Nils: should be 0x80 or 128, but not "80 bytes".
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1076 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-28 16:29:13 +00:00
aj
c6efa1e9a1
create card->chopsize, init it with SC_APDU_CHOP_SIZE,
...
allow cards to change that value, and add code to
starcos_init to set chopsize to 80.
chopsize is used with read_binary and friends to chop
the data into small requests, read/write them, and reassemble.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1074 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-27 19:08:23 +00:00
aj
1c121b1430
Only look at first byte for end of data detection.
...
That way not only 0,0 and ff,ff is recognized
and 0,ff,ff,ff... will not cause trouble.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1073 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-27 15:05:03 +00:00
aj
07668a30ff
Nils Larsch:
...
here is a patch to remove a bug in card-starcos.c and two warnings:
card-starcos.c: fix apdu.le value
pkcs15-pin.c: remove unused labels => avoid compiler warnings
pkcs11-tool.c : remove memory leak (a RSA_free() was missing)
and simplify code (+ remove warning).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1072 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-25 10:03:09 +00:00
sth
fecf9f5e15
Allow empty key file paths in compute_signature and decipher
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1071 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-25 07:51:05 +00:00
sth
d8ef40512b
Extended caching for single-user Windows OSes (Win98)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1069 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-23 11:46:07 +00:00
sth
870efbf2c0
Added SC_PKCS15_PRKEY_USAGE_NONREPUDIATION as a valid signature usage
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1066 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-23 08:47:57 +00:00
aj
131719b8c6
- add robert to Authors as contributor of bug fixes
...
- configure code finally working.
engine is detected and path to libcrypto.a is also set.
- roberts fix for reader-usbtoken.c
- card-gpk.c migraton to DES_ routines with #define for 0.9.6 openssl.
- man pages: do not ship pkcs15-profile.5 (.in is in the tarfile)
- assuan: replace "strcpy(stpcpy(.., ..), ..)" with
"strcat(strcpy(.., ..), ..)" which looks good, but nobody uses
assuan I guess ?
- declaration of sc_pkcs15init_set_lifecycle kills a warning
- #include <openssl/bn.h> kills a warning (or compile problem?)
- removed unused txt[256]; from p15_eid (kills a warning)
- now "ln -s" the signer plugin to the plugin directory.
- moved key_out direction to the beginning of a function (kills
a warning or compile error)
- changed pkcs11-tool option "quiet" to "verbose" to conform to
other tools.
- made algo argument to wrap_unwrap a "const" (kills several warnings)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1063 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 17:00:38 +00:00
sth
a02b233a6c
Correction of the previous insert-remove fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1060 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-22 07:51:45 +00:00
jey
0aea6fcba5
- applied build fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1058 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 15:01:55 +00:00
jey
ed0ffac09b
- fixed add_padding() in the case where padding is request, but input
...
isn't a hash.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1053 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 12:29:03 +00:00
jey
4ae13b64a4
- fixed CHV changing with a CryptoFlex
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1051 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-21 11:40:51 +00:00
sth
01896a8f2e
Added some files to ignore, also for Windows
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1049 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-18 14:57:50 +00:00
sth
b531527169
More robust detection of removal/insertion events
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1044 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 14:35:58 +00:00
okir
d2075b2c13
- implemented split-key support for CardOS
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1038 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-17 12:38:08 +00:00
okir
98907b68f1
- fixed endianness problem with encoding/deconding of bit fields
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1034 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 20:52:26 +00:00
sth
005590ab8f
Added card-starcos
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1032 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 19:49:50 +00:00
okir
f1aaa62c2b
- integrate starcos driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1029 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 16:59:34 +00:00
okir
7dd987d6cd
- fixed some compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1028 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 16:01:22 +00:00
okir
5abf1b898e
- added SC_SEC_OPERATION_AUTHENTICATE for starcos driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1027 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 15:58:57 +00:00
okir
f8a7fecf78
- get rid of warning
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1026 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 15:56:40 +00:00
okir
ac1c926cc8
- Added starcos driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1023 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 14:27:33 +00:00
sth
7cb9901113
Correction of the previous patch for MacOSX
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1018 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 12:01:08 +00:00
okir
90598ef590
- new error code SC_ERROR_CANNOT_LOAD_KEY
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1016 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 10:20:22 +00:00
okir
44995d388d
- don't complain about read/write/update binary with a length of 0
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1015 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 10:19:20 +00:00
okir
0c173451fc
- dont return error in detect_card_presence if there is no reader
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1014 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-16 08:33:37 +00:00
sth
088a346bdd
First thing written in the debug log will be ==========
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1012 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-15 17:10:25 +00:00
sth
4545fc2ab6
include for MacOSX added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1011 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-15 15:59:32 +00:00
okir
46ddaa903d
- fix pkcs11 signatures with etoken
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1009 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 15:19:53 +00:00
okir
3b36593ada
- added pkcs15 unblock functionality
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1008 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 14:51:42 +00:00
okir
0b333129d9
- explicitly mention we do raw RSA
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1005 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 10:33:07 +00:00
okir
91b7b3c7a6
- suppress "not supported" error messages from sc_card_ctl
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1004 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-14 08:17:53 +00:00
okir
a9a766fafb
- more fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1002 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 15:29:29 +00:00
okir
99dc52d875
- try to deal more gracefully with hotplug events
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@999 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:42:45 +00:00
okir
f4b866c1ea
- include config.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@998 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:42:29 +00:00
okir
e052e6956d
- added hotplug errors
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@997 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 14:42:16 +00:00
okir
0eecac13bb
- support for lifecycle cardctl; cardos lifecycle support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@993 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:47:41 +00:00
okir
5ca228f7b8
- usbtoken fixes from Andreas
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@992 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:46:57 +00:00
okir
9437f109ec
- Added OpenCT reader support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@989 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 11:41:31 +00:00
okir
c07de5157a
- added SC_PKCS15_PIN_TYPE_* defines for weirdo encodings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@983 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-11 10:30:25 +00:00
okir
340aad07a0
- fixes for le=00/lc=00 problems
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@982 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-10 09:16:05 +00:00
sth
b00a91c8af
better fix then the previous for the assertion failed bug
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@981 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-09 20:19:42 +00:00
sth
ae700e318b
Fix: assertion failed (lock_count>=0) in sc_pkcs15_bind()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@979 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-04 09:52:39 +00:00
okir
fabb271b6d
- fix sc_transmit_apdu to properly deal with le=00
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@978 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 18:19:22 +00:00
okir
fa2e617cd1
- added sc_reader_t
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@975 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 13:18:00 +00:00
okir
35a5cdd780
- changed description
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@973 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:53:06 +00:00
okir
a7962eeed6
- stubs for "synthetic" pkcs15 tokens
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@970 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-03 09:46:26 +00:00
sth
9d3b5a3941
Added sc_current_time
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@968 c6295689-39f2-0310-b995-f0e70906c6a9
2003-04-02 06:58:20 +00:00
okir
e0a80576e6
- Remove workaround for t=1 bug in etoken driver.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@966 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-28 13:26:55 +00:00
okir
da172fd4c5
- added reader driver for usbtoken
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@960 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:14:22 +00:00
okir
bdb9163a8f
- added
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@957 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-27 10:06:53 +00:00
sth
4aef09109b
card remove/insert dection for Win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@953 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-20 12:52:39 +00:00
okir
c816a1f461
- use OPENSSL_cleanse instead of memset to zap DES key (Nils Larsch)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@952 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-12 10:20:46 +00:00
okir
489401a9b3
- changed HAVE_LIBPCSCLITE -> HAVE_PCSCLITE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@950 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-11 11:00:02 +00:00
okir
aab6ebd1e7
- minor cosmetic change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@946 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-10 21:23:08 +00:00
okir
d5d1fb395c
- bump SC_MAX_READERS to 16
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@945 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-10 21:22:42 +00:00
sth
faa73e5827
bug fix in sc_connect_card: only the first ATR in a config file was accepted
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@940 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-04 15:47:05 +00:00
okir
f5ac3cd8ab
- fixed ATR
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@939 c6295689-39f2-0310-b995-f0e70906c6a9
2003-03-04 09:38:23 +00:00
sth
0529d27e3f
buf fix in sc_connect_card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@928 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-22 21:27:35 +00:00
sth
a7a5701e0c
added support for max pin length
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@922 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 23:19:01 +00:00
sth
213941af28
little fix of the previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@919 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 13:03:15 +00:00
sth
9631ef3636
removed const in sc_card_driver (caused win32 crash)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@918 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-20 12:51:07 +00:00
sth
57954682fd
added error: unresponsive card
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@915 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-19 13:36:58 +00:00
okir
4ffba35b5e
- fixed change/unblock pin for GPK
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@910 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-16 20:25:41 +00:00
sth
0b9c44172d
get the right error code on card removal
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@906 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-12 14:20:00 +00:00
sth
a2b9838bb1
added locking to sc_pkcs15_decipher and sc_pkcs15_compute_signature
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@902 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-06 14:46:57 +00:00
okir
8160bf64a1
- fixed typo in previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@901 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-05 15:43:51 +00:00
okir
d1a122ce3b
- fixed typo in previous patch
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@900 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-05 15:39:44 +00:00
okir
af6cfb5537
- Support Belgian eID - be less pedantic about the AID listed in EF(DIR)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@899 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-05 14:45:48 +00:00
okir
542e12deb3
- pubkey asn.1 encoding fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@893 c6295689-39f2-0310-b995-f0e70906c6a9
2003-02-03 12:17:12 +00:00
sth
7dab6baeee
file size fix + removed unnecessary code from previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@889 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-30 09:45:13 +00:00
sth
20ad65a858
made buf[1024] dynamic (malloc)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@886 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-28 15:36:08 +00:00
sth
7d6837321f
Fixes for Windows, who's PC/SC has more events that interfere with insert/removal events
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@882 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-27 13:01:17 +00:00
okir
3a83fca452
- cflex 32k v4 supports keygen
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@880 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-22 08:34:44 +00:00
okir
733f6d1fb9
- fixed previous %windir% change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@878 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 12:09:30 +00:00
okir
7eef2f81a2
- new ATR for eToken PRO 32k reported by Kevin Stefanik
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@877 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 11:40:38 +00:00
okir
c5f5557367
- sc_pkcs15_read_file: gracefully deal with short reads
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@876 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 10:22:41 +00:00
okir
501cdbd7e0
- Get opensc.conf from %windir% rather than hard-coded C:\\WINNT (Stef)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@875 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 10:12:28 +00:00
okir
a5492a32a8
- slightly more verbose error messages when ASN.1 parsing fails
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@871 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 09:56:27 +00:00
okir
693c5e6b8b
- do not encode zero length sequences
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@870 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-20 09:53:10 +00:00
okir
5b1eb43b93
- add some support for card removal in pkcs11
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@867 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-19 17:47:07 +00:00
okir
e69517941f
- added SC_CARD_CAP_RNG
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@864 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-15 13:20:02 +00:00
aet
b1eff66867
C++ warning fixes (assuan excluded)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@863 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 19:55:45 +00:00
okir
a89e65bfb3
- mask out additional flags in the card type byte when asked for the AAK
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@862 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 16:49:54 +00:00
okir
f2f6c24716
- added ATR for Cryptoflex 32k v4
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@861 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 16:44:34 +00:00
okir
6532461cf3
- win32 fixes for mutex change
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@860 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 14:26:23 +00:00
aet
6346fd0fcd
A small warning / compile fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@859 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 13:31:55 +00:00
okir
baf8393a8a
- merged mutex patches from Serge Koganovitsch (Zetes)
...
- created new file portability.c and moved the whole mutex stuff
there (so we don't pollute public header files with #ifdef HAVE_XXX anymore)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@858 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-14 11:22:33 +00:00
okir
41ee6a61ba
- fix to previous patch: if use_cache is given in both the default and the application conf block, use the latter
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@856 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 12:33:41 +00:00
okir
373de3ed87
- actually honor the use_cache config option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@855 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 12:31:03 +00:00
okir
d2d83a47ff
- when caching pkcs15 files, transparently create the cache dir if not there
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@853 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 09:18:02 +00:00
okir
0b1b8b14f5
- use "wb" rather than "w" in fopen (Stef)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@849 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 08:46:11 +00:00
okir
4749a40e5b
- prevent segfault in opensc-explorer create command
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@847 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-09 07:31:58 +00:00
aet
037dbdfa13
Fix compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@845 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 23:46:24 +00:00
aet
12bfb8ba64
Cleanups and logging improvements for non-GCC compilers
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@844 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 21:46:46 +00:00
okir
144bb23a7c
- fixed minor pin pad bug
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@841 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 19:37:37 +00:00
okir
92651f0595
- sc_pkcs15_change_pin: small pin pad change from Stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@840 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 19:36:23 +00:00
okir
8229351cce
- DEF_APDU_FIX wasn't used unless you install a config file.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@838 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-06 17:45:06 +00:00
okir
9b330f3408
- vertain platforms need time.h to understand time_t
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@833 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-05 18:06:35 +00:00
okir
bb7708335b
- fixed comment before sc_wait_for_event
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@832 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-05 17:59:43 +00:00
okir
04c00ef5ef
- fixed problem with infinite tiemout in sc_wait_for_event
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@831 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-05 17:59:24 +00:00
aet
86039021af
canelled -> cancelled
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@830 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-04 13:17:40 +00:00
okir
21fe5ef918
- Patch from Stef to implement sc_wait_for_event, slightly enhanced by
...
yours truly.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@825 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 16:32:06 +00:00
okir
8d7fd40e80
- new error code (wait_for_event timeout)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@824 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 16:30:28 +00:00
okir
675ef65073
- default apdu_fix=1 on win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@821 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 13:27:19 +00:00
okir
939d78a72d
- allow hard-coded config options
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@820 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-03 13:26:58 +00:00
okir
93c0cab7b9
- win32 fixes from stef
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@814 c6295689-39f2-0310-b995-f0e70906c6a9
2003-01-02 15:31:53 +00:00
okir
9acca0e724
- Implemented new PIN verify/change/unblock framework. All PIN operations
...
are routed through sc_pin_cmd(), which builds the APDU and either passes
it to the card directly, or to the card reader along with a request to
read the PIN(s) from the reader's keypad.
Currently, entering PIN in the standard way (i.e. via the application)
should still work - I have verified GPK and eToken; Cryptoflex verify
should work as well. Anything else needs additional testing, and support
for keypad input in particular (I cannot test this at the moment for
lack of a suitable reader).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@811 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-23 18:47:27 +00:00
okir
3b7ebc7c02
- clarified use of conf_blocks in process_config_file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@803 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-21 14:10:36 +00:00
okir
4c28f0dad8
- prevent buffer overflow
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@802 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-20 14:55:17 +00:00
okir
34d45b2210
- minor signedness issue
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@801 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 21:17:06 +00:00
okir
0980825796
- get rid of warnings when calling load_card_driver_options
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@799 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 16:16:42 +00:00
okir
a7615abdeb
- attempt to fix DODF encoding/decoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@798 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-19 14:26:54 +00:00
okir
d37c1ff58c
- fixed pkcs1-ripemd160 signature header
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@791 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-18 12:15:04 +00:00
okir
b86d2e994b
- First shot at pkcs15 data objects from Danny De Cock
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@788 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-18 10:17:01 +00:00
okir
5ef34fc7bc
- Added support for SC_ALGORITHM_RSA_HASH_RIPEMD160 in sc_pkcs15_compute_signature
...
- rewrote add_padding
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@781 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 20:15:32 +00:00
okir
3f584dbb1f
- Added SC_ALGORITHM_RSA_HASH_RIPEMD160
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@780 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-17 20:14:41 +00:00
okir
87fc4815d9
- do not segfault when we fail to parse a pkcs15 DF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@771 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-11 08:54:16 +00:00
jey
9a8c3b2b20
- Added support for separator characters in sc_bin_to_hex()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@767 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 14:44:42 +00:00
jey
79b5672edc
- Keep the DER encoding of each PKCS #15 object in memory
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@761 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 13:27:17 +00:00
jey
3bced8aeae
- Changed sc_bin_to_hex() prototype a bit and removed the ':' characters
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@760 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-10 13:26:31 +00:00
okir
6217b4adf5
- changed pcsc_detect_card_presence to call refresh_slot_attributes. This
...
eliminates duplicate code, and that we also pick up the new ATR if another
card was inserted in the meanwhil.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@758 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-06 21:40:41 +00:00
okir
868d1d7a20
- added sc_bin_to_hex
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@757 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-06 12:49:19 +00:00
okir
59ca2a4b0f
- sc_parse_atr: initialize slot->atr_info.hist_bytes even if the ATR is bad
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@756 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-05 09:34:24 +00:00
okir
c83fa88ca8
- Parsing pkcs11 IDs and paths with an odd number of bytes would scan past
...
the end of the string. Made sc_hex_to_bin more robust and change various
place to use it rather than doing it on their own with scanf(%02x)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@754 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 15:36:33 +00:00
okir
2c280fe351
- updated pkcs15init error codes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@747 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 12:33:43 +00:00
okir
92adeef9a6
- fixed ATR for Cryptoflex 32K e-gate
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@746 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 12:09:07 +00:00
okir
555f612166
- implemented SC_CARDCTL_GET_DEFAULT_KEY for the flex driver; will return
...
the default AAKs for Cryptoflex and Cyberflex Access. Hope I got them
right.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@742 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 09:59:33 +00:00
okir
3168c8ea26
- added new cardctl SC_CARDCTL_GET_DEFAULT_KEY to get default transport keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@741 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 09:26:40 +00:00
okir
6df8dbbed3
- fixed asn1_encode_path - include length value if given
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@740 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-04 09:24:49 +00:00
okir
d635d53771
- support ATR maps in /etc/opensc.conf, e.g.
...
card_driver flex {
atr = 11:22:33:44;
atr = 55:66:77:88;
}
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@738 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-03 15:40:40 +00:00
okir
f44247070f
- added Cryptoflex 32k e-gate
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@736 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-03 12:27:29 +00:00
okir
021ea9c0c3
- added length value to sc_path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@734 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-02 13:42:03 +00:00
okir
3f16e04a8f
- sc_pkcs15_read_certificate now uses sc_pkcs15_read_file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@733 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-02 13:39:36 +00:00
okir
d3c6bfd10f
sc_pkcs15_read{,_cached}_file now honor the index/length parameters from Path
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@732 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-02 13:38:50 +00:00
okir
fcfbeb1845
- When decoding Path, decode "length" value as well (if present)
...
- a few int -> size_t changes to suppress gcc3 warnings.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@731 c6295689-39f2-0310-b995-f0e70906c6a9
2002-12-02 13:38:09 +00:00
okir
51d8983b99
- Fix from Stef Hoeben to get the eid-cache stuff working on win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@723 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-27 14:27:53 +00:00
aet
4e61af2b57
Duh, revert previous patch.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@718 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-18 09:05:06 +00:00
aet
df6dd39e2b
Add usage of __FILE__, __LINE__ and __FUNCTION__ macros
...
for non-GCC compilers too, where available.
(Based on patch by Stef Hoeben)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@716 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-17 20:23:35 +00:00
fabled
3837299e1e
Updated win32 port for recent updates.
...
Noticed by Stef Hoeben.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@708 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-11 08:22:11 +00:00
okir
78d2160f46
- added SC_ALGORITHM_NEED_USAGE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@707 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-08 14:14:42 +00:00
okir
a10fe0876a
- set SC_ALGORITHM_NEED_USAGE flag in algo info
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@705 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-08 14:14:05 +00:00
okir
45892e686f
- detect when a GPK card is already personalized
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@704 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-08 13:50:33 +00:00
okir
b3852705d4
- make sc_get_driver static
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@702 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-08 13:04:00 +00:00
okir
ac43fede31
- GemSafe cards have a directory 0200 with an AIDF file in it, and
...
will return a 0x6F file info block when selecting this DF. Try
to parse it, as far as we understand it.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@701 c6295689-39f2-0310-b995-f0e70906c6a9
2002-11-08 12:10:55 +00:00
aet
148f4051f6
Various build fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@697 c6295689-39f2-0310-b995-f0e70906c6a9
2002-10-19 16:51:37 +00:00
aet
1d2c9e4c48
Cleanups for initial win32 port, untested.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@696 c6295689-39f2-0310-b995-f0e70906c6a9
2002-10-19 14:04:52 +00:00
okir
fe27ed651e
- fixed deciphering (apdu.le was not set)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@692 c6295689-39f2-0310-b995-f0e70906c6a9
2002-10-02 10:49:07 +00:00
jey
f0d73785fb
- Also removed the ref variable
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@689 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:34:29 +00:00
jey
2569daf431
- Removed the last goof I made
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@688 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:34:08 +00:00
jey
d38851b9e4
- Fixed prototype for sc_pkcs15_card_new()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@687 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:22:48 +00:00
jey
4c36cb9641
- Used cert->key instead of key in parse_x509_cert()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@686 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:22:13 +00:00
jey
25931fe3e5
- Set bit 8 in key reference, if PIN_FLAG_LOCAL is set
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@685 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:20:30 +00:00
jey
00a2a0defd
- Brown paper-bag fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@684 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:16:42 +00:00
jey
0810ccf4af
- Removed error list
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@683 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:15:58 +00:00
jey
df4b9620e3
- Added card-mcrd.c
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@682 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:14:37 +00:00
jey
8bbcb933a4
- Added driver for MICARDO 2 cards
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@681 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:13:28 +00:00
jey
82fabceeae
- Added some new error codes to sc_iso7816_check_sw()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@680 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:06:59 +00:00
jey
21a82c17b8
- Renamed read_tag to sc_asn1_read_tag and made it a
...
non-static function
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@679 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-21 10:02:55 +00:00
okir
a14aaedef7
- Merged GPK patches from Steve Henson (signing fixes)
...
and Joe Phillips (GPK16K ATR matching code).
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@678 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-20 08:59:58 +00:00
okir
97119f75e8
- GPK16K: wildcard RSA exponent is 0 not -1
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@676 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-20 08:28:47 +00:00
okir
b18d893764
- certificate version is optional (v1)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@673 c6295689-39f2-0310-b995-f0e70906c6a9
2002-08-06 13:51:08 +00:00
jey
e0aa31a913
- Added ATR for GPK16000
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@672 c6295689-39f2-0310-b995-f0e70906c6a9
2002-07-28 18:22:37 +00:00
fabled
e4540f826a
- Win32 build fixes. Should work now.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@669 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-20 12:14:18 +00:00
okir
eeac475aa3
- error message fixup
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@665 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-18 15:17:15 +00:00
okir
0573ae7d30
- fixed compute_signature for gpk8000
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@664 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-18 12:20:26 +00:00
okir
d26637455e
- added cardctl SC_CARDCTL_GPK_VARIANT
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@662 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-17 15:24:21 +00:00
okir
aad6a7fe1d
- more eToken fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@658 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-17 10:55:58 +00:00
okir
10c5a041be
- RSA padding header for sha1 was still broken
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@657 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-17 10:54:10 +00:00
jey
5d70c9090a
- Renamed sc_transceive_t0 to sc_transceive to avoid confusion =)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@656 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-16 21:19:37 +00:00
jey
32ec1978d4
- sc_pkcs15_compute_signature() and sc_pkcs15_decipher() now select
...
the whole path specified in a private key object
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@655 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-16 21:18:05 +00:00
fabled
7635468ed9
- Initial support for win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@654 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-14 12:52:56 +00:00
jey
523b680f32
- Fix apdu->le in sc_compute_signature()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@653 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-14 12:29:19 +00:00
jey
0694da56e1
- Reverted Olaf's patch in sc_compute_signature(). It breaks
...
government issued (e.g. FINEID) cards.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@652 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-14 12:18:28 +00:00
jey
a94d1b26fb
- Fix for last commit. It now compiles, at least.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@650 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-14 11:43:22 +00:00
jey
ed19095c71
- Preliminary fix for Case 4 APDU sending on Win32
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@649 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-14 11:33:20 +00:00
okir
657bfa74e0
- added comment/question
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@648 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-13 11:20:11 +00:00
okir
85aeed256f
- changed APDU base from 3 to 4 on sign/decipher
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@647 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-13 11:18:31 +00:00
okir
1a5c6d7faa
- support for security environment create/restore/set
...
- support for signature computation (non functional yet)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@643 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-11 18:14:25 +00:00
okir
6f611fdb9f
- added support for PUT_SECI
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@642 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-11 18:13:48 +00:00
okir
e877f1e27e
- experimental: support for cards such as eToken that store keys in "objects" below the DF
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@641 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-11 18:13:23 +00:00
okir
04499ddb48
- properly identify supported algorithms
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@639 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-07 20:28:11 +00:00
okir
8535127ba8
- started to implement eToken key generation
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@635 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-06 09:17:52 +00:00
okir
c6a5018a4f
- pin verification works now
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@624 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-04 19:42:17 +00:00
okir
03559c47d0
- added eToken specific cardctls
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@621 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-04 08:50:39 +00:00
okir
f973a3d942
- fixed some minor glitches (potential buffer overflow in read_dir;
...
missing SW check)
- added card_ctl for put_data_fci
- added some debug output
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@620 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-04 08:50:17 +00:00
aet
2846d6ce3b
Preliminary MacOS X build support, untested so far.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@617 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-03 15:18:47 +00:00
jey
28b4a1b9f8
- iso7816_set_security_env now has correct values for P1
...
- Improved detection of SetCOS cards
- Changed the default CLA byte in card-setcos.c to 0x80
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@616 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-03 15:05:58 +00:00
okir
f49e681c92
- do our own chunking in read/write binary
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@614 c6295689-39f2-0310-b995-f0e70906c6a9
2002-06-02 21:39:07 +00:00
aet
2b433941dd
Build fix for previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@610 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-27 06:41:21 +00:00
jey
7c94d7d8d3
- Several patches to fix behaviour on 64-bit architectures (by
...
Jochen Friedrich)
- Fixed one bug in sc_copy_asn1_entry(), one in
sc_pkcs15init_add_object() and one in pkcs15-crypt
(patches also by Jochen)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@609 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-26 12:31:23 +00:00
aet
25cf9756ed
Minor GCC warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@606 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-20 09:19:41 +00:00
aet
e681dc4165
Warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@602 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-13 12:23:21 +00:00
jey
d9a788350d
- Applied a patch by Werner Koch that brings the TCOS driver
...
up-to-speed
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@601 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-09 10:34:18 +00:00
jey
03d58e7956
- Applied a patch by Matthias Bruestle <m@mbsks.franken.de>:
...
- Changed the case of GET RESPONSE in card-default.c to 2 short
- Added ATRs to Flex, GPK and TCOS drivers
- Changed value of maximum Lc in card.c to be 255
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@600 c6295689-39f2-0310-b995-f0e70906c6a9
2002-05-09 10:22:42 +00:00
okir
7f6453d715
- sc_pkcs15_decipher now takes a flags argument, so we know when to
...
strip off any pkcs#1 padding.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@585 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-23 08:17:06 +00:00
jey
f618b754a2
- Applied a patch to card-etoken.c that gives
...
ACL support; patch by Markus Frield
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@584 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-22 23:01:57 +00:00
okir
b9b0a1f2ef
- fixed pkcs1 padding for rsa-md5 signatures
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@582 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-22 18:03:50 +00:00
aet
f7fcaee513
Extract certificate crlDistributionPoints and store it in sc_pkcs15_cert
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@580 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-21 18:54:10 +00:00
jey
9c39ca7e61
- Added 'force_card_driver' option
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@579 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 20:07:56 +00:00
jey
728928401a
- Some fixes to the MioCOS driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@576 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 17:02:49 +00:00
aet
3dccd63989
- C++ support. Compiles with gcc/g++ for Linux, otherwise
...
completely untested.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@574 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 14:23:31 +00:00
jey
546f920fc1
- PKCS #15 objects and DFs are now stored with linked lists
...
in struct sc_pkcs15_card; this way we can have 'floating'
objects that don't belong in any DF, for e.g. generating
public key objects from certificates
- Removed some unused function prototypes
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@572 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-19 09:22:44 +00:00
jey
9a6b3452a2
- sc_pkcs15_find_prkey_by_id and sc_pkcs15_find_cert_by_id now
...
return all private keys and certificates instead of only RSA keys
and X.509 certificates
- Removed some obsolete PKCS #15 initialization code
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@571 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 15:01:02 +00:00
jey
b4af9ab16e
- Added a missing SC_ASN1_CTX flag to DSA key ASN.1 entries
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@570 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 14:59:12 +00:00
okir
7cd061c91a
- added a bunch of prototypes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@567 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 10:59:35 +00:00
okir
3cdde95848
- sc_pkcs15_find_pubkey_by_id
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@566 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 10:59:13 +00:00
okir
c9aba0d1ca
- fixed bug with DSA pubkey de/encoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@565 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 10:58:48 +00:00
okir
939efa48a0
- small fix for reading the private key file
...
- added sc_pkcs15_{erase,free}_prkey
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@564 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 10:58:11 +00:00
okir
94cb1e0219
- encryptedContent didn't have proper ASN.1
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@560 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 09:11:18 +00:00
okir
6d8fe463a4
- properly encode/decode DSA public keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@559 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 09:10:54 +00:00
okir
2b9ae3613b
- fix algorithm_id decoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@558 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-18 09:10:33 +00:00
okir
2b65c73cfb
- missing prototypes for {de,en}code_prkey
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@555 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:45:15 +00:00
okir
f23480d491
- return objects when searching for a generic type (e.g. all PRKEY objects)
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@554 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:44:54 +00:00
okir
9c502889d4
- correctly initialize PKCDF2 params
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@553 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:44:25 +00:00
okir
736d250c34
- fixes for PrKDF encoding/decoding for indirect-protected
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@552 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:44:06 +00:00
okir
79d0902155
- fix for decoding CHOICE
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@551 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:43:12 +00:00
okir
b7a22e2df6
- new error code SC_ERROR_INCOMPATIBLE_KEY
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@550 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 20:42:54 +00:00
okir
fcbbb6c3e5
- eliminated RSA specific code to support generic pubkeys instead
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@548 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 18:33:27 +00:00
okir
95a7fafe31
- use SC_ASN1_ALGORITHM_ID when decoding x509 certs
...
- handle certificates with non-RSA keys as well
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@547 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 18:32:06 +00:00
okir
5d8b1000ca
- eToken patches from Markus Friedl
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@546 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 13:36:35 +00:00
okir
f87bbcee4c
- some fixes to the ASN.1 we generate
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@545 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 13:34:40 +00:00
aet
0e24215b1f
Minor warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@544 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 13:13:44 +00:00
okir
a5dd0dbb99
- support NULL tag for encoding/decoding
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@542 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 12:19:57 +00:00
okir
228b6645c8
- correctly encode AlgorithmIdentifier w/o params as OID+NULL
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@541 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 12:19:43 +00:00
okir
1424c83854
- minor bugfix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@540 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 10:33:26 +00:00
okir
b05cc1e557
- error out for non-native keys
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@539 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:06:55 +00:00
okir
19132bea59
- new error code SC_ERROR_EXTRACTABLE_KEY
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@538 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:06:42 +00:00
okir
8ef6b71bb6
- added new files
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@537 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:01:54 +00:00
okir
56191b8d20
- functions for file content protection
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@536 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:01:49 +00:00
okir
0a458d66b9
- new file path type SC_PATH_TYPE_PATH_PROT
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@535 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:01:11 +00:00
okir
af262521e7
- new generic function sc_pkcs15_read_file
...
- structs and functions for data wrap/unwrap
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@534 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:00:52 +00:00
okir
29c7639bbd
- new generic function sc_pkcs15_read_file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@533 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 09:00:16 +00:00
okir
996f5b7f2e
- renamed sc_pkcs15_parse_pubkey_rsa -> sc_pkcs15_decode_pubkey_rsa
...
- added sc_pkcs15_decode_pubkey_dsa
- sc_pkcs15_read_pubkey now uses sc_pkcs15_read_file
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@532 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:59:52 +00:00
okir
d248263d36
- initial support for non-native keys
...
- implemented generic functions sc_pkcs15_{encode,decode,read}_prkey
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@531 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:58:57 +00:00
okir
b63cfcf70d
- renamed sc_pkcs15_parse_pubkey_rsa -> sc_pkcs15_decode_pubkey_rsa
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@530 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:57:29 +00:00
okir
b4d224b5a1
- added SC_ALGORITHM_{MD5,SHA1,PBKDF2,PBES2} and corresponding
...
AlgorithmIdentifier parameter structs
- added params pointer to struct sc_algorithm_id
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@529 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:56:58 +00:00
okir
5eb1921a64
- new error code SC_ERROR_PASSPHRASE_REQUIRED
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@528 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:55:39 +00:00
okir
77a2db5f5e
- Moved ASN.1 handling of AlgorithmIdentifier to separate file
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@527 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:55:06 +00:00
okir
f49cb6b0f1
- implemented encoding of OBJECT IDENTIFIER
...
- enhanced support for encoding/decoding of CHOICE
- moved encoding/decoding of AlgorithmIdentifier to separate file,
and added encoding/decoding of algorithm parameters
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@526 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-17 08:54:36 +00:00
okir
596220e821
- pkcs15-init does not require openssl anymore
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@523 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-15 13:42:10 +00:00
jey
43ecd78941
- Fixed ACL handling in MioCOS driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@521 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-14 12:43:47 +00:00
okir
b6119fc92e
- avoid unchecked memcpy
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@515 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-11 15:13:09 +00:00
okir
34a3912fdf
- in set_security_env, select the PK file prior to read_record
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@514 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-11 15:12:41 +00:00
jey
3ec97d9815
- Added a missing file from a previous commit
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@512 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-10 23:10:47 +00:00
jey
87e27b00a4
- Changed an error code as per Andreas' suggestion
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@511 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-10 23:00:38 +00:00
jey
52c433a7ae
- Added support for Aladdin eToken PRO; patch by
...
Andreas Jellinghaus <aj@dungeon.inka.de>
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@510 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-10 22:25:44 +00:00
okir
2d47103692
- implemented sc_pkcs15_find_so_pin
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@496 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:45:28 +00:00
okir
01e506e5ed
- When the application selected the EF, then the container DF, all
...
PIN info would be lost.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@495 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 15:45:13 +00:00
okir
517395b2eb
- pin flags were not encoded correctly
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@488 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-08 09:23:17 +00:00
aet
2936e46e12
Warning fixes
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@484 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-07 10:21:00 +00:00
jey
5259182d3e
- Changed CLA byte to 0xA0 in miocos_delete_file()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@483 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 15:04:14 +00:00
jey
6e0b7dea2c
- Divided errors into different groups, added new ones
...
and renamed some
- Moved sc_strerror() to errors.c
- Added a 'sensitive' flag to struct sc_apdu
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@479 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 12:02:28 +00:00
aet
f781a14ae4
Fix some typos
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@478 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 08:21:40 +00:00
aet
6efa88796f
Add errors.h and types.h
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@477 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-06 08:02:58 +00:00
aet
11c937991b
Change calling convention for sc_module_close()
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@474 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 18:10:17 +00:00
jey
0875849c61
- Started to split opensc.h into smaller parts
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@472 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 15:06:33 +00:00
jey
22636c2df9
- Added SC_ERROR_FILE_ALREADY_EXISTS
...
- Changed call convention for reader finish()
- CT-API driver now frees its resources correctly
- Added year 2002 to some of the copyright statements
- sc_pkcs15_decipher() and sc_pkcs15_compute_signature()
now select only the parent DF of the private key file
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@463 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 14:46:44 +00:00
aet
076a26bbac
Rework the header structure
...
Currently fails to compile, unless you symlink
all the necessary headers to src/include/opensc
by yourself.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@459 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 13:48:00 +00:00
aet
d81d10ba90
Upgrade sources to use new headers, part #1
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@458 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 10:44:51 +00:00
aet
97faef3c6f
Obsolete.
...
opensc-emv.h, opensc-pkcs15.h --> emv.h, pkcs15.h
sc-asn1.h, sc-internal.h, sc-log.h --> asn1.h, internal.h, log.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@457 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 10:37:29 +00:00
aet
fbf86e6728
Install headers to ${prefix}/include/opensc
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@456 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-05 10:25:14 +00:00
jey
e172e6678d
- Cleaned up MioCOS driver and added PIN code creation
...
- Added an error message in case ODF parsing fails
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@449 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 20:40:40 +00:00
jey
2b49129311
- DER decoder now treats 0xFF tags the same way as 0x00 tags
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@448 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 20:38:09 +00:00
aet
1ef47d245b
Workaround for a compiler problem (Sun WorkShop 6 update 2 C 5.3 Patch 111679-05 2002/02/07)
...
Still lots of bogus warnings, but at least everything compiles
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@444 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 15:02:08 +00:00
aet
6f197a035d
Fix minor compiler warnings
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@441 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 12:44:57 +00:00
aet
7d055a17a3
Update TODO and Changelog
...
'make dist' fixes
Add missing README for OpenSC-Signer
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@440 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 11:14:07 +00:00
jey
d232bf29dd
- ctapi_release() now calls CT_close(), as it should
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@437 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 09:20:44 +00:00
jey
0fe85e6563
- Added typedefs for the most common structs
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@436 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-04 09:20:19 +00:00
jey
28fc4bc0cd
- fixed a typo
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@435 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-03 14:16:19 +00:00
aet
fef2ac364c
Minor warning fix
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@433 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-03 12:59:53 +00:00
okir
0683b3463f
- added two new error codes for pkcs15init
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@426 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-03 11:51:07 +00:00
jey
369889ace5
- fixed a small bug regarding prop_attr in the SetCOS driver
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@425 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 21:26:42 +00:00
okir
4c48335672
- sc_pkcs15_get_objects() now lets you search for generic types
...
(e.g. SC_PKCS15_TYPE_PRKEY) too.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@414 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 12:58:09 +00:00
okir
7a87a5c156
- added SC_AC_SYMBOLIC for pkcs15init support
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@413 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 12:57:17 +00:00
aet
5a824f3fab
Add maintainer-clean patch by Andreas Jellinghaus <aj@dungeon.inka.de>
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@411 c6295689-39f2-0310-b995-f0e70906c6a9
2002-04-02 09:38:06 +00:00
aet
2fbf01e87d
Remove #include "config.h", sc-internal.h already does that
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@409 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-31 16:32:07 +00:00
aet
b308cabd5f
- Upgrade scldap to use scconf_parse_entries();
...
- Fix compiler warnings for ct-api driver, untested.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@407 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-31 15:26:25 +00:00
jey
7ddcb3d692
- sec_attr and prop_attr are now dynamically allocated in
...
struct sc_file
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@404 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-28 14:13:36 +00:00
aet
88530c8dba
- Added sanity check for sc_establish_context.
...
If no readers are found, fail and return
SC_ERROR_NO_READERS_FOUND.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@403 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-28 13:34:51 +00:00
aet
e589a94aac
Add missing @LIBDL@ to libopensc linking
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@402 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-28 13:10:53 +00:00
aet
8f6ffee6a9
- Minor cleanups to build process
...
- Add header check for dlfcn.h
- Add internal functions sc_module_{open,close,get_address}
- Use environ instead __environ for scldap_search, should be
more portable.
- Fix compiler warnings noticed by Tru64 / AIX cc
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@401 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-27 13:13:54 +00:00
aet
19f7f1073a
Rename scconf_init to scconf_new
...
Rename scconf_deinit to scconf_free
Add initial comments to scldap.h
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@398 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-26 20:56:13 +00:00
jey
59d4e9b7be
- Added support for CT-API
...
- Improved config file loading
- Implemented ATR parsing
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@396 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-26 11:38:40 +00:00
aet
b2d2bc77ae
Rename scconf_find_value to scconf_find_list
...
Rename scconf_find_value_first to scconf_get_str
Add functions scconf_get_int and scconf_get_bool
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@395 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-25 22:39:22 +00:00
aet
c69d1b59df
Always allocate scconf_list for block structure
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@394 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-25 21:23:32 +00:00
aet
aa5ec6bae1
Add sanity checks and more comments
...
Add new parameter for scconf_find_blocks
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@393 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-25 20:10:44 +00:00
jey
c730a4dab7
- fixed some memory leaks in sc_establish_context
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@388 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 22:54:41 +00:00
jey
cd4e3650a4
- Moved functions from sc.c to ctx.c
...
- Card and reader drivers are now configurable
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@387 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 22:47:35 +00:00
aet
7d27225e0c
Oops, scconf_parse was called twice. Fixed.
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@382 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 17:09:47 +00:00
aet
21aae9c4d0
- Fix a potential segfault for the new sc_establish_context
...
- Keep the variable names in opensc.conf the same as they
are in code structs.
Always try to parse app default { } first, then upgrade
the settings with the application specific configuration block.
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@381 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 16:57:39 +00:00
aet
0cad904c86
Move opensc/src/scldap/etc to opensc/etc
...
SCLDAP_CONFIG -> SCLDAP_CONF_PATH
Upgrade the rest of the programs to use new core API
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@380 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 15:41:33 +00:00
jey
f21926af00
- Started to add configuration file support to
...
libopensc
- Added typedefs for some basic structs (e.g.
struct sc_card --> sc_card_t)
- Added a second argument to sc_establish_context()
to identify the calling application
- Renamed sc_destroy_context() to sc_release_context()
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@378 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 14:12:38 +00:00
jey
ffe0282a93
- fixed a typo in one ATR string
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@377 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-24 14:06:40 +00:00
aet
6e3a09fa7b
Remove bogus "len = len;" statement from pkcs15-cert
...
Other minor cleanups
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@368 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-21 23:45:03 +00:00
okir
5006b0d151
- added some #include string.h statements for RH 7.2
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@357 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-21 09:36:38 +00:00
okir
8f07d6706d
- now extracting issuer from certificate
...
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@346 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-20 13:08:09 +00:00
jey
3fa7a056f1
- Fixed a couple of memory leaks
...
- Fixed a bug in decoding EF(TokenInfo)
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@344 c6295689-39f2-0310-b995-f0e70906c6a9
2002-03-19 10:04:11 +00:00