To compare subject names use GRSTx509NameCmp(), which understands changes in the...
authorDaniel Kouřil <kouril@ics.muni.cz>
Wed, 17 Aug 2011 10:47:36 +0000 (10:47 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Wed, 17 Aug 2011 10:47:36 +0000 (10:47 +0000)
org.gridsite.core/src/grst_x509.c

index f34f815..2b57800 100644 (file)
@@ -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;