server issues (using tls)

1999-10-04 Thread Nicholas Brawn
I'm attempting to negotiate a tls session between a client and a server, and am getting a strange error. SSL_accept: error:::lib(0) :func(0) :reason(0) The server code snippet is as follows: p->tls = SSL_new(p->ctx); if (SSL_set_fd(p->tls, fileno(stdin)) <= 0) {

Re: BN_print_fp() problem with OpenSSL 0.9.4?

1999-08-16 Thread Nicholas Brawn
On Mon, 16 Aug 1999, Dr Stephen Henson wrote: > Maybe 2 :-) > > I'd say dh->pub_key is NULL because you are just generating parameters > and not a public/private key pair. > > If you want keys as well then call DH_generate_key() on 'dh'. Thanks. That's what comes from cutting & pasting previou

BN_print_fp() problem with OpenSSL 0.9.4?

1999-08-16 Thread Nicholas Brawn
I've just tried out something under the latest openssl library, and it's coredumping in BN_print() (after i call BN_print_fp). The actual code snippet is here: void dh_genparams() { DH *dh; FILE *output; fprintf(stderr,"Generating new DH parameters, please be pati