Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amqp_ssl_validate_hostname is implemented (with more features and flags) in latest openssl versions #719

Open
inikulshin opened this issue Dec 21, 2021 · 0 comments

Comments

@inikulshin
Copy link

https://wiki.openssl.org/index.php/Hostname_validation

Instead of amqp_ssl_socket_set_verify_hostname, it's better to have a function like this:

AMQP_PUBLIC_FUNCTION
void AMQP_CALL amqp_ssl_socket_set_xxx(amqp_socket_t *self, const void *hostname, size_t n);

and do something like that:

		X509_VERIFY_PARAM * param = SSL_CTX_get0_param(((amqp_ssl_socket_t *)self)->ctx);
		X509_VERIFY_PARAM_set1_host(param, hostname, n);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant