Hi,

I've failed to compile the 0.9.8k release for Windows CE using wcecompat 
whereas the 0.9.8g was compiling fine.
I had to comment lines in 3 files to finish my build process :

In crypto/rand/randfile.c :

//#ifdef _WIN32
//#define stat   _stat
//#define chmod            _chmod
//#define open               _open
//#define fdopen           _fdopen
//#endif

In crypto/o_str.c :

//#if !defined(OPENSSL_IMPLEMENTS_strncasecmp) && 
!defined(OPENSSL_SYSNAME_WIN32)
//# include <strings.h>
//#endif

In crypto/x509/by_dir.c :

//#ifdef _WIN32
//#define stat   _stat
//#endif

Seems those files changed or were created since 0.9.8g and not tested with 
WINCE.
I also tried the 1.0.0 beta 2 and got many more errors and had not yet looked 
further to correct them.
I don't know the best way to correct this for every platform, but that would be 
nice to correct this for 1.0.0 final release.

Additionnaly, I had to patch wcecompat to correct a mistake in gmtime function. 
I commented those lines :

////        ftLocal.dwHighDateTime = 0;
////        ftLocal.dwLowDateTime = *clock;
////        mul64((ULARGE_INTEGER*)&ftLocal, 10000000);
////        add64((ULARGE_INTEGER*)&ftLocal, (ULARGE_INTEGER*)&ftJan1970);

//            // convert to UTC FILETIME
////        if (!LocalFileTimeToFileTime(&ftLocal, &ftUtc))
////                       return NULL;

Without this correction, the gmtime was returning a local time and that was 
causing problems with certificate related functions in openssl on WINCE. I 
tried to contact the provider of wcecompat but the company seems to have closed 
for years. Is there a way to include that in openssl ???

Hope this helps,

You've made a great job however ;-)

Yan Maniez
Atos Worldline


________________________________

Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.

Hi,

 

I've failed to compile the 0.9.8k release for Windows CE using wcecompat whereas the 0.9.8g was compiling fine.

I had to comment lines in 3 files to finish my build process :

 

In crypto/rand/randfile.c :

 

//#ifdef _WIN32

//#define stat   _stat

//#define chmod            _chmod

//#define open               _open

//#define fdopen           _fdopen

//#endif

 

In crypto/o_str.c :

 

//#if !defined(OPENSSL_IMPLEMENTS_strncasecmp) && !defined(OPENSSL_SYSNAME_WIN32)

//# include <strings.h>

//#endif

 

In crypto/x509/by_dir.c :

 

//#ifdef _WIN32

//#define stat   _stat

//#endif

 

Seems those files changed or were created since 0.9.8g and not tested with WINCE.

I also tried the 1.0.0 beta 2 and got many more errors and had not yet looked further to correct them.

I don't know the best way to correct this for every platform, but that would be nice to correct this for 1.0.0 final release.

 

Additionnaly, I had to patch wcecompat to correct a mistake in gmtime function. I commented those lines :

 

////        ftLocal.dwHighDateTime = 0;

////        ftLocal.dwLowDateTime = *clock;

////        mul64((ULARGE_INTEGER*)&ftLocal, 10000000);

////        add64((ULARGE_INTEGER*)&ftLocal, (ULARGE_INTEGER*)&ftJan1970);

 

//            // convert to UTC FILETIME

////        if (!LocalFileTimeToFileTime(&ftLocal, &ftUtc))

////                       return NULL;

 

Without this correction, the gmtime was returning a local time and that was causing problems with certificate related functions in openssl on WINCE. I tried to contact the provider of wcecompat but the company seems to have closed for years. Is there a way to include that in openssl ???

 

Hope this helps,

 

You've made a great job however ;-)

 

Yan Maniez

Atos Worldline

 




Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

Reply via email to