| 6 | // |
| 7 | // https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 |
| 15 | #include <stdio.h> |
| 16 |
| 17 | #include <openssl/asn1.h> |
| 18 | #include <openssl/asn1t.h> |
| 19 | #include <openssl/conf.h> |
| 20 | #include <openssl/x509.h> |
| 21 |
| 22 | #include "internal.h" |
| 23 |
| 24 |
| 25 | ASN1_SEQUENCE(AUTHORITY_KEYID) = { |
| 26 | ASN1_IMP_OPT(AUTHORITY_KEYID, keyid, ASN1_OCTET_STRING, 0), |
| 27 | ASN1_IMP_SEQUENCE_OF_OPT(AUTHORITY_KEYID, issuer, GENERAL_NAME, 1), |
| 28 | ASN1_IMP_OPT(AUTHORITY_KEYID, serial, ASN1_INTEGER, 2), |
| 29 | } ASN1_SEQUENCE_END(AUTHORITY_KEYID) |
| 30 |
| 31 | IMPLEMENT_ASN1_FUNCTIONS(AUTHORITY_KEYID) |
| 32 |