diff --git a/index.html b/index.html index 759467a..3c20c6b 100644 --- a/index.html +++ b/index.html @@ -881,6 +881,8 @@
[[comm]]
to comm.
[[context]]
to
this.
+ [[activeProtocol]]
to
+ activeProtocol.
connection
"] to
connection.null
SmartCardContext
that created this instance.DWORD
, as returned by the platform's
+ [PCSC5] implementation.The transmit
(sendBuffer)
method steps
+ are:
[[context]]
.[[operationInProgress]]
+ is true
, reject promise with a "InvalidStateError
"
+ DOMException
and return promise.[[comm]]
is null
, reject
+ promise with a "InvalidStateError
" DOMException
and return
+ promise.[[activeProtocol]]
is not a
+ valid protocol value, reject promise
+ with a "InvalidStateError
" DOMException
and return
+ promise.[[context]]
.[[operationInProgress]]
+ to true
.SCARD_IO_HEADER
corresponding to
+ this.[[activeProtocol]]
.BYTE[]
+ containing sendBuffer.SCARD_IO_HEADER
+ equivalent of empty or null.BYTE[]
big enough to hold
+ the largest [ISO7186-3] extended response APDU (65538 bytes).DWORD
set to 0
.[[comm]]
.Transmit()
+ with sendPci, pcscSendBuffer, recvPci, recvBuffer and
+ recvLength as arguments.RESPONSECODE
.[[context]]
.[[operationInProgress]]
+ to false
.SCARD_S_SUCCESS
, reject
+ promise with a DOMException
+ corresponding
to responseCode and abort
+ these steps.ArrayBuffer
containing
+ the first recvLength bytes of recvBuffer.Starts a transaction. The Transaction is ended when the Promise
returned by the given callback settles.
WebIDLdictionary SmartCardTransactionOptions
{
@@ -1148,7 +1209,7 @@ Web Smart Card API
Queries the host's PC/SC stack about the current connection status.
- Issue 3Write an algorithm for this method.
+ Issue 2Write an algorithm for this method.
WebIDLdictionary SmartCardConnectionStatus
{
@@ -1210,17 +1271,17 @@ Web Smart Card API
commands. The returned Promise
might contain output data, if applicable
for the given control code. Otherwise the returned buffer will be
empty.
- Issue 4Write an algorithm for this method.
+ Issue 3Write an algorithm for this method.
Queries a card reader's attribute or capability value, given its tag.
- Issue 5Write an algorithm for this method.
+ Issue 4Write an algorithm for this method.
Sets a card reader's attribute or capability.
- Issue 6Write an algorithm for this method.
+ Issue 5Write an algorithm for this method.
@@ -1475,6 +1536,8 @@ Web Smart Card API
§ 4.3 connect() method