load cert from file instead of X509 structure
authorMarcel Poul <marcel.poul@cern.ch>
Tue, 11 Sep 2012 11:59:40 +0000 (11:59 +0000)
committerMarcel Poul <marcel.poul@cern.ch>
Tue, 11 Sep 2012 11:59:40 +0000 (11:59 +0000)
org.gridsite.core/src/grst_canl_x509.c

index 9b29aa2..16fecd6 100644 (file)
@@ -1794,7 +1794,7 @@ int GRSTx509MakeProxyCert(char **proxychain, FILE *debugfp,
     fp = NULL;
 
     /* read in the signer certificate*/
-    ret = canl_cred_load_cert_file(ctx, signer, certs[1]);
+    ret = canl_cred_load_cert_file(ctx, signer, cert);
     if (ret){
         fprintf(stderr, "[DELEGATION] Cannot load signer's certificate"
                 ": %s\n", canl_get_error_message(ctx));