Somebody knows how to use the program mtest (openssl_home/mt/mttest.c)
or (openssl_home/crypto/threads/mttest.c)

I tried to compile the libraries for DEC Alpha 4.0F using:
"alpha-cc", "cc:-std1 -tune host -O4 -readonly_strings::-pthread
-DPTHREADS::SIXTY_FOUR_BIT_LONG RC4_CHUNK:asm/alpha.o::",

Than ... I generated the shared libraries with:
ld -shared -no-archive ... -all libcrypto.a ... -none -lpthread -lexc
-lc

After installed the shared libraries (/usr/shlib) and recompiled
openssl.c and the test applications

The tests passed OK.
The openssl speed passed OK.

It would like now to test an application multithread as the example
mttest.
After some fittings in mttest.c (including in my case pthread.h and
excluding SSL_CTX_sessions function calls, that appear to be missing in
the library) I obtained the following results in the execution:

# ./mttest -threads 5 -CApath ../apps/demoCA -CAfile
../apps/demoCA/cacert.pem -cert ../apps/server.pem -ccert
../apps/client.pem
> reaping
started thread 5369067840
started thread 5369133376
started thread 5369198912
started thread 5369264448
started thread 5369329984
ERROR in CLIENT
error[0] 5369067840 - 1
ERROR in CLIENT
error[0] 5369133376 - 1
ERROR in CLIENT
error[0] 5369198912 - 1
ERROR in CLIENT
error[0] 5369264448 - 1
ERROR in CLIENT
error[0] 5369329984 - 1
pthreads threads done (6,6)
cleanup
       0:<<ERROR>>
     135:err
       0:err_hash
      25:x509
       0:x509_info
       0:x509_pkey
       0:x509_crl
       0:x509_req
       0:dsa
       0:rsa
      45:evp_pkey
      20:x509_store
      15:ssl_ctx
       0:ssl_cert
       0:ssl_session
       0:ssl_sess_cert
       1:ssl
     109:rand
       0:debug_malloc
      10:BIO
       0:gethostbyname
       0:getservbyname
       0:readdir
       0:RSA_blinding
       0:dh
       0:debug_malloc2
done cleanup
Client SSL_CTX stats then free it
   0 items in the session cache
   5 client connects (SSL_connect())
   0 client connects that finished
   0 server connects (SSL_accept())
   0 server connects that finished
   0 session cache hits
   0 session cache misses
   0 session cache timeouts
Server SSL_CTX stats then free it
   0 items in the session cache
   0 client connects (SSL_connect())
   0 client connects that finished
   5 server connects (SSL_accept())
   0 server connects that finished
   0 session cache hits
   0 session cache misses
   0 session cache timeouts
done free

Can anybody help?
Where is the function SSL_CTX_sessions?
Because the program mttest seems so forgotten?
Some clue for we place the same to work correctly?
Did anybody already test this what I am wanting to implement for DEC
ALPHA UNIX 4.0F?

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to