insanum / ktls_test Goto Github PK
View Code? Open in Web Editor NEWTLS v1.2/1.3 echo client/server application using wolfSSL that supports KTLS offload.
License: MIT License
TLS v1.2/1.3 echo client/server application using wolfSSL that supports KTLS offload.
License: MIT License
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
Hi @insanum,
I would like to report the issue as following:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.