[krbdev.mit.edu #7092] kvno ASN.1 encoding interop with Windows RODCs
Greg Hudson via RT
rt-comment at krbdev.mit.edu
Wed Feb 22 00:29:05 EST 2012
commit 44ff96b7e5c64f3c2a816f36fb64b1d7f0cc50b2
Author: Greg Hudson <ghudson at mit.edu>
Date: Tue Feb 21 15:09:03 2012 -0500
Backported fix for #7092
diff --git a/src/lib/krb5/asn.1/asn1_k_encode.c b/src/lib/krb5/asn.1/asn1_k_encode.c
index 018aae8..07ea7c8 100644
--- a/src/lib/krb5/asn.1/asn1_k_encode.c
+++ b/src/lib/krb5/asn.1/asn1_k_encode.c
@@ -143,9 +143,11 @@ optional_encrypted_data (const void *vptr)
return optional;
}
+/* Encode krb5_kvno as signed 32-bit for Windows RODC interop. */
+DEFINTTYPE(kvno, krb5_kvno);
static const struct field_info encrypted_data_fields[] = {
FIELDOF_NORM(krb5_enc_data, int32, enctype, 0),
- FIELDOF_OPT(krb5_enc_data, uint, kvno, 1, 1),
+ FIELDOF_OPT(krb5_enc_data, kvno, kvno, 1, 1),
FIELDOF_NORM(krb5_enc_data, ostring_data, ciphertext, 2),
};
DEFSEQTYPE(encrypted_data, krb5_enc_data, encrypted_data_fields,
More information about the krb5-bugs
mailing list