| OLD | NEW |
| 1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
| 2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 | 4 |
| 5 /* | 5 /* |
| 6 * Templates that are compiled and exported from both libnss3 and libnssutil3. | 6 * Templates that are compiled and exported from both libnss3 and libnssutil3. |
| 7 * They have to be, because they were previously exported from libnss3, and | 7 * They have to be, because they were previously exported from libnss3, and |
| 8 * there is no way to create data forwarder symbols on Unix. | 8 * there is no way to create data forwarder symbols on Unix. |
| 9 * | 9 * |
| 10 * Please do not add to this file. New shared templates should be exported | 10 * Please do not add to this file. New shared templates should be exported |
| 11 * from libnssutil3 only. | 11 * from libnssutil3 only. |
| 12 * | 12 * |
| 13 */ | 13 */ |
| 14 | 14 |
| 15 #include "utilrename.h" | 15 #include "utilrename.h" |
| 16 #include "secasn1.h" | 16 #include "secasn1.h" |
| 17 #include "secder.h" | 17 #include "secder.h" |
| 18 #include "secoid.h" | 18 #include "secoid.h" |
| 19 #include "secdig.h" | 19 #include "secdig.h" |
| 20 | 20 |
| 21 const SEC_ASN1Template SECOID_AlgorithmIDTemplate[] = { | 21 const SEC_ASN1Template SECOID_AlgorithmIDTemplate[] = { |
| 22 { SEC_ASN1_SEQUENCE, | 22 { SEC_ASN1_SEQUENCE, |
| 23 0, NULL, sizeof(SECAlgorithmID) }, | 23 0, NULL, sizeof(SECAlgorithmID) }, |
| 24 { SEC_ASN1_OBJECT_ID, | 24 { SEC_ASN1_OBJECT_ID, |
| 25 » offsetof(SECAlgorithmID,algorithm), }, | 25 » offsetof(SECAlgorithmID,algorithm) }, |
| 26 { SEC_ASN1_OPTIONAL | SEC_ASN1_ANY, | 26 { SEC_ASN1_OPTIONAL | SEC_ASN1_ANY, |
| 27 » offsetof(SECAlgorithmID,parameters), }, | 27 » offsetof(SECAlgorithmID,parameters) }, |
| 28 { 0, } | 28 { 0 } |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 SEC_ASN1_CHOOSER_IMPLEMENT(SECOID_AlgorithmIDTemplate) | 31 SEC_ASN1_CHOOSER_IMPLEMENT(SECOID_AlgorithmIDTemplate) |
| 32 | 32 |
| 33 const SEC_ASN1Template SEC_AnyTemplate[] = { | 33 const SEC_ASN1Template SEC_AnyTemplate[] = { |
| 34 { SEC_ASN1_ANY | SEC_ASN1_MAY_STREAM, 0, NULL, sizeof(SECItem) } | 34 { SEC_ASN1_ANY | SEC_ASN1_MAY_STREAM, 0, NULL, sizeof(SECItem) } |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 SEC_ASN1_CHOOSER_IMPLEMENT(SEC_AnyTemplate) | 37 SEC_ASN1_CHOOSER_IMPLEMENT(SEC_AnyTemplate) |
| 38 | 38 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 0, NULL, sizeof(SGNDigestInfo) }, | 127 0, NULL, sizeof(SGNDigestInfo) }, |
| 128 { SEC_ASN1_INLINE, | 128 { SEC_ASN1_INLINE, |
| 129 offsetof(SGNDigestInfo,digestAlgorithm), | 129 offsetof(SGNDigestInfo,digestAlgorithm), |
| 130 SECOID_AlgorithmIDTemplate }, | 130 SECOID_AlgorithmIDTemplate }, |
| 131 { SEC_ASN1_OCTET_STRING, | 131 { SEC_ASN1_OCTET_STRING, |
| 132 offsetof(SGNDigestInfo,digest) }, | 132 offsetof(SGNDigestInfo,digest) }, |
| 133 { 0 } | 133 { 0 } |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 SEC_ASN1_CHOOSER_IMPLEMENT(sgn_DigestInfoTemplate) | 136 SEC_ASN1_CHOOSER_IMPLEMENT(sgn_DigestInfoTemplate) |
| OLD | NEW |