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 "SolidSyslogOpenSslNullCredentials.h"
6 :
7 : #include <stdbool.h>
8 : #include <stddef.h>
9 :
10 : #include "SolidSyslogOpenSslCredentialsDefinition.h"
11 : #include "SolidSyslogTlsCredentialsInstalled.h"
12 :
13 3 : static bool OpenSslNullCredentials_Install(
14 : struct SolidSyslogOpenSslCredentials* self,
15 : SSL_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 OpenSslNullCredentials_Release(struct SolidSyslogOpenSslCredentials* self)
28 : {
29 : (void) self;
30 1 : }
31 :
32 75 : struct SolidSyslogOpenSslCredentials* SolidSyslogOpenSslNullCredentials_Get(void)
33 : {
34 : static struct SolidSyslogOpenSslCredentials instance = {
35 : OpenSslNullCredentials_Install,
36 : OpenSslNullCredentials_Release
37 : };
38 75 : return &instance;
39 : }
|