Skip to content

Add tls stb libraries - #6

Closed
viralcode wants to merge 2 commits into
mainfrom
add-tls-stb-libraries
Closed

viralcode wants to merge 2 commits into
mainfrom
add-tls-stb-libraries

Conversation

@viralcode

Copy link
Copy Markdown
Owner

No description provided.

New Libraries Added:
===================

1. TLSe (BSD 2-Clause)
   - TLS 1.2/1.3 implementation
   - Small, portable, no external dependencies
   - Perfect for embedded systems
   - Files: kernel/crypto/tlse.c, kernel/include/crypto/tlse.h
   - Wrapper: kernel/crypto/tls_wrapper.c, kernel/include/crypto/tls.h

2. stb_image (MIT/Public Domain)
   - Universal image loader
   - Supports: PNG, JPEG, BMP, TGA, PSD, GIF, HDR, PIC, PNM
   - Single-header library
   - Files: kernel/include/media/stb_image.h
   - Implementation: kernel/media/stb_image_impl.c

3. stb_image_write (MIT/Public Domain)
   - Image writing support
   - Supports: PNG, BMP, TGA, JPEG
   - Files: kernel/include/media/stb_image_write.h

Features:
=========
- TLS support for secure network connections
- Universal image loading (auto-detects format)
- PNG, BMP, TGA, and more image formats
- Image encoding (save screenshots, etc.)
- All libraries are embedded-friendly

API:
====
- media_decode_image() - Load any image format
- media_decode_png() - Load PNG specifically
- media_decode_bmp() - Load BMP specifically
- tls_create_context() - Create TLS context
- tls_handshake() - Perform TLS handshake
- tls_read/write() - Secure data transfer

Documentation:
==============
- Added THIRD_PARTY_LICENSES.md with full license texts
- Updated README.md with library acknowledgments
- Included usage examples in THIRD_PARTY_LICENSES.md

Existing Libraries:
===================
- minimp3 (CC0) - Already included for MP3 decoding
- picojpeg (Public Domain) - Already included for JPEG

All libraries are properly licensed and documented!
@viralcode viralcode closed this Jan 18, 2026
@viralcode
viralcode deleted the add-tls-stb-libraries branch March 10, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant