From 275b9e5c533dd0a0aea9e49af838154e6569e19d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Wed, 17 Aug 2011 10:47:36 +0000 Subject: [PATCH] To compare subject names use GRSTx509NameCmp(), which understands changes in the DN format. (fix for #85223). --- org.gridsite.core/src/grst_x509.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.gridsite.core/src/grst_x509.c b/org.gridsite.core/src/grst_x509.c index f34f815..2b57800 100644 --- a/org.gridsite.core/src/grst_x509.c +++ b/org.gridsite.core/src/grst_x509.c @@ -496,7 +496,7 @@ static int GRSTx509VerifyVomsSigCert(time_t *time1_time, time_t *time2_time, vomscert_vomsdn = X509_NAME_oneline(X509_get_subject_name(vomscert),NULL,0); - if (strcmp(vomscert_vomsdn, acvomsdn) != 0) + if (GRSTx509NameCmp(vomscert_vomsdn, acvomsdn) != 0) { free(vomscert_vomsdn); @@ -592,8 +592,8 @@ static int GRSTx509VerifyVomsSigCert(time_t *time1_time, time_t *time2_time, if ((p = index(lsc_vomsdn, '\n')) != NULL) *p = '\0'; - if ((strcmp(lsc_cadn, vomscert_cadn) == 0) && - (strcmp(lsc_vomsdn, acvomsdn) == 0)) + if ((GRSTx509NameCmp(lsc_cadn, vomscert_cadn) == 0) && + (GRSTx509NameCmp(lsc_vomsdn, acvomsdn) == 0)) { GRSTerrorLog(GRST_LOG_DEBUG, "Matched LSC file %s", lscpath); lsc_found = 1; -- 1.8.2.3