⚙️Blaze SSL Async
This is a minimal implementation of the SSLv3 protocol. It supports only the TLS_RSA_WITH_RC4_128_SHA
and TLS_RSA_WITH_RC4_128_MD5
ciphers. It does not implement all SSLv3 features
This is used by Pocket Relay for locally handling game connections from Mass Effect 3 which use a home grown SSLv3 implementaton by EA and as such cannot use any other newer protocol.
📌 Important note
This is not intended to be a secure SSL implementation. This is intended for legacy games and other software where it is not possible to use a more secure protocol.
If you are looking for a security focus SSL implementation you should instead check out https://github.com/rustls/rustls or https://github.com/sfackler/rust-native-tls
This implementation was designed specifically for Pocket Relay for use with Mass Effect 3.
It does not support any of the following features:
- Session resumption
- Client certificate authentication
- Server certificate verification (Trusts all server certificates)
- Server key exchange
- Recovering from warning alerts (All warnings are treated as fatal)
- SSL Compression modes
📄 Usage
Add dependency to your cargo dependencies
= "^0.3"
Crate Features
The default features are ["blaze-cert"]
Feature | Description |
---|---|
blaze-cert | Includes a built in default BlazeServerContext that uses a certificate built to bypass verification of older EA ProtoSSL implementations |
Connecting to a server
The example below if for connecting to a server as a client
// BlazeStream is a wrapper over tokio TcpStream
use BlazeStream;
// Tokio read write extensions used for read_exact and write_all
use ;
async
Binding a server
The example below is an example for creating a server that accepts clients
// BlazeListener is wrapper over tokios TcpListener
use ;
// Tokio read write extensions used for read_exact and write_all
use ;
use Arc;
async
🧾 License
The MIT License (MIT)
Copyright (c) 2022 - 2023 Jacobtread
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.