From: Daniel KouĊ™il Date: Fri, 16 Jun 2006 23:56:46 +0000 (+0000) Subject: When loading credentials, insert a '\n' character between the certificate and X-Git-Tag: gridsite-core_R_1_3_2~110 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=5e51e525a59c82c70e8b9e98871f5e87edc451a9;p=jra1mw.git When loading credentials, insert a '\n' character between the certificate and private key in case the cert file doesn't end with EOL. Fixes #13988. --- diff --git a/org.glite.security.gsoap-plugin/src/glite_gss.c b/org.glite.security.gsoap-plugin/src/glite_gss.c index 6ae8396..e13a63d 100644 --- a/org.glite.security.gsoap-plugin/src/glite_gss.c +++ b/org.glite.security.gsoap-plugin/src/glite_gss.c @@ -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;