OpenCoverage

v3_pcia.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/x509v3/v3_pcia.c
Source codeSwitch to Preprocessed file
LineSourceCount
1/*-
2 * Copyright 2004-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/*-
11 * This file is dual-licensed and is also available under the following-
12 * terms:-
13 *-
14 * Copyright (c) 2004 Kungliga Tekniska Högskolan-
15 * (Royal Institute of Technology, Stockholm, Sweden).-
16 * All rights reserved.-
17 *-
18 * Redistribution and use in source and binary forms, with or without-
19 * modification, are permitted provided that the following conditions-
20 * are met:-
21 *-
22 * 1. Redistributions of source code must retain the above copyright-
23 * notice, this list of conditions and the following disclaimer.-
24 *-
25 * 2. Redistributions in binary form must reproduce the above copyright-
26 * notice, this list of conditions and the following disclaimer in the-
27 * documentation and/or other materials provided with the distribution.-
28 *-
29 * 3. Neither the name of the Institute nor the names of its contributors-
30 * may be used to endorse or promote products derived from this software-
31 * without specific prior written permission.-
32 *-
33 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND-
34 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE-
35 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE-
36 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE-
37 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL-
38 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS-
39 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)-
40 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT-
41 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY-
42 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF-
43 * SUCH DAMAGE.-
44 */-
45-
46#include <openssl/asn1.h>-
47#include <openssl/asn1t.h>-
48#include <openssl/x509v3.h>-
49-
50ASN1_SEQUENCE(PROXY_POLICY) =-
51 {-
52 ASN1_SIMPLE(PROXY_POLICY,policyLanguage,ASN1_OBJECT),-
53 ASN1_OPT(PROXY_POLICY,policy,ASN1_OCTET_STRING)-
54} ASN1_SEQUENCE_END(PROXY_POLICY)-
55-
56IMPLEMENT_ASN1_FUNCTIONS(PROXY_POLICY)
never executed: end of block
never executed: return (PROXY_POLICY *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(PROXY_POLICY_it)));
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(PROXY_POLICY_it)));
never executed: return (PROXY_POLICY *)ASN1_item_new((&(PROXY_POLICY_it)));
0
57-
58ASN1_SEQUENCE(PROXY_CERT_INFO_EXTENSION) =-
59 {-
60 ASN1_OPT(PROXY_CERT_INFO_EXTENSION,pcPathLengthConstraint,ASN1_INTEGER),-
61 ASN1_SIMPLE(PROXY_CERT_INFO_EXTENSION,proxyPolicy,PROXY_POLICY)-
62} ASN1_SEQUENCE_END(PROXY_CERT_INFO_EXTENSION)-
63-
64IMPLEMENT_ASN1_FUNCTIONS(PROXY_CERT_INFO_EXTENSION)
executed 34 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
never executed: return (PROXY_CERT_INFO_EXTENSION *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(PROXY_CERT_INFO_EXTENSION_it)));
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(PROXY_CERT_INFO_EXTENSION_it)));
executed 4 times by 1 test: return (PROXY_CERT_INFO_EXTENSION *)ASN1_item_new((&(PROXY_CERT_INFO_EXTENSION_it)));
Executed by:
  • libcrypto.so.1.1
0-34
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.2