mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-22 14:23:59 -07:00
got compilation working
This commit is contained in:
parent
ae21a2283d
commit
30041cdb10
1 changed files with 11 additions and 11 deletions
|
@ -131,18 +131,18 @@ enum Offer {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SessionKey {
|
struct SessionKey {
|
||||||
ratchet_key: Secret<BASE_KEY_SIZE>, // Key used in derivation of the next session key
|
ratchet_key: Secret<BASE_KEY_SIZE>, // Key used in derivation of the next session key
|
||||||
//receive_key: Secret<AES_256_KEY_SIZE>, // Receive side AES-GCM key
|
//receive_key: Secret<AES_256_KEY_SIZE>, // Receive side AES-GCM key
|
||||||
//send_key: Secret<AES_256_KEY_SIZE>, // Send side AES-GCM key
|
//send_key: Secret<AES_256_KEY_SIZE>, // Send side AES-GCM key
|
||||||
receive_cipher_pool: [Mutex<AesGcm<false>>; 4], // Pool of reusable sending ciphers
|
receive_cipher_pool: [Mutex<AesGcm<false>>; 4],// Pool of reusable sending ciphers
|
||||||
send_cipher_pool: [Mutex<AesGcm<true>>; 4], // Pool of reusable receiving ciphers
|
send_cipher_pool: [Mutex<AesGcm<true>>; 4], // Pool of reusable receiving ciphers
|
||||||
rekey_at_time: i64, // Rekey at or after this time (ticks)
|
rekey_at_time: i64, // Rekey at or after this time (ticks)
|
||||||
created_at_counter: u64, // Counter at which session was created
|
created_at_counter: u64, // Counter at which session was created
|
||||||
rekey_at_counter: u64, // Rekey at or after this counter
|
rekey_at_counter: u64, // Rekey at or after this counter
|
||||||
expire_at_counter: u64, // Hard error when this counter value is reached or exceeded
|
expire_at_counter: u64, // Hard error when this counter value is reached or exceeded
|
||||||
ratchet_count: u64, // Number of rekey events
|
ratchet_count: u64, // Number of rekey events
|
||||||
bob: bool, // Was this side "Bob" in this exchange?
|
bob: bool, // Was this side "Bob" in this exchange?
|
||||||
confirmed: bool, // Is this key confirmed by the other side?
|
confirmed: bool, // Is this key confirmed by the other side?
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<Application: ApplicationLayer> Context<Application> {
|
impl<Application: ApplicationLayer> Context<Application> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue