When loading credentials, insert a '\n' character between the certificate and
authorDaniel Kouřil <kouril@ics.muni.cz>
Fri, 16 Jun 2006 23:56:46 +0000 (23:56 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Fri, 16 Jun 2006 23:56:46 +0000 (23:56 +0000)
private key in case the cert file doesn't end with EOL. Fixes #13988.

org.glite.security.gsoap-plugin/src/glite_gss.c

index 6ae8396..e13a63d 100644 (file)
@@ -438,6 +438,12 @@ create_proxy(char *cert_file, char *key_file, char **proxy_file)
       goto end;
    }
 
+   len = write(out, "\n", 1);
+   if (len != 1) {
+      ret = EDG_WLL_GSS_ERROR_ERRNO;
+      goto end;
+   }
+
    in = open(key_file, O_RDONLY);
    if (in < 0) {
       ret = EDG_WLL_GSS_ERROR_ERRNO;