mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-31 08:51:57 +00:00
478
Cargo.lock
generated
478
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -758,10 +758,6 @@ impl From<rsa::PublicKey> for PublicKey {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
#[cfg(feature = "peerid")]
|
|
||||||
use crate::PeerId;
|
|
||||||
use base64::prelude::*;
|
|
||||||
use std::str::FromStr;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "ed25519")]
|
#[cfg(feature = "ed25519")]
|
||||||
|
@@ -54,7 +54,7 @@ pub fn make_client_config(
|
|||||||
.with_custom_certificate_verifier(Arc::new(
|
.with_custom_certificate_verifier(Arc::new(
|
||||||
verifier::Libp2pCertificateVerifier::with_remote_peer_id(remote_peer_id),
|
verifier::Libp2pCertificateVerifier::with_remote_peer_id(remote_peer_id),
|
||||||
))
|
))
|
||||||
.with_single_cert(vec![certificate], private_key)
|
.with_client_auth_cert(vec![certificate], private_key)
|
||||||
.expect("Client cert key DER is valid; qed");
|
.expect("Client cert key DER is valid; qed");
|
||||||
crypto.alpn_protocols = vec![P2P_ALPN.to_vec()];
|
crypto.alpn_protocols = vec![P2P_ALPN.to_vec()];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user