mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
sm: Complete rewrite of the PKCS#12 parser
* sm/minip12.c: Reworked most of the parser. (p12_set_verbosity): Add arg debug and change all callers. * sm/t-minip12.c: New. * sm/Makefile.am (module_maint): Add it. * tests/samplekeys/Description-p12: New. * tests/samplekeys/t5793-openssl.pfx: New from T5793. * tests/samplekeys/t5793-test.pfx: Ditto. * tests/samplekeys/Description-p12: Add them. * tests/Makefile.am (EXTRA_DIST): Add samplekeys. -- GnuPG-bug-id: 6536 Backported_from:101433dfb4
Backported_from:5f694dc0be
This commit is contained in:
parent
1b4247e010
commit
a6dad932f4
11 changed files with 2207 additions and 832 deletions
|
@ -39,12 +39,18 @@ EXTRA_DIST = runtest inittests $(testscripts) ChangeLog-2011 \
|
|||
fake-pinentries/fake-pinentry.pl \
|
||||
fake-pinentries/fake-pinentry.py \
|
||||
fake-pinentries/fake-pinentry.sh \
|
||||
samplekeys/Description-p12 \
|
||||
samplekeys/steed-self-signing-nonthority.pem \
|
||||
samplekeys/68A638998DFABAC510EA645CE34F9686B2EDF7EA.key \
|
||||
samplekeys/32100C27173EF6E9C4E9A25D3D69F86D37A4F939.key \
|
||||
samplekeys/cert_g10code_pete1.pem \
|
||||
samplekeys/cert_g10code_test1.pem \
|
||||
samplekeys/cert_g10code_theo1.pem \
|
||||
samplekeys/ov-user.p12 \
|
||||
samplekeys/ov-server.p12 \
|
||||
samplekeys/opensc-test.p12 \
|
||||
samplekeys/t5793-openssl.pfx \
|
||||
samplekeys/t5793-test.pfx \
|
||||
run-tests.scm
|
||||
|
||||
# We used to run $(testscripts) here but these asschk scripts are not
|
||||
|
|
32
tests/samplekeys/Description-p12
Normal file
32
tests/samplekeys/Description-p12
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Description-p12 - Machine readable description of our P12 test vectors
|
||||
|
||||
Name: ov-user.p12
|
||||
Desc: Private test key from www.openvalidation.org
|
||||
Pass: start
|
||||
Cert: 4753a910e0c8b4caa8663ca0e4273a884eb5397d
|
||||
Key: 93be89edd11214ab74280d988a665b6beef876c5
|
||||
|
||||
Name: ov-server.p12
|
||||
Desc: Private test key from www.openvalidation.org
|
||||
Pass: start
|
||||
Cert: 1997fadf6cc1af03e4845c4cba38fb2397315143
|
||||
Key: 63b1d7233e75c3a462cb4b8ea3ad285e8ecba91c
|
||||
|
||||
Name: opensc-test.p12
|
||||
Desc: PKCS#12 key and certificates taken from OpenSC (RC2+3DES,PKCS#8)
|
||||
Pass: password
|
||||
Cert: 115abfc3ae554092a57ade74177fedf9459af5d2
|
||||
Cert: a0d6d318952c313ff8c33cd3f629647ff1de76b3
|
||||
Key: 5a36c61706367ecdb52e8779e3a32bbac1069fa1
|
||||
|
||||
Name: t5793-openssl.pfx
|
||||
Desc: self-signed key issued keys
|
||||
Pass: test
|
||||
Cert: 80348a438e4b803b99e708da0b7fdd0659dedd15
|
||||
Key: c271e44ab4fb19ca1aae71102ea4d7292ccc981d
|
||||
|
||||
Name: t5793-test.pfx
|
||||
Desc: QuaVadis format of t5793-openssl
|
||||
Pass: test
|
||||
Cert: 80348a438e4b803b99e708da0b7fdd0659dedd15
|
||||
Key: c271e44ab4fb19ca1aae71102ea4d7292ccc981d
|
|
@ -1,10 +1,5 @@
|
|||
This is a collection of keys we use with the regression tests.
|
||||
|
||||
opensc-tests.p12 PKCS#12 key and certificates taken from OpenSC.
|
||||
Passphrase is "password"
|
||||
|
||||
ov-user.p12 Private tests keys from www.openvalidation.org.
|
||||
ov-server.p12 Passphrase for both is "start"
|
||||
For the *.p12 files see Description-p12
|
||||
|
||||
ossl-rentec-user.pem An OpenSSL generated user certificate using a
|
||||
bunch of attributes and DC RDNs.
|
||||
|
@ -21,4 +16,3 @@ steed-self-signing-nonthority.pem
|
|||
The STEED Self-Signing Nonthority.
|
||||
68A638998DFABAC510EA645CE34F9686B2EDF7EA.key
|
||||
The private Key of The STEED Self-Signing Nonthority.
|
||||
|
||||
|
|
BIN
tests/samplekeys/t5793-openssl.pfx
Normal file
BIN
tests/samplekeys/t5793-openssl.pfx
Normal file
Binary file not shown.
BIN
tests/samplekeys/t5793-test.pfx
Normal file
BIN
tests/samplekeys/t5793-test.pfx
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue