2016-05-17 18:51:34 +00:00
|
|
|
/*
|
|
|
|
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
|
1998-12-21 10:52:47 +00:00
|
|
|
*
|
2016-05-17 18:51:34 +00:00
|
|
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
1998-12-21 10:52:47 +00:00
|
|
|
*/
|
|
|
|
|
2015-01-22 03:40:55 +00:00
|
|
|
/*
|
|
|
|
* This module was send to me my Pat Richards <patr@x509.com> who wrote it.
|
|
|
|
* It is under my Copyright with his permission
|
1998-12-21 10:52:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2015-05-14 14:56:48 +00:00
|
|
|
#include "internal/cryptlib.h"
|
1999-04-23 22:13:45 +00:00
|
|
|
#include <openssl/x509.h>
|
2000-12-08 19:09:35 +00:00
|
|
|
#include <openssl/asn1t.h>
|
1998-12-21 10:52:47 +00:00
|
|
|
|
2000-12-08 19:09:35 +00:00
|
|
|
ASN1_SEQUENCE(NETSCAPE_SPKAC) = {
|
2015-01-22 03:40:55 +00:00
|
|
|
ASN1_SIMPLE(NETSCAPE_SPKAC, pubkey, X509_PUBKEY),
|
|
|
|
ASN1_SIMPLE(NETSCAPE_SPKAC, challenge, ASN1_IA5STRING)
|
2001-02-23 12:47:06 +00:00
|
|
|
} ASN1_SEQUENCE_END(NETSCAPE_SPKAC)
|
1998-12-21 10:52:47 +00:00
|
|
|
|
2000-12-08 19:09:35 +00:00
|
|
|
IMPLEMENT_ASN1_FUNCTIONS(NETSCAPE_SPKAC)
|
1998-12-21 10:52:47 +00:00
|
|
|
|
2000-12-08 19:09:35 +00:00
|
|
|
ASN1_SEQUENCE(NETSCAPE_SPKI) = {
|
2015-01-22 03:40:55 +00:00
|
|
|
ASN1_SIMPLE(NETSCAPE_SPKI, spkac, NETSCAPE_SPKAC),
|
2015-09-17 13:44:19 +00:00
|
|
|
ASN1_EMBED(NETSCAPE_SPKI, sig_algor, X509_ALGOR),
|
2015-01-22 03:40:55 +00:00
|
|
|
ASN1_SIMPLE(NETSCAPE_SPKI, signature, ASN1_BIT_STRING)
|
2001-02-23 12:47:06 +00:00
|
|
|
} ASN1_SEQUENCE_END(NETSCAPE_SPKI)
|
1998-12-21 10:52:47 +00:00
|
|
|
|
2000-12-08 19:09:35 +00:00
|
|
|
IMPLEMENT_ASN1_FUNCTIONS(NETSCAPE_SPKI)
|