mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-02 02:56:52 +00:00
Merge pull request #658 from ljmf00/add-txt-pkcs8-key
Add `PKCS #8` and OpenVPN static key blocks
This commit is contained in:
commit
e35ba8d463
2 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,8 @@ BLACKLIST = [
|
|||
b'PuTTY-User-Key-File-2',
|
||||
b'BEGIN SSH2 ENCRYPTED PRIVATE KEY',
|
||||
b'BEGIN PGP PRIVATE KEY BLOCK',
|
||||
b'BEGIN ENCRYPTED PRIVATE KEY',
|
||||
b'BEGIN OpenVPN Static key V1',
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ TESTS = (
|
|||
(b'-----BEGIN OPENSSH PRIVATE KEY-----', 1),
|
||||
(b'PuTTY-User-Key-File-2: ssh-rsa', 1),
|
||||
(b'---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ----', 1),
|
||||
(b'-----BEGIN ENCRYPTED PRIVATE KEY-----', 1),
|
||||
(b'-----BEGIN OpenVPN Static key V1-----', 1),
|
||||
(b'ssh-rsa DATA', 0),
|
||||
(b'ssh-dsa DATA', 0),
|
||||
# Some arbitrary binary data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue