Skip to content

AGSweeney/NetBurner_TDSLite_TLS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDSLite

Portable NetBurner NNDK firmware with a vendored TDSLite MSSQL client, MS-TDS PRELOGIN TLS, and a SQL web UI adapted from NetBurner_MSSQL_Client.

Primary smoke target: NANO54415.

Quick start

make PLATFORM=NANO54415
make PLATFORM=NANO54415 load DEVIP=<device-ip>

Open http://<device-ip>/Configure → SQL Server host/credentials → optionally enable Use TLSTest Connection.

Remote console: http://<device-ip>/console.html

Layout

.
├── makefile
├── src/                 # main, web, sql_runtime, sql_nv, catalogs, results
├── html/                # multipage UI (configure, browse, write, results, …)
├── libraries/include/   # vendored tdslite + NetBurner TCP/TLS adapter
├── PATCHES.md           # NetBurner / ColdFire compatibility notes
└── UPSTREAM_VERSION     # vendored tdslite version pin

TLS

SQL Server encryption follows FreeTDS-style PRELOGIN → TDS-wrapped TLS:

  1. SslInit() at boot (src/main.cpp)
  2. Plain TCP connect, then PRELOGIN
  3. If TLS is enabled in Configure, client advertises ENCRYPT_OFF (request); if disabled, ENCRYPT_NOT_SUP
  4. When the server requires or accepts encryption (ENCRYPT_ON / ENCRYPT_REQ, or login-only ENCRYPT_OFF): TDS-wrapped wolfSSL handshake (TLS records inside PRELOGIN 0x12 packets) — not raw SSL_makeSecure
  5. LOGIN7 is sent over TLS
  6. If the server returned login-only encryption (ENCRYPT_OFF / 0x00), the session downgrades to cleartext after LOGINACK; full encrypt keeps TLS for queries

Peer certificate verify defaults to off for lab bring-up. See PATCHES.md and libraries/include/tdslite-net/netburner/tdsl_netimpl_netburner.hpp.

Build notes

  • LIBS_TDSLITE + LIBS_CRYPTO required
  • make clean when switching PLATFORM between ColdFire and ARM
  • HTML is compiled with comphtml into src/htmldata.cpp
  • Supported platforms: NANO54415, MOD54415, MOD5441X, SOMRT1061, MODRT1171, MODM7AE70

About

The goal of this project is to get TDSLite working with TLS

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors