From 5e51e525a59c82c70e8b9e98871f5e87edc451a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Fri, 16 Jun 2006 23:56:46 +0000 Subject: [PATCH] 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. --- org.glite.security.gsoap-plugin/src/glite_gss.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 1.8.2.3