mirror of
https://github.com/DNSCrypt/encrypted-dns-server.git
synced 2024-04-26 05:05:03 +02:00
Update serde_big_array
This commit is contained in:
parent
0deb4f4d0b
commit
9e52627655
|
@ -43,7 +43,7 @@ rand = "0.8.4"
|
|||
rustc-hash = "1.1.0"
|
||||
serde = "1.0.136"
|
||||
serde_derive = "1.0.136"
|
||||
serde-big-array = "0.3.2"
|
||||
serde-big-array = "0.4.1"
|
||||
siphasher = "0.3.9"
|
||||
tokio = { version = "1.16.1", features = [
|
||||
"net",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
use crate::errors::*;
|
||||
|
||||
use libsodium_sys::*;
|
||||
use serde_big_array::BigArray;
|
||||
use siphasher::sip::SipHasher13;
|
||||
use std::ffi::CStr;
|
||||
use std::hash::Hasher;
|
||||
|
@ -23,8 +24,6 @@ impl Signature {
|
|||
}
|
||||
}
|
||||
|
||||
big_array! { BigArray; crypto_sign_SECRETKEYBYTES as usize }
|
||||
|
||||
#[derive(Serialize, Deserialize, Derivative, Clone)]
|
||||
#[derivative(Default)]
|
||||
pub struct SignSK(
|
||||
|
|
|
@ -8,6 +8,7 @@ use byteorder::{BigEndian, ByteOrder};
|
|||
use clockpro_cache::ClockProCache;
|
||||
use parking_lot::Mutex;
|
||||
use rand::prelude::*;
|
||||
use serde_big_array::BigArray;
|
||||
use std::mem;
|
||||
use std::slice;
|
||||
use std::sync::Arc;
|
||||
|
@ -39,8 +40,6 @@ impl DNSCryptCertInner {
|
|||
}
|
||||
}
|
||||
|
||||
big_array! { BigArray; 64 }
|
||||
|
||||
#[derive(Derivative, Serialize, Deserialize)]
|
||||
#[derivative(Debug, Default, Clone)]
|
||||
#[repr(C, packed)]
|
||||
|
|
|
@ -9,16 +9,12 @@
|
|||
#[global_allocator]
|
||||
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||
|
||||
#[macro_use]
|
||||
extern crate clap;
|
||||
#[macro_use]
|
||||
extern crate derivative;
|
||||
#[macro_use]
|
||||
extern crate log;
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
#[macro_use]
|
||||
extern crate serde_big_array;
|
||||
#[cfg(feature = "metrics")]
|
||||
#[macro_use]
|
||||
extern crate prometheus;
|
||||
|
@ -509,7 +505,7 @@ fn main() -> Result<(), Error> {
|
|||
|
||||
crypto::init()?;
|
||||
let time_updater = coarsetime::Updater::new(1000).start()?;
|
||||
let matches = app_from_crate!()
|
||||
let matches = clap::command!()
|
||||
.arg(
|
||||
Arg::new("config")
|
||||
.long("config")
|
||||
|
|
|
@ -76,7 +76,7 @@ pub async fn resolve_udp(
|
|||
|
||||
pub async fn resolve_tcp(
|
||||
globals: &Globals,
|
||||
packet: &mut Vec<u8>,
|
||||
packet: &mut [u8],
|
||||
packet_qname: &[u8],
|
||||
tid: u16,
|
||||
) -> Result<Vec<u8>, Error> {
|
||||
|
|
Loading…
Reference in New Issue