diff options
author | Simon Rettberg | 2017-04-21 14:55:50 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-04-21 14:55:50 +0200 |
commit | 45249ec9533876cb5ebc6ee590b239b9756b5331 (patch) | |
tree | 9d330de8c1122f84d22ba891778ded8a8834a39e | |
parent | Fix uninitialized variable use (diff) | |
download | ldadp-45249ec9533876cb5ebc6ee590b239b9756b5331.tar.gz ldadp-45249ec9533876cb5ebc6ee590b239b9756b5331.tar.xz ldadp-45249ec9533876cb5ebc6ee590b239b9756b5331.zip |
Fix indentation
-rw-r--r-- | openssl.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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)); |