summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_openssl_hostname_validation.h
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2020-12-24 16:17:55 +0000
committerAlan Antonuk <alan.antonuk@gmail.com>2020-12-24 09:41:41 -0800
commitc9caeaa311f6d8afefc4ecbce44005509a956bed (patch)
tree4396e054f0f34be1e601d846016ebeec89bc2db9 /librabbitmq/amqp_openssl_hostname_validation.h
parent1ae1b3d2a07b67503538b04f08c9401a00226f22 (diff)
downloadrabbitmq-c-c9caeaa311f6d8afefc4ecbce44005509a956bed.tar.gz
Format sources using clang-format-10
This should allow the check-format step to work on Github Actions.
Diffstat (limited to 'librabbitmq/amqp_openssl_hostname_validation.h')
-rw-r--r--librabbitmq/amqp_openssl_hostname_validation.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/librabbitmq/amqp_openssl_hostname_validation.h b/librabbitmq/amqp_openssl_hostname_validation.h
index 3f353e3..920c5b3 100644
--- a/librabbitmq/amqp_openssl_hostname_validation.h
+++ b/librabbitmq/amqp_openssl_hostname_validation.h
@@ -41,17 +41,17 @@ typedef enum {
} amqp_hostname_validation_result;
/**
-* Validates the server's identity by looking for the expected hostname in the
-* server's certificate. As described in RFC 6125, it first tries to find a match
-* in the Subject Alternative Name extension. If the extension is not present in
-* the certificate, it checks the Common Name instead.
-*
-* Returns AMQP_HVR_MATCH_FOUND if a match was found.
-* Returns AMQP_HVR_MATCH_NOT_FOUND if no matches were found.
-* Returns AMQP_HVR_MALFORMED_CERTIFICATE if any of the hostnames had a NUL
-* character embedded in it.
-* Returns AMQP_HVR_ERROR if there was an error.
-*/
+ * Validates the server's identity by looking for the expected hostname in the
+ * server's certificate. As described in RFC 6125, it first tries to find a
+ * match in the Subject Alternative Name extension. If the extension is not
+ * present in the certificate, it checks the Common Name instead.
+ *
+ * Returns AMQP_HVR_MATCH_FOUND if a match was found.
+ * Returns AMQP_HVR_MATCH_NOT_FOUND if no matches were found.
+ * Returns AMQP_HVR_MALFORMED_CERTIFICATE if any of the hostnames had a NUL
+ * character embedded in it.
+ * Returns AMQP_HVR_ERROR if there was an error.
+ */
amqp_hostname_validation_result amqp_ssl_validate_hostname(
const char *hostname, const X509 *server_cert);