Re: NSS and NSPR compilation error: ssl3con.c:36:18: fatal error: zlib.h: No such file

2016-11-10 Thread Ding Yangliang
If I build nss+nspr in my RedHat 7.2 x64, more arguments and packages are
required.

I see an error here, same as I had in Ubuntu 16.04 LTS but solved there by
installing

zlib1g-dev

The message is:

gcc -o Linux3.10_x86_64_cc_glibc_PTH_64_OPT.OBJ/zip.o -c -O2 -fPIC
-DLINUX2_1 -m64 -pipe -ffunction-sections -fdata-sections -DLINUX -Dlinux
-DHAVE_STRERROR -Wall -Werror -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT
-DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT
-DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES
-I../../../dist/Linux3.10_x86_64_cc_glibc_PTH_64_OPT.OBJ/include
-I../../../dist/public/nss -I../../../dist/private/nss
-I../../../dist/public/seccmd  zip.c
zip.c:7:18: fatal error: zlib.h: No such file or directory
 #include "zlib.h"
  ^
compilation terminated.


Now in Redhat x64, to build successfully, I must install:

sudo yum install zlib-devel

And with this line:

gmake nss_build_all BUILD_OPT=1 USE_64=1 NSS_SSL_ENABLE_ZLIB=

Hope it helps somebody.



2016-10-21 9:47 GMT+02:00 Ding Yangliang :

> Thanks for helping of yours!
>
> Now I have enabled the option you said, with this line:
>
> sudo make nss_build_all NSS_SSL_ENABLE_ZLIB= BUILD_OPT=1
>
> Before that I also installed zlib1g-dev
>
> sudo apt-get install zlib1g-dev
>
>
> And all errors are gone! Thanks a lot and have a good day. 1 week
> struggling...
>
>
> 2016-10-20 23:08 GMT+00:00 Martin Thomson :
>
>> You can compile with
>>
>> make nss_build_all NSS_SSL_ENABLE_ZLIB=
>>
>> To disable zlib.  It's not a feature you want, we just keep it because
>> some existing users depend on it.
>>
>> On Thu, Oct 20, 2016 at 11:10 PM, Kai Engert  wrote:
>> > On Thu, 2016-10-20 at 10:13 +, Ding Yangliang wrote:
>> >> ssl3con.c:36:18: fatal error: zlib.h: no such file or directory
>> >
>> > zlib.h is a file that should be provided by your development
>> environment.
>> >
>> > I don't know what package on Ubuntu provides that file, but I'm
>> guessing the
>> > name should be similar to zlib-dev.
>> >
>> > Kai
>> >
>> > --
>> > dev-tech-crypto mailing list
>> > dev-tech-crypto@lists.mozilla.org
>> > https://lists.mozilla.org/listinfo/dev-tech-crypto
>> --
>> dev-tech-crypto mailing list
>> dev-tech-crypto@lists.mozilla.org
>> https://lists.mozilla.org/listinfo/dev-tech-crypto
>>
>
>
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto


Re: LIBPKIX How To Use? (Windows)

2016-11-10 Thread Opa114
Am Mittwoch, 9. November 2016 23:10:36 UTC+1 schrieb Julien Pierre:
> Which LIB file are you using ? If it is a small LIB file, it is probably 
> just the import library for the DLL .
> 
> PKIX_PL functions are internal functions not exported from NSS3.dll . 
> Why do you want to use those functions directly ?
> 
> There is a public PKIX API, CERT_PKIXVerifyCert, which you should use.
> 
> Julien
> 
> 
> On 11/9/2016 05:56, Opa114 wrote:
> > Hi there,
> >
> > how can i use the LIBPKIX Library on Windows? Did it everytime only compile 
> > a *.lib file instead of a *.dll file like the nss3.dll? Everytime i try to 
> > use the PKIX_PL_Cert_VerifySignature Function for example i got the error 
> > that the reference to the function is undefined, which tells me that it has 
> > a problem with linking to the library - right?
> >
> > Anybody out there who can help?

because i want not not to verify the with it's usage. i want to check ifa cert 
was / has signed another certificate. There i no such function in NSS or 
haven't i seen that? So that why i wanted to use the 
PKIX_PL_Cert_VerifySignature function. or is there a public function which 
check the same?

The LIB was the pkixpki.lib.
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto