You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib.rs
+20-16Lines changed: 20 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -608,8 +608,8 @@ where
608
608
///
609
609
/// # Parameters
610
610
/// * `flags`: package-specific flags that indicate the quality of protection. A security package can use this parameter to enable the selection of cryptographic algorithms
611
-
/// * `message`: On input, the structure references one or more `SecurityBuffer` structures of `type SecurityBufferType::Data` that contain the message to be signed,
612
-
/// and a `SecurityBuffer` of type `SecurityBufferType::Token` that receives the signature.
611
+
/// * `message`: On input, the structure references one or more `SecurityBufferRef` structures of type `BufferType::Data` that contain the message to be signed,
612
+
/// and a `SecurityBufferRef` of type `BufferType::Token` that receives the signature.
613
613
/// * `sequence_number`: the sequence number that the transport application assigned to the message. If the transport application does not maintain sequence numbers, this parameter must be zero
614
614
///
615
615
/// # Returns
@@ -627,8 +627,8 @@ where
627
627
/// let mut client_ntlm = sspi::Ntlm::new();
628
628
/// let mut ntlm = sspi::Ntlm::new();
629
629
///
630
-
/// let mut client_output_buffer = vec![sspi::OwnedSecurityBuffer::new(Vec::new(), sspi::SecurityBufferType::Token)];
631
-
/// let mut server_output_buffer = vec![sspi::OwnedSecurityBuffer::new(Vec::new(), sspi::SecurityBufferType::Token)];
630
+
/// let mut client_output_buffer = vec![sspi::SecurityBuffer::new(Vec::new(), sspi::BufferType::Token)];
631
+
/// let mut server_output_buffer = vec![sspi::SecurityBuffer::new(Vec::new(), sspi::BufferType::Token)];
632
632
///
633
633
/// let identity = sspi::AuthIdentity {
634
634
/// username: Username::parse("user").unwrap(),
@@ -691,8 +691,8 @@ where
691
691
/// let mut token = [0; 128];
692
692
/// let mut data = "This is a message to be signed".as_bytes().to_vec();
/// Verifies that a message signed by using the `make_signature` function was received in the correct sequence and has not been modified.
713
717
///
714
718
/// # Parameters
715
-
/// * `message`: On input, the structure references one or more `SecurityBuffer` structures of `type SecurityBufferType::Data` that contain the message to be verified,
716
-
/// and a `SecurityBuffer` of type `SecurityBufferType::Token` that contains the signature.
719
+
/// * `message`: On input, the structure references one or more `SecurityBufferRef` structures of type `BufferType::Data` that contain the message to be verified,
720
+
/// and a `SecurityBufferRef` of type `BufferType::Token` that contains the signature.
717
721
/// * `sequence_number`: the sequence number that the transport application assigned to the message. If the transport application does not maintain sequence numbers, this parameter must be zero
718
722
///
719
723
/// # Returns
@@ -731,8 +735,8 @@ where
731
735
/// let mut ntlm = sspi::Ntlm::new();
732
736
/// let mut server_ntlm = sspi::Ntlm::new();
733
737
///
734
-
/// let mut client_output_buffer = vec![sspi::OwnedSecurityBuffer::new(Vec::new(), sspi::SecurityBufferType::Token)];
735
-
/// let mut server_output_buffer = vec![sspi::OwnedSecurityBuffer::new(Vec::new(), sspi::SecurityBufferType::Token)];
738
+
/// let mut client_output_buffer = vec![sspi::SecurityBuffer::new(Vec::new(), sspi::BufferType::Token)];
739
+
/// let mut server_output_buffer = vec![sspi::SecurityBuffer::new(Vec::new(), sspi::BufferType::Token)];
736
740
///
737
741
/// let identity = sspi::AuthIdentity {
738
742
/// username: Username::parse("user").unwrap(),
@@ -795,8 +799,8 @@ where
795
799
/// let mut token = [0; 128];
796
800
/// let mut data = "This is a message".as_bytes().to_vec();
0 commit comments