Skip to content

Commit

Permalink
8331959: Update PKCS#11 Cryptographic Token Interface to v3.1
Browse files Browse the repository at this point in the history
Backport-of: b4ab290fd7c3d914154755a1539b48ba33338c26
  • Loading branch information
GoeLin committed Dec 17, 2024
1 parent 159bd1c commit e3b2638
Show file tree
Hide file tree
Showing 4 changed files with 215 additions and 131 deletions.
24 changes: 14 additions & 10 deletions src/jdk.crypto.cryptoki/share/legal/pkcs11cryptotoken.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
## OASIS PKCS #11 Cryptographic Token Interface v3.0
## OASIS PKCS #11 Cryptographic Token Interface v3.1

### OASIS PKCS #11 Cryptographic Token Interface License
<pre>

Copyright © OASIS Open 2020. All Rights Reserved.
Copyright © OASIS Open 2023. All Rights Reserved.

All capitalized terms in the following text have the meanings
All capitalized terms in the following text have the meanings
assigned to them in the OASIS Intellectual Property Rights Policy (the
"OASIS IPR Policy"). The full Policy may be found at the OASIS website:
[http://www.oasis-open.org/policies-guidelines/ipr]
[https://www.oasis-open.org/policies-guidelines/ipr/].

This document and translations of it may be copied and furnished to
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it or
assist in its implementation may be prepared, copied, published, and
distributed, in whole or in part, without restriction of any kind,
Expand All @@ -23,10 +23,10 @@ Committee (in which case the rules applicable to copyrights, as set
forth in the OASIS IPR Policy, must be followed) or as required to
translate it into languages other than English.

The limited permissions granted above are perpetual and will not be
The limited permissions granted above are perpetual and will not be
revoked by OASIS or its successors or assigns.

This document and the information contained herein is provided on an
This document and the information contained herein is provided on an
"AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED
Expand All @@ -35,15 +35,19 @@ AND ITS MEMBERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THIS DOCUMENT OR ANY
PART THEREOF.

[OASIS requests that any OASIS Party or any other party that
As stated in the OASIS IPR Policy, the following three paragraphs in
brackets apply to OASIS Standards Final Deliverable documents (Committee
Specifications, OASIS Standards, or Approved Errata).

[OASIS requests that any OASIS Party or any other party that
believes it has patent claims that would necessarily be infringed by
implementations of this OASIS Standards Final Deliverable, to notify
OASIS TC Administrator and provide an indication of its willingness to
grant patent licenses to such patent claims in a manner consistent with
the IPR Mode of the OASIS Technical Committee that produced this
deliverable.]

[OASIS invites any party to contact the OASIS TC Administrator if it
[OASIS invites any party to contact the OASIS TC Administrator if it
is aware of a claim of ownership of any patent claims that would
necessarily be infringed by implementations of this OASIS Standards
Final Deliverable by a patent holder that is not willing to provide a
Expand All @@ -52,7 +56,7 @@ of the OASIS Technical Committee that produced this OASIS Standards
Final Deliverable. OASIS may include such claims on its website, but
disclaims any obligation to do so.]

[OASIS takes no position regarding the validity or scope of any
[OASIS takes no position regarding the validity or scope of any
intellectual property or other rights that might be claimed to pertain
to the implementation or use of the technology described in this OASIS
Standards Final Deliverable or the extent to which any license under
Expand Down
18 changes: 10 additions & 8 deletions src/jdk.crypto.cryptoki/share/native/libj2pkcs11/pkcs11.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
/* Copyright (c) OASIS Open 2016-2019. All Rights Reserved.
* Distributed under the terms of the OASIS IPR Policy,
* [http://www.oasis-open.org/policies-guidelines/ipr], AS-IS, WITHOUT ANY
* IMPLIED OR EXPRESS WARRANTY; there is no warranty of MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE or NONINFRINGEMENT of the rights of others.
/*
* PKCS #11 Specification Version 3.1
* OASIS Standard
* 23 July 2023
* Copyright (c) OASIS Open 2023. All Rights Reserved.
* Source: https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/os/include/pkcs11-v3.1/
* Latest stage of narrative specification: https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/pkcs11-spec-v3.1.html
* TC IPR Statement: https://www.oasis-open.org/committees/pkcs11/ipr.php
*/

#ifndef _PKCS11_H_
Expand Down Expand Up @@ -47,7 +50,7 @@ extern "C" {
*
* typedef CK_BYTE CK_PTR CK_BYTE_PTR;
*
* If you're using windows, it might be defined by:
* If you're using Windows, it might be defined by:
*
* #define CK_PTR *
*
Expand All @@ -65,7 +68,7 @@ extern "C" {
* CK_VOID_PTR pReserved
* );
*
* If you're using Windows to declare a function in a Win32 cryptoki .dll,
* If you're using Windows to declare a function in a Win32 Cryptoki .dll,
* it might be defined by:
*
* #define CK_DECLARE_FUNCTION(returnType, name) \
Expand Down Expand Up @@ -241,4 +244,3 @@ struct CK_FUNCTION_LIST {

#endif /* _PKCS11_H_ */


17 changes: 8 additions & 9 deletions src/jdk.crypto.cryptoki/share/native/libj2pkcs11/pkcs11f.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/* Copyright (c) OASIS Open 2016, 2019. All Rights Reserved./
* /Distributed under the terms of the OASIS IPR Policy,
* [http://www.oasis-open.org/policies-guidelines/ipr], AS-IS, WITHOUT ANY
* IMPLIED OR EXPRESS WARRANTY; there is no warranty of MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE or NONINFRINGEMENT of the rights of others.
*/

/* Latest version of the specification:
* http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/pkcs11-base-v2.40.html
/*
* PKCS #11 Specification Version 3.1
* OASIS Standard
* 23 July 2023
* Copyright (c) OASIS Open 2023. All Rights Reserved.
* Source: https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/os/include/pkcs11-v3.1/
* Latest stage of narrative specification: https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/pkcs11-spec-v3.1.html
* TC IPR Statement: https://www.oasis-open.org/committees/pkcs11/ipr.php
*/

/* This header file contains pretty much everything about all the
Expand Down
Loading

1 comment on commit e3b2638

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.