On 10/20/07, D3||||!$ <[EMAIL PROTECTED]> wrote:
>
> Now that the client has been compiled, I'm running into problems with
> passing the hostname to the client.exe. Please tell me the exact
> format for passing the hostname as whatever hostname I'm passing, it
> is not being accepted by the client. I want to test the client-server:
> so how do I pass the hostname?

According to the usage message of client.exe:
http://lxr.mozilla.org/security/source/security/nss/cmd/SSLsample/client.c#79

you should pass the host name as the last command-line argument.
The hostname can be either a DNS name or an IP address.   But
you also need to specify the port number using the -p option, e.g.,
-p 443 or -p 8443.  Otherwise you'll get the usage message.

By the way, you should use selfserv as the sample server and tstclnt or
strsclnt as the sample client because the code in SSLsample is
a little out of date.

> Also, I found that the dlls which are given in the NSS/NSPR packages
> are not sufficient: while running the client-server or the other exes
> given in the NSS/lib folder, it first crashes asking for files such as
> libplc4.dll, libnspr4.dll and libplds4.dll. I was initially bewildered
> but then I just pasted renamed copies of the dlls with similar
> names(such as I naming nspr4.dll to libnspr.dll) along with the
> original ones and the applications executed seamlessly... Can anyone
> explain the reason for this?

This means you built NSS without setting the environment variable
OS_TARGET to WIN95.  If you use the MozillaBuild command shell
(which is "bash"), use this command:

export OS_TARGET=WIN95

You only need to set this environment when building NSS and NSPR.
When you build your own application, you don't need to set this
environment variable.

Wan-Teh
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to