Added required config option and return value for HaProxy

This commit is contained in:
Uriah Pollock
2022-11-22 10:42:05 -06:00
parent 502a395723
commit d373c0856a
2 changed files with 10 additions and 0 deletions

View File

@ -5469,6 +5469,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

@ -10336,7 +10336,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;
}