Skip to content

Commit 09a4610

Browse files
committed
Bump der dependency version
Signed-off-by: Samuel Cabrero <scabrero@suse.com>
1 parent 50779e1 commit 09a4610

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libkrimes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tokio-util = { workspace = true }
2222
tracing = { workspace = true }
2323

2424
# der = { version = "0.7.9", features = ["alloc", "derive"] }
25-
der = { version = "0.8.0-rc.2", features = [
25+
der = { version = "0.8.0-rc.9", features = [
2626
"alloc",
2727
"derive",
2828
"flagset",

libkrimes/src/proto/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,10 @@ impl TryFrom<KdcEncryptedData> for EncryptedData {
929929
// but I can't obviously see it?
930930
let kvno = enc_data.kvno;
931931
let data = enc_data.cipher.into_bytes();
932-
Ok(EncryptedData::Aes256CtsHmacSha196 { kvno, data })
932+
Ok(EncryptedData::Aes256CtsHmacSha196 {
933+
kvno,
934+
data: data.to_vec(),
935+
})
933936
}
934937
_ => Err(KrbError::UnsupportedEncryption),
935938
}

libkrimes/src/proto/reply/as_rep.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl AuthenticationReplyBuilder {
114114
let transited = TransitedEncoding {
115115
tr_type: 1,
116116
// Since no transit has occured, we record an empty str.
117-
contents: OctetString::new(b"").map_err(|_| KrbError::DerEncodeOctetString)?,
117+
contents: OctetString::new(*b"").map_err(|_| KrbError::DerEncodeOctetString)?,
118118
};
119119

120120
let ticket_inner = EncTicketPart {

libkrimes/src/proto/reply/tgs_rep.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl KerberosReplyTicketGrantBuilder {
155155
let transited = TransitedEncoding {
156156
tr_type: 1,
157157
// Since no transit has occured, we record an empty str.
158-
contents: OctetString::new(b"").map_err(|_| KrbError::DerEncodeOctetString)?,
158+
contents: OctetString::new(*b"").map_err(|_| KrbError::DerEncodeOctetString)?,
159159
};
160160

161161
// EncTicketPart
@@ -284,7 +284,7 @@ impl KerberosReplyTicketRenewBuilder {
284284
let transited = TransitedEncoding {
285285
tr_type: 1,
286286
// Since no transit has occured, we record an empty str.
287-
contents: OctetString::new(b"").map_err(|_| KrbError::DerEncodeOctetString)?,
287+
contents: OctetString::new(*b"").map_err(|_| KrbError::DerEncodeOctetString)?,
288288
};
289289

290290
// EncTicketPart

0 commit comments

Comments
 (0)