kenobi-windows 0.3.1

A Windows Negotiate implementation.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::sync::Arc;

use kenobi_core::mech::Mechanism;
use kenobi_windows::{client::ClientBuilder, cred::Credentials};

fn main() {
    let cred = Arc::new(Credentials::outbound(None, Mechanism::KerberosV5).unwrap());

    let ctx_a = ClientBuilder::new_from_credentials(cred.clone(), Some("test/example.com")).allow_delegation();
    let ctx_b = ClientBuilder::new_from_credentials(cred, Some("test/other.example.com"))
        .allow_delegation()
        .request_encryption();

    let _pending_a = ctx_a.initialize();
    let _pending_b = ctx_b.initialize();
}