Skip to content

Commit

Permalink
Replace Oasis headers with public domain headers
Browse files Browse the repository at this point in the history
Fixes latchset#76

Signed-off-by: Simo Sorce <[email protected]>
  • Loading branch information
simo5 committed Nov 6, 2023
1 parent 2e8c26b commit 384914a
Show file tree
Hide file tree
Showing 13 changed files with 2,421 additions and 3,964 deletions.
2 changes: 1 addition & 1 deletion .clang-format-ignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Leave third party code untouched
./src/oasis/*
./src/pkcs11.h
4 changes: 2 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
run-clang-tidy \
-checks=-*,readability-braces-around-statements \
-config "{WarningsAsErrors: '*'}" \
-header-filter "src/oasis" \
-header-filter "src/pkcs11.h" \
-quiet
- name: Check the Style
run: make check-style || (make check-style-show; exit -1)
- name: Check spelling
run: codespell --ignore-words-list="sorce,clen,adin" *.md Makefile.am \
configure.ac src tests -S src/oasis
configure.ac src tests -S src/pkcs11.h
10 changes: 3 additions & 7 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ Copyright: (C) 2022 Simo Sorce <[email protected]>
License: Apache-2.0

#
# OASIS Open PKCS#11 headers
# Public Domain PKCS#11 headers
#

Files: src/oasis/pkcs11.h
src/oasis/pkcs11f.h
src/oasis/pkcs11t.h
Copyright: (c) OASIS Open 2016-2019. All Rights Reserved.
License: LicenseRef-OASIS-IPR
Files: src/pkcs11.h
License: LicenseRef-Public-Domain
27 changes: 0 additions & 27 deletions LICENSES/LicenseRef-OASIS-IPR.txt

This file was deleted.

1 change: 1 addition & 0 deletions LICENSES/LicenseRef-Public-Domain.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file is in the Public Domain
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
This is an Openssl 3.x provider to access Hardware or Software Tokens
using the PKCS#11 Cryptographic Token Interface

This code targets version 3.0 of the interface but should be backwards
This code targets version 3.1 of the interface but should be backwards
compatible to previous versions as well.

Spec:
https://docs.oasis-open.org/pkcs11/pkcs11-base/v3.0/os/pkcs11-base-v3.0-os.html
https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/pkcs11-spec-v3.1.html

See the [wiki](https://github.com/latchset/pkcs11-provider/wiki) for more
documentation.
3 changes: 0 additions & 3 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ noinst_HEADERS = \
kdf.h \
keymgmt.h \
interface.h \
oasis/pkcs11.h \
oasis/pkcs11f.h \
oasis/pkcs11t.h \
objects.h \
pkcs11.h \
platform/endian.h \
Expand Down
9 changes: 0 additions & 9 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,17 +379,11 @@ struct ckmap mechanism_names[] = {
MECH_ENTRY(CKM_CAST3_MAC),
MECH_ENTRY(CKM_CAST3_MAC_GENERAL),
MECH_ENTRY(CKM_CAST3_CBC_PAD),
MECH_ENTRY(CKM_CAST5_KEY_GEN),
MECH_ENTRY(CKM_CAST128_KEY_GEN),
MECH_ENTRY(CKM_CAST5_ECB),
MECH_ENTRY(CKM_CAST128_ECB),
MECH_ENTRY(CKM_CAST5_CBC),
MECH_ENTRY(CKM_CAST128_CBC),
MECH_ENTRY(CKM_CAST5_MAC),
MECH_ENTRY(CKM_CAST128_MAC),
MECH_ENTRY(CKM_CAST5_MAC_GENERAL),
MECH_ENTRY(CKM_CAST128_MAC_GENERAL),
MECH_ENTRY(CKM_CAST5_CBC_PAD),
MECH_ENTRY(CKM_CAST128_CBC_PAD),
MECH_ENTRY(CKM_RC5_KEY_GEN),
MECH_ENTRY(CKM_RC5_ECB),
Expand Down Expand Up @@ -437,9 +431,7 @@ struct ckmap mechanism_names[] = {
MECH_ENTRY(CKM_PBE_MD5_DES_CBC),
MECH_ENTRY(CKM_PBE_MD5_CAST_CBC),
MECH_ENTRY(CKM_PBE_MD5_CAST3_CBC),
MECH_ENTRY(CKM_PBE_MD5_CAST5_CBC),
MECH_ENTRY(CKM_PBE_MD5_CAST128_CBC),
MECH_ENTRY(CKM_PBE_SHA1_CAST5_CBC),
MECH_ENTRY(CKM_PBE_SHA1_CAST128_CBC),
MECH_ENTRY(CKM_PBE_SHA1_RC4_128),
MECH_ENTRY(CKM_PBE_SHA1_RC4_40),
Expand Down Expand Up @@ -516,7 +508,6 @@ struct ckmap mechanism_names[] = {
MECH_ENTRY(CKM_BATON_COUNTER),
MECH_ENTRY(CKM_BATON_SHUFFLE),
MECH_ENTRY(CKM_BATON_WRAP),
MECH_ENTRY(CKM_ECDSA_KEY_PAIR_GEN),
MECH_ENTRY(CKM_EC_KEY_PAIR_GEN),
MECH_ENTRY(CKM_ECDSA),
MECH_ENTRY(CKM_ECDSA_SHA1),
Expand Down
243 changes: 0 additions & 243 deletions src/oasis/pkcs11.h

This file was deleted.

Loading

0 comments on commit 384914a

Please sign in to comment.