diff options
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_pcia.c')
| -rw-r--r-- | src/lib/libcrypto/x509v3/v3_pcia.c | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_pcia.c b/src/lib/libcrypto/x509v3/v3_pcia.c deleted file mode 100644 index 07e294e633..0000000000 --- a/src/lib/libcrypto/x509v3/v3_pcia.c +++ /dev/null | |||
| @@ -1,102 +0,0 @@ | |||
| 1 | /* $OpenBSD: v3_pcia.c,v 1.5 2015/02/09 16:03:11 jsing Exp $ */ | ||
| 2 | /* Contributed to the OpenSSL Project 2004 | ||
| 3 | * by Richard Levitte (richard@levitte.org) | ||
| 4 | */ | ||
| 5 | /* Copyright (c) 2004 Kungliga Tekniska Högskolan | ||
| 6 | * (Royal Institute of Technology, Stockholm, Sweden). | ||
| 7 | * All rights reserved. | ||
| 8 | * | ||
| 9 | * Redistribution and use in source and binary forms, with or without | ||
| 10 | * modification, are permitted provided that the following conditions | ||
| 11 | * are met: | ||
| 12 | * | ||
| 13 | * 1. Redistributions of source code must retain the above copyright | ||
| 14 | * notice, this list of conditions and the following disclaimer. | ||
| 15 | * | ||
| 16 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 17 | * notice, this list of conditions and the following disclaimer in the | ||
| 18 | * documentation and/or other materials provided with the distribution. | ||
| 19 | * | ||
| 20 | * 3. Neither the name of the Institute nor the names of its contributors | ||
| 21 | * may be used to endorse or promote products derived from this software | ||
| 22 | * without specific prior written permission. | ||
| 23 | * | ||
| 24 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND | ||
| 25 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
| 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
| 27 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE | ||
| 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
| 30 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 31 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 32 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 33 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 34 | * SUCH DAMAGE. | ||
| 35 | */ | ||
| 36 | |||
| 37 | #include <openssl/asn1.h> | ||
| 38 | #include <openssl/asn1t.h> | ||
| 39 | #include <openssl/x509v3.h> | ||
| 40 | |||
| 41 | ASN1_SEQUENCE(PROXY_POLICY) = { | ||
| 42 | ASN1_SIMPLE(PROXY_POLICY, policyLanguage, ASN1_OBJECT), | ||
| 43 | ASN1_OPT(PROXY_POLICY, policy, ASN1_OCTET_STRING) | ||
| 44 | } ASN1_SEQUENCE_END(PROXY_POLICY) | ||
| 45 | |||
| 46 | |||
| 47 | PROXY_POLICY * | ||
| 48 | d2i_PROXY_POLICY(PROXY_POLICY **a, const unsigned char **in, long len) | ||
| 49 | { | ||
| 50 | return (PROXY_POLICY *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
| 51 | &PROXY_POLICY_it); | ||
| 52 | } | ||
| 53 | |||
| 54 | int | ||
| 55 | i2d_PROXY_POLICY(PROXY_POLICY *a, unsigned char **out) | ||
| 56 | { | ||
| 57 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &PROXY_POLICY_it); | ||
| 58 | } | ||
| 59 | |||
| 60 | PROXY_POLICY * | ||
| 61 | PROXY_POLICY_new(void) | ||
| 62 | { | ||
| 63 | return (PROXY_POLICY *)ASN1_item_new(&PROXY_POLICY_it); | ||
| 64 | } | ||
| 65 | |||
| 66 | void | ||
| 67 | PROXY_POLICY_free(PROXY_POLICY *a) | ||
| 68 | { | ||
| 69 | ASN1_item_free((ASN1_VALUE *)a, &PROXY_POLICY_it); | ||
| 70 | } | ||
| 71 | |||
| 72 | ASN1_SEQUENCE(PROXY_CERT_INFO_EXTENSION) = { | ||
| 73 | ASN1_OPT(PROXY_CERT_INFO_EXTENSION, pcPathLengthConstraint, | ||
| 74 | ASN1_INTEGER), | ||
| 75 | ASN1_SIMPLE(PROXY_CERT_INFO_EXTENSION, proxyPolicy, PROXY_POLICY) | ||
| 76 | } ASN1_SEQUENCE_END(PROXY_CERT_INFO_EXTENSION) | ||
| 77 | |||
| 78 | |||
| 79 | PROXY_CERT_INFO_EXTENSION * | ||
| 80 | d2i_PROXY_CERT_INFO_EXTENSION(PROXY_CERT_INFO_EXTENSION **a, const unsigned char **in, long len) | ||
| 81 | { | ||
| 82 | return (PROXY_CERT_INFO_EXTENSION *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, | ||
| 83 | &PROXY_CERT_INFO_EXTENSION_it); | ||
| 84 | } | ||
| 85 | |||
| 86 | int | ||
| 87 | i2d_PROXY_CERT_INFO_EXTENSION(PROXY_CERT_INFO_EXTENSION *a, unsigned char **out) | ||
| 88 | { | ||
| 89 | return ASN1_item_i2d((ASN1_VALUE *)a, out, &PROXY_CERT_INFO_EXTENSION_it); | ||
| 90 | } | ||
| 91 | |||
| 92 | PROXY_CERT_INFO_EXTENSION * | ||
| 93 | PROXY_CERT_INFO_EXTENSION_new(void) | ||
| 94 | { | ||
| 95 | return (PROXY_CERT_INFO_EXTENSION *)ASN1_item_new(&PROXY_CERT_INFO_EXTENSION_it); | ||
| 96 | } | ||
| 97 | |||
| 98 | void | ||
| 99 | PROXY_CERT_INFO_EXTENSION_free(PROXY_CERT_INFO_EXTENSION *a) | ||
| 100 | { | ||
| 101 | ASN1_item_free((ASN1_VALUE *)a, &PROXY_CERT_INFO_EXTENSION_it); | ||
| 102 | } | ||
