forked from wolfSSL/wolfssl
pkcs7 rolling back static values to auto
This commit is contained in:
@ -52,19 +52,19 @@
|
|||||||
WOLFSSL_LOCAL int wc_SetContentType(int pkcs7TypeOID, byte* output)
|
WOLFSSL_LOCAL int wc_SetContentType(int pkcs7TypeOID, byte* output)
|
||||||
{
|
{
|
||||||
/* PKCS#7 content types, RFC 2315, section 14 */
|
/* PKCS#7 content types, RFC 2315, section 14 */
|
||||||
static const byte pkcs7[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
const byte pkcs7[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
||||||
0x0D, 0x01, 0x07 };
|
0x0D, 0x01, 0x07 };
|
||||||
static const byte data[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
const byte data[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
||||||
0x0D, 0x01, 0x07, 0x01 };
|
0x0D, 0x01, 0x07, 0x01 };
|
||||||
static const byte signedData[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
const byte signedData[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
||||||
0x0D, 0x01, 0x07, 0x02};
|
0x0D, 0x01, 0x07, 0x02};
|
||||||
static const byte envelopedData[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
const byte envelopedData[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
||||||
0x0D, 0x01, 0x07, 0x03 };
|
0x0D, 0x01, 0x07, 0x03 };
|
||||||
static const byte signedAndEnveloped[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
const byte signedAndEnveloped[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
||||||
0x0D, 0x01, 0x07, 0x04 };
|
0x0D, 0x01, 0x07, 0x04 };
|
||||||
static const byte digestedData[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
const byte digestedData[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
||||||
0x0D, 0x01, 0x07, 0x05 };
|
0x0D, 0x01, 0x07, 0x05 };
|
||||||
static const byte encryptedData[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
const byte encryptedData[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7,
|
||||||
0x0D, 0x01, 0x07, 0x06 };
|
0x0D, 0x01, 0x07, 0x06 };
|
||||||
|
|
||||||
int idSz;
|
int idSz;
|
||||||
|
Reference in New Issue
Block a user