Coverage Report

Created: 2026-01-10 06:46

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/strongswan/src/libstrongswan/credentials/certificates/x509.c
Line
Count
Source
1
/*
2
 * Copyright (C) 2015 Andreas Steffen
3
 *
4
 * Copyright (C) secunet Security Networks AG
5
 *
6
 * This program is free software; you can redistribute it and/or modify it
7
 * under the terms of the GNU General Public License as published by the
8
 * Free Software Foundation; either version 2 of the License, or (at your
9
 * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
10
 *
11
 * This program is distributed in the hope that it will be useful, but
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14
 * for more details.
15
 */
16
17
#include "x509.h"
18
19
ENUM_BEGIN(x509_flag_names, X509_NONE, X509_AA,
20
  "NONE",
21
  "CA",
22
  "AA");
23
ENUM_NEXT(x509_flag_names, X509_OCSP_SIGNER, X509_OCSP_SIGNER, X509_AA,
24
  "OCSP");
25
ENUM_NEXT(x509_flag_names, X509_ANY, X509_ANY, X509_OCSP_SIGNER,
26
  "ANY");
27
ENUM_END(x509_flag_names, X509_ANY);
28
29
/*
30
 * Described in header
31
 */
32
void x509_cdp_destroy(x509_cdp_t *this)
33
3.20k
{
34
3.20k
  free(this->uri);
35
3.20k
  DESTROY_IF(this->issuer);
36
3.20k
  free(this);
37
3.20k
}