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 "SolidSyslogWolfSslNullCredentials.h"
6 :
7 : #include <stdbool.h>
8 : #include <stddef.h>
9 :
10 : #include "SolidSyslogTlsCredentialsInstalled.h"
11 : #include "SolidSyslogWolfSslCredentialsDefinition.h"
12 :
13 3 : static bool WolfSslNullCredentials_Install(
14 : struct SolidSyslogWolfSslCredentials* self,
15 : struct WOLFSSL_CTX* ctx,
16 : struct SolidSyslogTlsCredentialsInstalled* installed
17 : )
18 : {
19 : (void) self;
20 : (void) ctx;
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 WolfSslNullCredentials_Release(struct SolidSyslogWolfSslCredentials* self)
28 : {
29 : (void) self;
30 1 : }
31 :
32 168 : struct SolidSyslogWolfSslCredentials* SolidSyslogWolfSslNullCredentials_Get(void)
33 : {
34 : static struct SolidSyslogWolfSslCredentials instance = {
35 : WolfSslNullCredentials_Install,
36 : WolfSslNullCredentials_Release
37 : };
38 168 : return &instance;
39 : }
|