remove codec folder in nxrp
This commit is contained in:
@@ -3,9 +3,9 @@ use bytes::{Bytes, BytesMut};
|
||||
use crate::crypto::aead::AeadPacker;
|
||||
use crate::crypto::chacha::ChaChaCipher;
|
||||
use crate::crypto::session::SessionKeys;
|
||||
use crate::nrxp::codec::bridge::TlsBridge;
|
||||
use crate::nrxp::codec::frame::{Frame, FrameHeader, FrameType, Padding};
|
||||
use crate::nrxp::bridge::TlsBridge;
|
||||
use crate::nrxp::errors::{ErrorAction, ErrorStage, TlsError};
|
||||
use crate::nrxp::frame::{Frame, FrameHeader, FrameType, Padding};
|
||||
use crate::parser::Parser;
|
||||
use crate::tlseng::profile::{BrowserProfile, ServerProfile};
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
mod bridge;
|
||||
pub mod codec;
|
||||
pub mod frame;
|
||||
pub mod socks;
|
||||
|
||||
pub const MAX_PADDING_SIZE: u32 = 255;
|
||||
@@ -2,13 +2,15 @@ use bytes::{Buf, BufMut, Bytes, BytesMut};
|
||||
|
||||
use rand::Rng;
|
||||
|
||||
use crate::{nrxp::codec::MAX_PADDING_SIZE, parser::Parser};
|
||||
use crate::parser::Parser;
|
||||
|
||||
pub struct Padding {
|
||||
pub len: u16,
|
||||
pub data: Bytes,
|
||||
}
|
||||
|
||||
pub const MAX_PADDING_SIZE: u32 = 255;
|
||||
|
||||
impl Padding {
|
||||
pub fn generate_padding() -> Padding {
|
||||
let mut rng = rand::rng();
|
||||
@@ -1,2 +1,5 @@
|
||||
mod bridge;
|
||||
pub mod codec;
|
||||
pub mod errors;
|
||||
pub mod frame;
|
||||
pub mod socks;
|
||||
|
||||
Reference in New Issue
Block a user