Revert "Fix building with --coding=no/WOLFSSL_PEM_TO_DER undefined."

This commit is contained in:
Juliusz Sosinowicz
2025-09-10 18:07:57 +02:00
committed by GitHub
parent e3423d0922
commit 74c7115cc1
2 changed files with 0 additions and 5 deletions

View File

@@ -60,7 +60,6 @@ jobs:
'--disable-sys-ca-certs',
'--enable-all CPPFLAGS=-DWOLFSSL_DEBUG_CERTS ',
'--enable-all CFLAGS="-DWOLFSSL_CHECK_MEM_ZERO"',
'--enable-coding=no',
]
name: make check
if: github.repository_owner == 'wolfssl'

View File

@@ -600,9 +600,6 @@ int wolfSSL_CertManagerLoadCABufferType(WOLFSSL_CERT_MANAGER* cm,
ret = WOLFSSL_FATAL_ERROR;
} else {
if (format == WOLFSSL_FILETYPE_PEM) {
#ifndef WOLFSSL_PEM_TO_DER
ret = NOT_COMPILED_IN;
#else
ret = PemToDer(buff, sz, CERT_TYPE, &der, cm->heap, NULL, NULL);
if (!ret) {
/* Replace buffer pointer and size with DER buffer. */
@@ -613,7 +610,6 @@ int wolfSSL_CertManagerLoadCABufferType(WOLFSSL_CERT_MANAGER* cm,
WOLFSSL_ERROR(ret);
ret = WOLFSSL_FATAL_ERROR;
}
#endif
}
if (ret == WOLFSSL_SUCCESS) {