x_spki.c 961 B

12345678910111213141516171819202122232425262728
  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. #include <stdio.h>
  10. #include "internal/cryptlib.h"
  11. #include <openssl/x509.h>
  12. #include <openssl/asn1t.h>
  13. ASN1_SEQUENCE(NETSCAPE_SPKAC) = {
  14. ASN1_SIMPLE(NETSCAPE_SPKAC, pubkey, X509_PUBKEY),
  15. ASN1_SIMPLE(NETSCAPE_SPKAC, challenge, ASN1_IA5STRING)
  16. } ASN1_SEQUENCE_END(NETSCAPE_SPKAC)
  17. IMPLEMENT_ASN1_FUNCTIONS(NETSCAPE_SPKAC)
  18. ASN1_SEQUENCE(NETSCAPE_SPKI) = {
  19. ASN1_SIMPLE(NETSCAPE_SPKI, spkac, NETSCAPE_SPKAC),
  20. ASN1_EMBED(NETSCAPE_SPKI, sig_algor, X509_ALGOR),
  21. ASN1_SIMPLE(NETSCAPE_SPKI, signature, ASN1_BIT_STRING)
  22. } ASN1_SEQUENCE_END(NETSCAPE_SPKI)
  23. IMPLEMENT_ASN1_FUNCTIONS(NETSCAPE_SPKI)