SolidSyslog coverage report
Current view: top level - Platform/MbedTls/Source - SolidSyslogMbedTlsNullCredentials.c (source / functions) Coverage Total Hit
Test: SolidSyslog Lines: 100.0 % 9 9
Test Date: 2026-11-12 23:14:35 Functions: 100.0 % 3 3

            Line data    Source code
       1              : /* SPDX-FileCopyrightText: Copyright 2026 Cozens Software Solutions Limited
       2              :  * SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 OR LicenseRef-PolyForm-Internal-Use-1.0.0 OR LicenseRef-COSOSO-Commercial
       3              :  */
       4              : 
       5              : #include "SolidSyslogMbedTlsNullCredentials.h"
       6              : 
       7              : #include <stdbool.h>
       8              : #include <stddef.h>
       9              : 
      10              : #include "SolidSyslogMbedTlsCredentialsDefinition.h"
      11              : #include "SolidSyslogTlsCredentialsInstalled.h"
      12              : 
      13            3 : static bool MbedTlsNullCredentials_Install(
      14              :     struct SolidSyslogMbedTlsCredentials* self,
      15              :     struct mbedtls_ssl_config* conf,
      16              :     struct SolidSyslogTlsCredentialsInstalled* installed
      17              : )
      18              : {
      19              :     (void) self;
      20              :     (void) conf;
      21            3 :     installed->TrustAnchorsInstalled = false;
      22            3 :     installed->Fingerprints = NULL;
      23            3 :     installed->FingerprintCount = 0U;
      24            3 :     return true;
      25              : }
      26              : 
      27            1 : static void MbedTlsNullCredentials_Release(struct SolidSyslogMbedTlsCredentials* self)
      28              : {
      29              :     (void) self;
      30            1 : }
      31              : 
      32          115 : struct SolidSyslogMbedTlsCredentials* SolidSyslogMbedTlsNullCredentials_Get(void)
      33              : {
      34              :     static struct SolidSyslogMbedTlsCredentials instance = {
      35              :         MbedTlsNullCredentials_Install,
      36              :         MbedTlsNullCredentials_Release
      37              :     };
      38          115 :     return &instance;
      39              : }
        

Generated by: LCOV version 2.0-1