Giter Site home page Giter Site logo

ktls_test's People

Contributors

insanum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ktls_test's Issues

ERROR: can't load server CA file

Hi @insanum,
I would like to report the issue as following:

  • OS Distribution: CentOS Linux release 8.2.2004 (Core)
  • Kernel: 4.18.0-193.28.1.el8_2.aarch64
  • Build Date: Jan 8th 2021

Description:
tls_client_12 and tls_client_13 cannot load the server CA file located in certs/ca-cert.pem.

Steps to reproduce:
Run build.sh build script
Run tls_server & in background
Run tls_client_12 -s 127.0.0.1
Run tls_client_13 -s 127.0.0.1

Expected Result:
tls_client_12 and tls_client_13 can connect to tls_server running in background

Real Result:
tls_client_12 and tls_client_13 both issue error "ERROR: can't load server CA file"

The log file during installation and running test is attached in ktls_log.txt

Thank you

Compilation failed on ubuntu 18.04 LTS

while compiling ktls_test tool failed.

make[2]: Leaving directory '/home/localadmin/Integration/tools/contributed/tls_ext/test_ktls/ktls_test/wolfssl'
make[1]: Leaving directory '/home/localadmin/Integration/tools/contributed/tls_ext/test_ktls/ktls_test/wolfssl'
+ cd -
/home/localadmin/Integration/tools/contributed/tls_ext/test_ktls/ktls_test
+ gcc -I./wolfssl tls_server.c -L./wolfssl/src/.libs -lwolfssl -lm -o tls_server
tls_server.c: In function ‘config_ktls’:
tls_server.c:71:39: error: storage size of ‘crypto_256’ isn’t known
  struct tls12_crypto_info_aes_gcm_256 crypto_256;
                                       ^~~~~~~~~~
tls_server.c:91:19: error: ‘TLS_CIPHER_AES_GCM_256_KEY_SIZE’ undeclared (first use in this function); did you mean ‘TLS_CIPHER_AES_GCM_128_KEY_SIZE’?
      (key_size != TLS_CIPHER_AES_GCM_256_KEY_SIZE)) {
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                   TLS_CIPHER_AES_GCM_128_KEY_SIZE
tls_server.c:91:19: note: each undeclared identifier is reported only once for each function it appears in
tls_server.c:115:6: error: ‘TLS_1_3_VERSION’ undeclared (first use in this function); did you mean ‘TLS_1_2_VERSION’?
    : TLS_1_3_VERSION;
      ^~~~~~~~~~~~~~~
      TLS_1_2_VERSION
tls_server.c:119:6: error: ‘TLS_CIPHER_AES_GCM_256’ undeclared (first use in this function); did you mean ‘TLS_CIPHER_AES_GCM_128’?
    : TLS_CIPHER_AES_GCM_256;
      ^~~~~~~~~~~~~~~~~~~~~~
      TLS_CIPHER_AES_GCM_128
tls_server.c:203:35: error: ‘TLS_RX’ undeclared (first use in this function); did you mean ‘TLS_TX’?
   if (setsockopt(sockfd, SOL_TLS, TLS_RX, crypto_info,
                                   ^~~~~~
                                   TLS_TX
tls_server.c: In function ‘servelet’:
tls_server.c:273:29: error: ‘TLS_GET_RECORD_TYPE’ undeclared (first use in this function); did you mean ‘TLS_SET_RECORD_TYPE’?
        (cmsgh->cmsg_type == TLS_GET_RECORD_TYPE)) {
                             ^~~~~~~~~~~~~~~~~~~
                             TLS_SET_RECORD_TYPE
sh: 1: ./tls_client_12: not found

OS:

Distributor ID: Ubuntu
Description:    Ubuntu 18.04 LTS
Release:        18.04
Codename:       bionic

kernel:

Linux 5.10.30-051030-generic x86_64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.