mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #5810 from Uriah-wolfSSL/haproxy-integration
Added required config option and return value for HaProxy
This commit is contained in:
@ -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"
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user