summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openssl.c10
1 files 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));