> Frank Lichtenheld <[email protected]> hat am 18.05.2022 12:40 geschrieben:
[...]
> So something like this on top of this patch:
Somehow managed to double paste the patch. They seem to be identical, so simply
ignore either one ;)
> diff --git a/src/openvpn/push.c b/src/openvpn/push.c
> index be118831..6b8bc0e1 100644
> --- a/src/openvpn/push.c
> +++ b/src/openvpn/push.c
> @@ -104,19 +104,15 @@ receive_auth_failed(struct context *c, const struct
> buffer *buffer)
> }
> management_auth_failure(management, UP_TYPE_AUTH, reason);
> }
> -#endif
> /*
> * Save the dynamic-challenge text even when management is defined
> */
> + if (authfail_extended
> + && buf_string_match_head_str(&buf, "CRV1:") && BLEN(&buf))
> {
> -#ifdef ENABLE_MANAGEMENT
> - if (authfail_extended
> - && buf_string_match_head_str(&buf, "CRV1:") && BLEN(&buf))
> - {
> - ssl_put_auth_challenge(BSTR(&buf));
> - }
> -#endif
> + ssl_put_auth_challenge(BSTR(&buf));
> }
> +#endif
> }
>
> /*
> flichtenheld@MININT-961QE0A:~/openvpn/community/openvpn (master *)$ git
> --no-pager diff
> diff --git a/src/openvpn/push.c b/src/openvpn/push.c
> index be118831..6b8bc0e1 100644
> --- a/src/openvpn/push.c
> +++ b/src/openvpn/push.c
> @@ -104,19 +104,15 @@ receive_auth_failed(struct context *c, const struct
> buffer *buffer)
> }
> management_auth_failure(management, UP_TYPE_AUTH, reason);
> }
> -#endif
> /*
> * Save the dynamic-challenge text even when management is defined
> */
> + if (authfail_extended
> + && buf_string_match_head_str(&buf, "CRV1:") && BLEN(&buf))
> {
> -#ifdef ENABLE_MANAGEMENT
> - if (authfail_extended
> - && buf_string_match_head_str(&buf, "CRV1:") && BLEN(&buf))
> - {
> - ssl_put_auth_challenge(BSTR(&buf));
> - }
> -#endif
> + ssl_put_auth_challenge(BSTR(&buf));
> }
> +#endif
> }
>
> /*
--
Frank Lichtenheld
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel