1 /*
2  * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9 
10 #include <stdio.h>
11 #include "internal/cryptlib.h"
12 #include <openssl/x509.h>
13 #include <openssl/asn1t.h>
14 
15 ASN1_SEQUENCE(NETSCAPE_SPKAC) = {
16         ASN1_SIMPLE(NETSCAPE_SPKAC, pubkey, X509_PUBKEY),
17         ASN1_SIMPLE(NETSCAPE_SPKAC, challenge, ASN1_IA5STRING)
18 } ASN1_SEQUENCE_END(NETSCAPE_SPKAC)
19 
20 IMPLEMENT_ASN1_FUNCTIONS(NETSCAPE_SPKAC)
21 
22 ASN1_SEQUENCE(NETSCAPE_SPKI) = {
23         ASN1_SIMPLE(NETSCAPE_SPKI, spkac, NETSCAPE_SPKAC),
24         ASN1_EMBED(NETSCAPE_SPKI, sig_algor, X509_ALGOR),
25         ASN1_SIMPLE(NETSCAPE_SPKI, signature, ASN1_BIT_STRING)
26 } ASN1_SEQUENCE_END(NETSCAPE_SPKI)
27 
28 IMPLEMENT_ASN1_FUNCTIONS(NETSCAPE_SPKI)
29