This fix solved two problems
First - I get "segmentation fault" when I run
$ openssl pkcs12 -export -name 'Pack name' -inkey key.pem -in cert.pem
-out outfile -password file:passwordfile
Second - when I build openssl in some linux-environment the cd command
echo the directory i changes to stdout I changed this to stderr for a
better build.
Regards
/gosta
diff -ur openssl-orig/crypto/pkcs12/p12_crt.c
openssl-work/crypto/pkcs12/p12_crt.c
--- openssl-orig/crypto/pkcs12/p12_crt.c 2005-05-15 02:54:44.000000000
+0200
+++ openssl-work/crypto/pkcs12/p12_crt.c 2008-08-28 15:02:27.000000000
+0200
@@ -101,7 +101,7 @@
if (cert)
{
bag = PKCS12_add_cert(&bags, cert);
- if(name && !PKCS12_add_friendlyname(bag, name, -1))
+ if(name && !PKCS12_add_friendlyname(bag, name, strlen(name)))
goto err;
if(keyidlen && !PKCS12_add_localkeyid(bag, keyid, keyidlen))
goto err;
@@ -137,7 +137,7 @@
goto err;
}
- if(name && !PKCS12_add_friendlyname(bag, name, -1))
+ if(name && !PKCS12_add_friendlyname(bag, name, strlen(name)))
goto err;
if(keyidlen && !PKCS12_add_localkeyid(bag, keyid, keyidlen))
goto err;
diff -ur openssl-orig/Makefile.org openssl-work/Makefile.org
--- openssl-orig/Makefile.org 2008-04-04 01:03:39.000000000 +0200
+++ openssl-work/Makefile.org 2008-08-28 14:07:18.000000000 +0200
@@ -544,7 +544,7 @@
$(INSTALL_PREFIX)$(MANDIR)/man3 \
$(INSTALL_PREFIX)$(MANDIR)/man5 \
$(INSTALL_PREFIX)$(MANDIR)/man7
- @pod2man="`cd util; ./pod2mantest $(PERL)`"; \
+ @pod2man="`cd util >&2; ./pod2mantest $(PERL)`"; \
here="`pwd`"; \
filecase=; \
if [ "$(PLATFORM)" = "DJGPP" -o "$(PLATFORM)" = "Cygwin" -o
"$(PLATFORM)" = "mingw" ]; then \