Merge pull request #5810 from Uriah-wolfSSL/haproxy-integration

Added required config option and return value for HaProxy
This commit is contained in:
Sean Parkinson
2022-11-23 10:01:17 +10:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@ -5501,6 +5501,12 @@ then
AM_CFLAGS="$AM_CFLAGS -DSESSION_CERTS"
fi
# Requires key gen make sure on
if test "x$ENABLED_KEYGEN" = "xno"
then
ENABLED_KEYGEN="yes"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_KEY_GEN"
fi
fi
if test "$ENABLED_NETSNMP" = "yes"

View File

@ -10337,7 +10337,11 @@ cleanup:
if ((l = wolfSSL_BIO_get_len(bp)) <= 0) {
/* No certificate in buffer */
#if defined (WOLFSSL_HAPROXY)
WOLFSSL_ERROR(PEM_R_NO_START_LINE);
#else
WOLFSSL_ERROR(ASN_NO_PEM_HEADER);
#endif
return NULL;
}