forked from wolfSSL/wolfCLU
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
100 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
-----BEGIN PKCS7----- | ||
MIIGXQYJKoZIhvcNAQcCoIIGTjCCBkoCAQExDzANBglghkgBZQMEAgEFADAkBgkq | ||
hkiG9w0BBwGgFwQVTXkgZW5jb2RlZCBERVIgY2VydC4AoIIEPjCCBDowggMioAMC | ||
AQICAhAAMA0GCSqGSIb3DQEBCwUAMIGXMQswCQYDVQQGEwJVUzETMBEGA1UECAwK | ||
V2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEQMA4GA1UECgwHd29sZlNTTDEU | ||
MBIGA1UECwwLRGV2ZWxvcG1lbnQxGDAWBgNVBAMMD3d3dy53b2xmc3NsLmNvbTEf | ||
MB0GCSqGSIb3DQEJARYQaW5mb0B3b2xmc3NsLmNvbTAeFw0xODA2MDQyMTE0MzJa | ||
Fw0yODA2MDEyMTE0MzJaMIGUMQswCQYDVQQGEwJVUzEPMA0GA1UECAwGT3JnZW9u | ||
MREwDwYDVQQHDAhQb3J0bGFuZDEQMA4GA1UECgwHd29sZlNTTDEUMBIGA1UECwwL | ||
RGV2ZWx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gDbSYs1GM | ||
ihTFP/5F+EAOLbrihPvVOOh7nDGCAcowggHGAgEBMIGeMIGXMQswCQYDVQQGEwJV | ||
UzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEQMA4GA1UE | ||
CgwHd29sZlNTTDEUMBIGA1UECwwLRGV2ZWxvcG1lbnQxGDAWBgNVBAMMD3d3dy53 | ||
b2xmc3NsLmNvbTEfMB0GCSqGSIb3DQEJARYQaW5mb0B3b2xmc3NsLmNvbQICEAAw | ||
DQYJYIZIAWUDBAIBBQAwDQYJKoZIhvcNAQELBQAEggEAf1T6uTLIc280EVGMVh9D | ||
jayQOobfGodL0xNO39aOo3C50PGDGD+yMX6G6aXq6OCFuQ8ScxAt4JLZ2FoLYefG | ||
7r6sesIIM1QJHShDVCbx1NdYDDLsKqM97YRhfY0Xm5SiBP6ZaveKm6cLHqXhaJxu | ||
n//AIQeTm/NeIIkemNPIckvxzINA/friT1zLVaREiW457JJuNjmj8ds6nJpJjMbA | ||
7WCnMH7AblNfo2JphvU6szsx2DYxhCd2s5u65xu7kVaI01DkknsPae/VHB2iLmxm | ||
90X+Mnq0vVSy7Mt6s6wdXRxQJEhnPxSkLlU+NvpYl0jCVOY09uAehnjP9tapTX3C | ||
1g== | ||
-----END PKCS7----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -d ./certs/ ]; then | ||
#return 77 to indicate to automake that the test was skipped | ||
exit 77 | ||
fi | ||
|
||
# Skip test if filesystem disabled | ||
FILESYSTEM=`cat config.log | grep "disable\-filesystem"` | ||
if [ "$FILESYSTEM" != "" ] | ||
then | ||
exit 77 | ||
fi | ||
|
||
RESULT=`./wolfssl pkcs7 -inform DER -in signed.p7b` | ||
echo "$RESULT" | grep "Recompile wolfSSL with PKCS7 support" | ||
if [ $? == 0 ]; then | ||
#return 77 to indicate to automake that the test was skipped | ||
exit 77 | ||
fi | ||
|
||
run() { | ||
RESULT=`./wolfssl $1` | ||
|
||
if [ $? != 0 ]; then | ||
echo "Failed on test \"./wolfssl $1\"" | ||
exit 99 | ||
fi | ||
} | ||
|
||
run "pkcs7 -inform DER -print_certs -in signed.p7b" | ||
|
||
#check that certs were printed | ||
echo $RESULT | grep "CERTIFICATE" | ||
if [ $? != 0 ]; then | ||
echo "ERROR didn't find cert with -print_certs option" | ||
exit 99 | ||
fi | ||
|
||
#check der to pem | ||
run "pkcs7 -inform DER -in signed.p7b -outform PEM" | ||
|
||
echo $RESULT | grep "BEGIN PKCS7" | ||
if [ $? != 0 ]; then | ||
echo "ERROR didn't PKCS7 PEM header in output" | ||
exit 99 | ||
fi | ||
|
||
#check pem to der | ||
run "pkcs7 -inform PEM -in signed.p7s -outform DER" | ||
|
||
echo "Done" | ||
exit 0 |