Peter Marschall
9616ad4d94
opensc-explorer: fix&clarify handling of interactive mode
...
* make 'interactive' a global variable
* set it when opensc was called with the SCRIPT argument
* document the behaviour in the manual page
Make interactive a global variable and set it in main.
2018-09-24 00:03:13 +02:00
Peter Marschall
c5679bfe39
opensc-explorer: refactor read_cmdline()
...
* add comments
* simplify #ifdef logic
* increase commandline buffer in non-interactive / non-readline case
2018-09-24 00:03:13 +02:00
Peter Marschall
ca9538761b
opensc-explorer: refactor parse_cmdline()
...
* add comments
* always terminate argv[] with a NULL element
* fail if number of arguments is too large
2018-09-24 00:03:13 +02:00
Peter Marschall
c9db3f7385
opensc-explorer: allow arguments for 'help'
...
When arguments are given, compare them like ambguous_match() does,
and show the matching ones only.
Add documentation of the 'help' command to the manual page.
In main loop on multiple matches, show help on matching commands only.
2018-09-24 00:03:13 +02:00
Peter Marschall
c817be8faa
opensc-explorer: refactor ambiguous_match()
...
* most importantly: immediately return success on exact match
- this allows one command to be a prefix of another one
- it fixes the long-standing breakage between 'find' and 'find_tags'
* fail on second prefix-only match instead of waiting until the end
* check all parameters
* add comments
* inform caller on whether the match was ambiguous or there was no match
* move printing error messages to processing loopt in main()
2018-09-24 00:03:13 +02:00
Peter Marschall
593a90f64e
opensc-explorer: write error messages to stderr
...
Clarify the distinction between error messages and status messages or prompts.
Prepare for better non-interactive support.
2018-09-24 00:03:13 +02:00
Peter Marschall
77297f7965
opensc-explorer: check length of argument to option --mf
...
* fail when it is too long
* replace a magic numerical constant
2018-09-24 00:03:13 +02:00
Peter Marschall
bd97c2b139
opensc-explorer: clarify command parsing in manual page
2018-09-24 00:03:13 +02:00
Peter Marschall
9d501766b4
opensc-explorer: extend 'random' to allow writing to a file
...
Accept a file name as a second argument to the 'random' command
to allow storing the generated random bytes to the file given.
Forbid writing binary data to stdout in interactive mode.
2018-09-24 00:03:13 +02:00
Peter Marschall
7a4a9f1951
opensc-explorer: refactor do_put() slightly
...
Avoid misunderstandings by renaming a variable that refers to an
input file handle from 'outf' to 'inf'.
2018-09-24 00:03:13 +02:00
Peter Marschall
1245b617d1
opensc-explorer: refactor do_apdu() slightly
...
* limit buffer to SC_MAX_EXT_APDU_BUFFER_SIZE
* fix buffer length calculation to correctly calculate the available space
* add length checks when parsing passed data into buffer
2018-09-24 00:03:13 +02:00
Peter Marschall
58da74bc32
opensc-explorer: refactor do_put_data() slightly
...
* increase input buffer size
* avoid magic number
* notify caller on error details when parsing fails
2018-09-24 00:03:13 +02:00
Peter Marschall
aed4b00145
opensc-explorer: harmonize display of command arguments
...
* consistently show ellipsis for repeatable arguments as 3 dots
* embrace alternative mandatory arguments with curly braces
* use hyphens instead of spaces within non-literal arguments
for improved alignment with the manual page
2018-09-24 00:03:13 +02:00
Peter Marschall
fa2421c89d
opensc-explorer: overhaul man page
...
- harmonize structure
- add missing commands (e.g. '#')
- extend description of commands
- fix description of commands (e.g. 'do_put')
2018-09-24 00:03:13 +02:00
Peter Marschall
c69f10c2ab
opensc-explorer: add command 'pin_info'
...
Get information on a PIN or key from the card via sc_pin_cmd()'s
SC_PIN_CMD_GET_INFO functionality.
2018-09-24 00:03:13 +02:00
Jakub Jelen
9d44adbc4e
Missing header release tarball
2018-09-14 22:39:57 +02:00
Frank Morgner
4fad530e9a
appveyor: fixed msi naming
2018-09-14 08:32:11 +02:00
Frank Morgner
00d1501ae6
pkcs11: fail in C_CreateObject/C_DestroyObject if write protected
2018-09-14 08:23:08 +02:00
Frank Morgner
129946ca96
pkcs11: CKF_WRITE_PROTECTED based on card's read_only flag
...
uses `md_read_only` as `read_only` for both, PKCS#11 and Minidriver
2018-09-14 08:23:08 +02:00
Frank Morgner
db4ed9f4a2
export _sc_match_atr_block
2018-09-14 08:23:08 +02:00
Frank Morgner
e36c1468e5
md: derive md_read_only from PKCS#15 profile
2018-09-14 08:23:08 +02:00
Priit Laes
1f06a76b1a
openssl: Bump openssl requirement to 0.9.8
2018-09-14 08:21:40 +02:00
Priit Laes
9fa730bb95
openssl: PKG_CHECK_MODULES can take a list of packages. Use this for openssl
2018-09-14 08:21:40 +02:00
Priit Laes
9d16e6e177
openssl: Use define for openssl minimum version specification
2018-09-14 08:21:40 +02:00
Frank Morgner
f1691fc91f
updated NEWS
2018-09-13 13:47:21 +02:00
Frank Morgner
3750d70106
pgp: detect gnuk with newer fw
...
closes https://github.com/OpenSC/OpenSC/issues/1475
2018-09-13 13:46:27 +02:00
Jakub Jelen
f885ee4a17
opensc.conf: Make the example syntax correct
2018-09-12 21:24:39 +02:00
Frank Morgner
66fe060363
fixed gcc 8 compiler waring
...
closes https://github.com/OpenSC/OpenSC/pull/1474
2018-09-12 13:10:06 +02:00
Raul Metsma
430a9b3f5a
Commit c463985fed
broke EstEID PIN verify
...
Signed-off-by: Raul Metsma <raul@metsma.ee>
2018-09-12 12:30:05 +02:00
Frank Morgner
719d2cbe21
Updated NEWS
2018-09-12 09:45:19 +02:00
Frank Morgner
83c0bff640
pgp: added new ATRs to windows installer
2018-09-11 22:18:19 +02:00
Alon Bar-Lev
d8a2a7bf88
reader-ctapi: ctapi_connect: remove unused variable
...
from day 1 return value of _sc_parse_atr was ignored.
2018-09-09 14:55:28 +02:00
alex-nitrokey
083c18045e
Make deciphering with AUT-key possible for OpenPGP Card >v3.2 ( fixes #1352 ) ( #1446 )
2018-09-06 10:57:23 +02:00
alex-nitrokey
748234b7cc
Fix SM algorithm in extended capabilities
2018-09-05 23:42:14 +02:00
Frank Morgner
012a425819
fixed generating files documentation
2018-09-05 23:18:55 +02:00
Frank Morgner
ea2024decf
appveyor: fix release build
2018-09-05 09:59:00 +02:00
Frank Morgner
3352960265
fixed maintainer-clean target
2018-09-05 08:55:14 +02:00
Frank Morgner
62a2847300
add missing files.xml to distribution
2018-09-04 13:55:19 +02:00
Frank Morgner
39bd1ddd58
fixed wrong condition
...
fixes https://github.com/OpenSC/OpenSC/issues/1465
2018-09-04 13:51:40 +02:00
Frank Morgner
ddec3a437c
remove -Release in windows artifact
2018-08-31 16:38:51 +02:00
Frank Morgner
e238f4d6fb
don't include tag in windows artifact
2018-08-31 16:38:51 +02:00
alex-nitrokey
b572b383b2
Add supported algorithms for OpenPGP Card ( Fixes #1432 ) ( #1442 )
2018-08-31 14:38:14 +02:00
asc
2b60a0db0f
Add support for SmartCard-HSM 4K (V3.0)
2018-08-31 13:42:44 +02:00
Frank Morgner
972f9eb35b
fixed PKCS11-Spy dll default
...
fixes https://github.com/OpenSC/OpenSC/issues/1464
2018-08-31 13:36:33 +02:00
Frank Morgner
c79adb6c11
include PACKAGE_NAME in msi instead of VSVER
...
uploads nightly only for VS12 build
2018-08-31 13:34:33 +02:00
Frank Morgner
a3ca935b16
win32: use standard build of zlib
...
fixes https://github.com/OpenSC/OpenSC/issues/1461
2018-08-31 13:34:33 +02:00
Frank Morgner
0ddfd2d521
deploy only when on master
2018-08-30 22:06:21 +02:00
asc
0ab5b92dc5
Allow building tests on Ubuntu 16.04, which has libcmocka 1.0.1 ( #1405 )
2018-08-30 13:27:36 +02:00
Frank Morgner
b5a6f9aa6e
prepare 0.19.0
2018-08-27 13:40:20 +02:00
Frank Morgner
db438f61c1
ias/ecc: fixed GET CHALLENGE
2018-08-24 13:59:03 +02:00