Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
acac8601
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
acac8601
编写于
9月 04, 2019
作者:
S
sgehwolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8218780: Update MUSCLE PCSC-Lite header files
Summary: Update the PCSC-lite header files to 1.8.24 release Reviewed-by: andrew
上级
20c5374b
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
492 addition
and
411 deletion
+492
-411
src/share/native/sun/security/smartcardio/pcsc.c
src/share/native/sun/security/smartcardio/pcsc.c
+3
-3
src/solaris/native/sun/security/smartcardio/MUSCLE/pcsclite.h
...solaris/native/sun/security/smartcardio/MUSCLE/pcsclite.h
+248
-316
src/solaris/native/sun/security/smartcardio/MUSCLE/winscard.h
...solaris/native/sun/security/smartcardio/MUSCLE/winscard.h
+82
-49
src/solaris/native/sun/security/smartcardio/MUSCLE/wintypes.h
...solaris/native/sun/security/smartcardio/MUSCLE/wintypes.h
+115
-0
src/solaris/native/sun/security/smartcardio/pcsc_md.h
src/solaris/native/sun/security/smartcardio/pcsc_md.h
+44
-43
未找到文件。
src/share/native/sun/security/smartcardio/pcsc.c
浏览文件 @
acac8601
/*
* Copyright (c) 2005, 201
4
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 201
9
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -179,7 +179,7 @@ JNIEXPORT jobjectArray JNICALL Java_sun_security_smartcardio_PCSC_SCardListReade
{
SCARDCONTEXT
context
=
(
SCARDCONTEXT
)
jContext
;
LONG
rv
;
LP
T
STR
mszReaders
=
NULL
;
LPSTR
mszReaders
=
NULL
;
DWORD
size
=
0
;
jobjectArray
result
;
...
...
@@ -216,7 +216,7 @@ JNIEXPORT jlong JNICALL Java_sun_security_smartcardio_PCSC_SCardConnect
{
SCARDCONTEXT
context
=
(
SCARDCONTEXT
)
jContext
;
LONG
rv
;
LPC
T
STR
readerName
;
LPCSTR
readerName
;
SCARDHANDLE
card
=
0
;
DWORD
proto
=
0
;
...
...
src/solaris/native/sun/security/smartcardio/MUSCLE/pcsclite.h
浏览文件 @
acac8601
此差异已折叠。
点击以展开。
src/solaris/native/sun/security/smartcardio/MUSCLE/winscard.h
浏览文件 @
acac8601
/*
* This handles smartcard reader communications.
*
* MUSCLE SmartCard Development ( http://www.linuxnet.com )
* MUSCLE SmartCard Development ( https://pcsclite.apdu.fr/ )
*
* Copyright (C) 1999-2003
* David Corcoran <corcoran@linuxnet.com>
* David Corcoran <corcoran@musclecard.com>
* Copyright (C) 2002-2009
* Ludovic Rousseau <ludovic.rousseau@free.fr>
*
* $Id: winscard.h,v 1.13 2004/08/06 12:12:19 rousseau Exp $
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* @file
* @brief This handles smart card reader communications.
*/
#ifndef __winscard_h__
...
...
@@ -20,71 +45,79 @@ extern "C"
{
#endif
LONG
SCardEstablishContext
(
DWORD
dwScope
,
LPCVOID
pvReserved1
,
LPCVOID
pvReserved2
,
LPSCARDCONTEXT
phContext
);
#ifndef PCSC_API
#define PCSC_API
#endif
LONG
SCardReleaseContext
(
SCARDCONTEXT
hContext
);
PCSC_API
LONG
SCardEstablishContext
(
DWORD
dwScope
,
/*@null@*/
LPCVOID
pvReserved1
,
/*@null@*/
LPCVOID
pvReserved2
,
/*@out@*/
LPSCARDCONTEXT
phContext
);
LONG
SCardSetTimeout
(
SCARDCONTEXT
hContext
,
DWORD
dwTimeou
t
);
PCSC_API
LONG
SCardReleaseContext
(
SCARDCONTEXT
hContex
t
);
LONG
SCardConnect
(
SCARDCONTEXT
hContext
,
LPCTSTR
szReader
,
DWORD
dwShareMode
,
DWORD
dwPreferredProtocols
,
LPSCARDHANDLE
phCard
,
LPDWORD
pdwActiveProtocol
);
PCSC_API
LONG
SCardIsValidContext
(
SCARDCONTEXT
hContext
);
LONG
SCardReconnect
(
SCARDHANDLE
hCard
,
DWORD
dwShareMode
,
DWORD
dwPreferredProtocols
,
DWORD
dwInitialization
,
LPDWORD
pdwActiveProtocol
);
PCSC_API
LONG
SCardConnect
(
SCARDCONTEXT
hContext
,
LPCSTR
szReader
,
DWORD
dwShareMode
,
DWORD
dwPreferredProtocols
,
/*@out@*/
LPSCARDHANDLE
phCard
,
/*@out@*/
LPDWORD
pdwActiveProtocol
);
LONG
SCardDisconnect
(
SCARDHANDLE
hCard
,
DWORD
dwDisposition
);
PCSC_API
LONG
SCardReconnect
(
SCARDHANDLE
hCard
,
DWORD
dwShareMode
,
DWORD
dwPreferredProtocols
,
DWORD
dwInitialization
,
/*@out@*/
LPDWORD
pdwActiveProtocol
);
LONG
SCardBeginTransaction
(
SCARDHANDLE
hCard
);
PCSC_API
LONG
SCardDisconnect
(
SCARDHANDLE
hCard
,
DWORD
dwDisposition
);
LONG
SCardEndTransaction
(
SCARDHANDLE
hCard
,
DWORD
dwDisposition
);
PCSC_API
LONG
SCardBeginTransaction
(
SCARDHANDLE
hCard
);
LONG
SCardCancelTransaction
(
SCARDHANDLE
hCard
);
PCSC_API
LONG
SCardEndTransaction
(
SCARDHANDLE
hCard
,
DWORD
dwDisposition
);
LONG
SCardStatus
(
SCARDHANDLE
hCard
,
LPTSTR
mszReaderNames
,
LPDWORD
pcchReaderLen
,
LPDWORD
pdwState
,
LPDWORD
pdwProtocol
,
LPBYTE
pbAtr
,
LPDWORD
pcbAtrLen
);
PCSC_API
LONG
SCardStatus
(
SCARDHANDLE
hCard
,
/*@null@*/
/*@out@*/
LPSTR
mszReaderName
,
/*@null@*/
/*@out@*/
LPDWORD
pcchReaderLen
,
/*@null@*/
/*@out@*/
LPDWORD
pdwState
,
/*@null@*/
/*@out@*/
LPDWORD
pdwProtocol
,
/*@null@*/
/*@out@*/
LPBYTE
pbAtr
,
/*@null@*/
/*@out@*/
LPDWORD
pcbAtrLen
);
LONG
SCardGetStatusChange
(
SCARDCONTEXT
hContext
,
DWORD
dwTimeout
,
LPSCARD_READERSTATE_A
rgReaderStates
,
DWORD
cReaders
);
PCSC_API
LONG
SCardGetStatusChange
(
SCARDCONTEXT
hContext
,
DWORD
dwTimeout
,
SCARD_READERSTATE
*
rgReaderStates
,
DWORD
cReaders
);
LONG
SCardControl
(
SCARDHANDLE
hCard
,
DWORD
dwControlCode
,
LPCVOID
pbSendBuffer
,
DWORD
cbSendLength
,
LPVOID
pbRecvBuffer
,
DWORD
cbRecvLength
,
LPDWORD
lpBytesReturned
);
PCSC_API
LONG
SCardControl
(
SCARDHANDLE
hCard
,
DWORD
dwControlCode
,
LPCVOID
pbSendBuffer
,
DWORD
cbSendLength
,
/*@out@*/
LPVOID
pbRecvBuffer
,
DWORD
cbRecvLength
,
LPDWORD
lpBytesReturned
);
LONG
SCardTransmit
(
SCARDHANDLE
hCard
,
LPCSCARD_IO_REQUEST
pioSendPci
,
LPCBYTE
pbSendBuffer
,
DWORD
cbSendLength
,
LPSCARD_IO_REQUEST
pioRecvPci
,
LPBYTE
pbRecvBuffer
,
LPDWORD
pcbRecvLength
);
PCSC_API
LONG
SCardTransmit
(
SCARDHANDLE
hCard
,
const
SCARD_IO_REQUEST
*
pioSendPci
,
LPCBYTE
pbSendBuffer
,
DWORD
cbSendLength
,
/*@out@*/
SCARD_IO_REQUEST
*
pioRecvPci
,
/*@out@*/
LPBYTE
pbRecvBuffer
,
LPDWORD
pcbRecvLength
);
LONG
SCardListReaderGroups
(
SCARDCONTEXT
hContext
,
LPT
STR
mszGroups
,
LPDWORD
pcchGroups
);
PCSC_API
LONG
SCardListReaderGroups
(
SCARDCONTEXT
hContext
,
/*@out@*/
LP
STR
mszGroups
,
LPDWORD
pcchGroups
);
LONG
SCardListReaders
(
SCARDCONTEXT
hContext
,
LPCTSTR
mszGroups
,
LPTSTR
mszReaders
,
LPDWORD
pcchReaders
);
PCSC_API
LONG
SCardListReaders
(
SCARDCONTEXT
hContext
,
/*@null@*/
/*@out@*/
LPCSTR
mszGroups
,
/*@null@*/
/*@out@*/
LPSTR
mszReaders
,
/*@out@*/
LPDWORD
pcchReaders
);
LONG
SCardCancel
(
SCARDCONTEXT
hContext
);
PCSC_API
LONG
SCardFreeMemory
(
SCARDCONTEXT
hContext
,
LPCVOID
pvMem
);
LONG
SCardGetAttrib
(
SCARDHANDLE
hCard
,
DWORD
dwAttrId
,
LPBYTE
pbAttr
,
LPDWORD
pcbAttrLen
);
PCSC_API
LONG
SCardCancel
(
SCARDCONTEXT
hContext
);
LONG
SCardSetAttrib
(
SCARDHANDLE
hCard
,
DWORD
dwAttrId
,
LPCBYTE
pbAttr
,
DWORD
cbAttrLen
);
PCSC_API
LONG
SCardGetAttrib
(
SCARDHANDLE
hCard
,
DWORD
dwAttrId
,
/*@out@*/
LPBYTE
pbAttr
,
LPDWORD
p
cbAttrLen
);
void
SCardUnload
(
void
);
PCSC_API
LONG
SCardSetAttrib
(
SCARDHANDLE
hCard
,
DWORD
dwAttrId
,
LPCBYTE
pbAttr
,
DWORD
cbAttrLen
);
#ifdef __cplusplus
}
#endif
#endif
src/solaris/native/sun/security/smartcardio/MUSCLE/
COPYING
→
src/solaris/native/sun/security/smartcardio/MUSCLE/
wintypes.h
浏览文件 @
acac8601
Copyright (c) 1999-2003 David Corcoran <corcoran@linuxnet.com>
All rights reserved.
/*
* MUSCLE SmartCard Development ( https://pcsclite.apdu.fr/ )
*
* Copyright (C) 1999
* David Corcoran <corcoran@musclecard.com>
* Copyright (C) 2002-2011
* Ludovic Rousseau <ludovic.rousseau@free.fr>
*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
...
...
@@ -13,9 +18,6 @@ are met:
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
Changes to this license can be made only by the copyright author with
explicit written consent.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
...
...
@@ -26,3 +28,88 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* @file
* @brief This keeps a list of Windows(R) types.
*/
#ifndef __wintypes_h__
#define __wintypes_h__
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef __APPLE__
#include <stdint.h>
#ifndef BYTE
typedef
uint8_t
BYTE
;
#endif
typedef
uint8_t
UCHAR
;
typedef
UCHAR
*
PUCHAR
;
typedef
uint16_t
USHORT
;
#ifndef __COREFOUNDATION_CFPLUGINCOM__
typedef
uint32_t
ULONG
;
typedef
void
*
LPVOID
;
typedef
int16_t
BOOL
;
#endif
typedef
ULONG
*
PULONG
;
typedef
const
void
*
LPCVOID
;
typedef
uint32_t
DWORD
;
typedef
DWORD
*
PDWORD
;
typedef
uint16_t
WORD
;
typedef
int32_t
LONG
;
typedef
const
char
*
LPCSTR
;
typedef
const
BYTE
*
LPCBYTE
;
typedef
BYTE
*
LPBYTE
;
typedef
DWORD
*
LPDWORD
;
typedef
char
*
LPSTR
;
#else
#ifndef BYTE
typedef
unsigned
char
BYTE
;
#endif
typedef
unsigned
char
UCHAR
;
typedef
UCHAR
*
PUCHAR
;
typedef
unsigned
short
USHORT
;
#ifndef __COREFOUNDATION_CFPLUGINCOM__
typedef
unsigned
long
ULONG
;
typedef
void
*
LPVOID
;
#endif
typedef
const
void
*
LPCVOID
;
typedef
unsigned
long
DWORD
;
typedef
DWORD
*
PDWORD
;
typedef
long
LONG
;
typedef
const
char
*
LPCSTR
;
typedef
const
BYTE
*
LPCBYTE
;
typedef
BYTE
*
LPBYTE
;
typedef
DWORD
*
LPDWORD
;
typedef
char
*
LPSTR
;
/* these types were deprecated but still used by old drivers and
* applications. So just declare and use them. */
typedef
LPSTR
LPTSTR
;
typedef
LPCSTR
LPCTSTR
;
/* types unused by pcsc-lite */
typedef
short
BOOL
;
typedef
unsigned
short
WORD
;
typedef
ULONG
*
PULONG
;
#endif
#ifdef __cplusplus
}
#endif
#endif
src/solaris/native/sun/security/smartcardio/pcsc_md.h
浏览文件 @
acac8601
/*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005,
2019,
Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -23,48 +23,49 @@
* questions.
*/
typedef
LONG
(
*
FPTR_SCardEstablishContext
)(
ULONG
dwScope
,
const
void
*
pvReserved1
,
const
void
*
pvReserved2
,
LONG
*
phContext
);
typedef
LONG
(
*
FPTR_SCardConnect
)(
LONG
hContext
,
const
char
*
szReader
,
ULONG
dwShareMode
,
ULONG
dwPreferredProtocols
,
LONG
*
phCard
,
ULONG
*
pdwActiveProtocol
);
typedef
LONG
(
*
FPTR_SCardDisconnect
)(
LONG
hCard
,
ULONG
dwDisposition
);
typedef
LONG
(
*
FPTR_SCardStatus
)(
LONG
hCard
,
char
*
mszReaderNames
,
ULONG
*
pcchReaderLen
,
ULONG
*
pdwState
,
ULONG
*
pdwProtocol
,
unsigned
char
*
pbAtr
,
ULONG
*
pcbAtrLen
);
typedef
LONG
(
*
FPTR_SCardGetStatusChange
)(
LONG
hContext
,
ULONG
dwTimeout
,
LPSCARD_READERSTATE_A
rgReaderStates
,
ULONG
cReaders
);
typedef
LONG
(
*
FPTR_SCardTransmit
)(
LONG
hCard
,
LPCSCARD_IO_REQUEST
pioSendPci
,
const
unsigned
char
*
pbSendBuffer
,
ULONG
cbSendLength
,
LPSCARD_IO_REQUEST
pioRecvPci
,
unsigned
char
*
pbRecvBuffer
,
ULONG
*
pcbRecvLength
);
typedef
LONG
(
*
FPTR_SCardListReaders
)(
LONG
hContext
,
const
char
*
mszGroups
,
char
*
mszReaders
,
ULONG
*
pcchReaders
);
typedef
LONG
(
*
FPTR_SCardBeginTransaction
)(
LONG
hCard
);
typedef
LONG
(
*
FPTR_SCardEndTransaction
)(
LONG
hCard
,
ULONG
dwDisposition
);
typedef
LONG
(
*
FPTR_SCardControl
)(
LONG
hCard
,
ULONG
dwControlCode
,
const
void
*
pbSendBuffer
,
ULONG
cbSendLength
,
const
void
*
pbRecvBuffer
,
ULONG
pcbRecvLength
,
ULONG
*
lpBytesReturned
);
typedef
LONG
(
*
FPTR_SCardEstablishContext
)(
DWORD
dwScope
,
LPCVOID
pvReserved1
,
LPCVOID
pvReserved2
,
LPSCARDCONTEXT
phContext
);
typedef
LONG
(
*
FPTR_SCardConnect
)(
SCARDCONTEXT
hContext
,
LPCSTR
szReader
,
DWORD
dwShareMode
,
DWORD
dwPreferredProtocols
,
LPSCARDHANDLE
phCard
,
LPDWORD
pdwActiveProtocol
);
typedef
LONG
(
*
FPTR_SCardDisconnect
)(
SCARDHANDLE
hCard
,
DWORD
dwDisposition
);
typedef
LONG
(
*
FPTR_SCardStatus
)(
SCARDHANDLE
hCard
,
LPSTR
mszReaderNames
,
LPDWORD
pcchReaderLen
,
LPDWORD
pdwState
,
LPDWORD
pdwProtocol
,
LPBYTE
pbAtr
,
LPDWORD
pcbAtrLen
);
typedef
LONG
(
*
FPTR_SCardGetStatusChange
)(
SCARDCONTEXT
hContext
,
DWORD
dwTimeout
,
SCARD_READERSTATE
*
rgReaderStates
,
DWORD
cReaders
);
typedef
LONG
(
*
FPTR_SCardTransmit
)(
SCARDHANDLE
hCard
,
const
SCARD_IO_REQUEST
*
pioSendPci
,
LPCBYTE
pbSendBuffer
,
DWORD
cbSendLength
,
SCARD_IO_REQUEST
*
pioRecvPci
,
LPBYTE
pbRecvBuffer
,
LPDWORD
pcbRecvLength
);
typedef
LONG
(
*
FPTR_SCardListReaders
)(
SCARDCONTEXT
hContext
,
LPCSTR
mszGroups
,
LPSTR
mszReaders
,
LPDWORD
pcchReaders
);
typedef
LONG
(
*
FPTR_SCardBeginTransaction
)(
SCARDHANDLE
hCard
);
typedef
LONG
(
*
FPTR_SCardEndTransaction
)(
SCARDHANDLE
hCard
,
DWORD
dwDisposition
);
typedef
LONG
(
*
FPTR_SCardControl
)(
SCARDHANDLE
hCard
,
DWORD
dwControlCode
,
LPCVOID
pbSendBuffer
,
DWORD
cbSendLength
,
LPVOID
pbRecvBuffer
,
DWORD
pcbRecvLength
,
LPDWORD
lpBytesReturned
);
#define CALL_SCardEstablishContext(dwScope, pvReserved1, pvReserved2, phContext) \
((scardEstablishContext)(dwScope, pvReserved1, pvReserved2, phContext))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录