Everything went fine compiling openssl-0.9.2b with VC++ 4.2,
but i have now problems with the paths and config files.
I have already changed the openssl.cnf:
Replaced / with \ und removed the $ENV::HOME/ settings
my cnf-file:
--------------------------------------------
RANDFILE = .rnd
dir = openssl # Where everything is kept
certs = $dir\certs # Where the issued certs are kept
crl_dir = $dir\crl # Where the issued crl are kept
database = $dir\index.txt # database index file.
new_certs_dir = $dir\newcerts # default place for new certs.
certificate = $dir\cacert.pem # The CA certificate
serial = $dir\serial # The current serial number
crl = $dir\crl.pem # The current CRL
private_key = $dir\private\cakey.pem # The private key
RANDFILE = $dir\private\private.rnd # private random number file
---------------------------------------------
But openssl still doesn't find the file until i explicit write the
directoy und filenames in the command args. This causes very very
long commands.
Trung Tran-Duc <[EMAIL PROTECTED]> proposed in the mailing
list to make some changes in crypto/cryptlib.h and the win32
makefile and recompile it.
http://www.mail-archive.com/openssl-users@openssl.org/msg00919.html
I did this, but no luck:
1. I extracted all files again to the directory c:\openssl
(Note: not openssl-0.9.2b)
2. As proposed i first changed crypto/cryptlib.h:
#ifndef _WIN32
#define X509_CERT_AREA "/usr/local/ssl"
#define X509_CERT_DIR "/usr/local/ssl/certs"
#define X509_CERT_FILE "/usr/local/ssl/cert.pem"
#define X509_PRIVATE_DIR "/usr/local/ssl/private"
#else
#define X509_CERT_AREA INSTALLTOP
#define X509_CERT_DIR INSTALLTOP "/certs"
#define X509_CERT_FILE INSTALLTOP "/cert.pem"
#define X509_PRIVATE_DIR INSTALLTOP "/private"
#endif
shouldn't it be "\cert" etc. ?
3. I ran "perl Configure VC-WIN32" again
4. I rebuild the Win32 Makefiles and friends: "ms\do_ms"
5. I changed the the ntdll.mak in the "c:\openssl\ms" directory by
adding -DINSTALLTOP=\"$(INSTALLTOP)\" to the CFLAG:
I now looks like this:
CFLAG= /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo -DWIN32
-DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DINSTALLTOP=\"$(INSTALLTOP)\"
/Fdout32dll
As proposed from Trung Tran-Duc I left
"INSTALLTOP=\usr\local\ssl" in the beginning of ntdll.mak untouched?
6. nmake -f ms\ntdll.mak
Then i get the errors:
cl /Fotmp32dll\cversion.obj -Iinc32 -Itmp32dll /MD /W3 /WX /G5 /Ox
/O2 /Ob2 /Gs0 /GF /Gy /nologo -DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN
-DINSTALLTOP=\"\usr\local\ssl\" /Fdout32dll /GD -D_WINDLL -D_DLL
-DCFLAGS="\"cl /MD /W3 /WX /G5 /Ox /O2 /Ob2 /Gs0 /GF /Gy /nologo
-DWIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN
-DINSTALLTOP=\"\usr\local\ssl\" /Fdout32dll\""
-DPLATFORM="\"VC-WIN32\"" -c .\crypto\cversion.c cversion.c
.\crypto\cversion.c(84) : error C2017: illegal escape sequence
.\crypto\cversion.c(84) : error C2146: syntax error : missing ')'
before identifier 'usr' .\crypto\cversion.c(84) : error C2017: illegal
escape sequence .\crypto\cversion.c(84) : error C2017: illegal escape
sequence .\crypto\cversion.c(84) : error C2059: syntax error : ')'
.\crypto\cversion.c(86) : error C2065: 'buf' : undeclared identifier
.\crypto\cversion.c(86) : warning C4047: 'function' : 'char *' differs
in levels of indirection from 'int ' .\crypto\cversion.c(86) : warning
C4024: 'sprintf' : different types for formal and actual parameter 1
.\crypto\cversion.c(86) : error C2017: illegal escape sequence
.\crypto\cversion.c(86) : error C2146: syntax error : missing ')'
before identifier 'usr' .\crypto\cversion.c(86) : error C2017: illegal
escape sequence .\crypto\cversion.c(86) : error C2017: illegal escape
sequence .\crypto\cversion.c(86) : error C2059: syntax error : ')'
.\crypto\cversion.c(87) : warning C4047: 'return' : 'char *' differs
in levels of indirection from 'int '
If this is the wrog way, than how looks openssl.cnf like
with win32 compilations?
Thank you for any Help!
Martin
///
(. .)
---------------------------------oOO--(_)--OOo----------------------
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]