From 45249ec9533876cb5ebc6ee590b239b9756b5331 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 21 Apr 2017 14:55:50 +0200 Subject: Fix indentation --- openssl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openssl.c b/openssl.c index 1dd5ba9..8c107c2 100644 --- a/openssl.c +++ b/openssl.c @@ -184,11 +184,11 @@ static BOOL spc_verify_cert_hostname(X509 *cert, const char *hostname) char name[256]; X509_NAME *subj; int i; - int san_names_nb = -1; - STACK_OF(GENERAL_NAME) *san_names = NULL; + int san_names_nb = -1; + STACK_OF(GENERAL_NAME) *san_names = NULL; - // Try to extract the names within the SAN extension from the certificate - san_names = X509_get_ext_d2i(cert, NID_subject_alt_name, NULL, NULL); + // Try to extract the names within the SAN extension from the certificate + san_names = X509_get_ext_d2i(cert, NID_subject_alt_name, NULL, NULL); if (san_names != NULL) { san_names_nb = sk_GENERAL_NAME_num(san_names); @@ -210,7 +210,7 @@ static BOOL spc_verify_cert_hostname(X509 *cert, const char *hostname) } } sk_GENERAL_NAME_pop_free(san_names, GENERAL_NAME_free); - } + } if (!ok && (subj = X509_get_subject_name(cert))) { const size_t len = (size_t)X509_NAME_get_text_by_NID(subj, NID_commonName, name, sizeof(name)); -- cgit v1.2.3-55-g7522